Progress
Open Client
Developer’s Guide
Data Type Conversions
In general, an Automation Controller might attempt any possible and reasonable conversion of parameter data passed to a method call on an Automation object. For example, if a method takes an integer parameter and the VB code passes a string with the value of “12”, the Automation Controller (VB) can do one of the following:
Some Automation objects do not do automatic conversions. Therefore to avoid errors, use of the data types specified in Table 7–2 is recommended.
NOTE: There can be other unexpected behavior exhibited by an Automation controller. In some versions of VB, for example, if aVariant
, converted to a specific data type (such asCStr(Var)
), is passed as an output parameter, VB treats the parameter like aString
constant and does not alert you that the result is unsuitable as an output parameter. Thus, it runs the method, but does not store the output value in theVariant
.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |