I try to generate a Function returning an UDV. As this is valid Code in CTD
2000 it should also be able to generate it, But I've not found a way to
generate that code using the CDK.apl delivered with CTD 2000.
I either found no Documentation on how to do this besindes the help for
cdkFunction.SetReturnType says :
Parameters
nDataType: Number. The CDK_IT-Xxx type of the return value.
Well but how to determiine the CDK_IT_Xxx type of a UDV ?
e.g. this is what I'm trying to do ...
Functional Class: test
Functional Class: fTest2
...
Instance Variables
ftest: ivTestClass
Functions
Function: Return_test
Description:
Returns
ftest:
Parameters
Static Variables
Local variables
Actions
Any comments are welcome.
Best regards
modulo3 GmbH
Michael W. Dietrich
If xFunction.AddObjectTo( CDK_IT_Returns, CDK_IT_ClassObject , '',
aVariable)
Call aVariable.SetObjectClass('class')
!!CB!! 279
Function: SetClassReturnType
Description:
Returns
Boolean:
Parameters
Number: nClassType
String: sClassName
Static Variables
Local variables
FunctionalVar: aVariable
Class: cdkItem
Actions
If _FindReturnType( aVariable )
Call aVariable.Delete()
If AddObjectTo (CDK_IT_Returns, nClassType, "", aVariable)
Return aVariable.SetObjectClass(sClassName)
Return FALSE
Regards,
Frank Boettcher
Ice Tea Group, LLC
www.iceteagroup.com