cdrozdowski111
USA
247 Posts |
Posted - 01/12/2014 : 5:39:55 PM
|
Usually functions listed as either LabTalk supported or not supported are Origin C functions. If they are LabTalk supported, they may be called in LT code. If they are unsupported, they can't be called in a LT script.
Many Origin C functions are listed as not supported in LT because they do something that is only meant to be done in Origin C or they use variable types in their parameters/return values that aren't supported in LabTalk. Sometimes there are Origin C functions that WOULD be useful in LabTalk but for whatever reason the decision was made not to support them in LT. There are ways around this but it requires "wrapping" the function in another Origin C function that IS callable in LabTalk.
As for X-Functions- X-Functions can not only be run via LabTalk but can be designed to be put in product menus/context menus. There may be times that the way the X-Function works is based on a certain set of conditions that can only be guaranteed if it is run within a certain context and one way to do this is by using menus.
|
 |
|