Indy500 Posted December 20, 2009 Share Posted December 20, 2009 How do I programmatically add/delete/list/etc a conversion? I didn't see anything in the manual on it. Thanks! Link to comment Share on other sites More sharing options...
AzeoTech Posted December 20, 2009 Share Posted December 20, 2009 There isn't. Its assumed that if you are going to want to programmatically manipulate the application at this level that you will use other techniques to do what Conversions do. Note that you can use variables in conversions. Link to comment Share on other sites More sharing options...
Indy500 Posted December 21, 2009 Author Share Posted December 21, 2009 That makes sense. However, I need just a little more hint. Will this work OK? myChannel.strConversion = "(value * 100) - 3" Thanks! Link to comment Share on other sites More sharing options...
AzeoTech Posted December 21, 2009 Share Posted December 21, 2009 No. The strConversion variable of a channel is the name of the conversion, not the contents. As I said, you can't programmatically change the contents of the conversion. You can, however, change which conversion is assigned to a particular channel: myChannel.strConversion = "MyConversion" where MyConversion is an already existing conversion. You can also use variables in the conversion itself, so MyConversion could have this expression: (value * 100) - 3 or it could use variables instead: (value * slope) - intercept where slope and intercept are global variables that you can easily change in script. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.