Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How To Set UDV Return Type CTD2000

5 views
Skip to first unread message

Michael W. Dietrich

unread,
Jun 25, 2000, 3:00:00 AM6/25/00
to
With SQLWindows Build12709 (Release 2.0)

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

bm

unread,
Jun 25, 2000, 3:00:00 AM6/25/00
to
I didn't have ctd2000 yet, but like 'AddWindowVariable '
something like the following should work :

If xFunction.AddObjectTo( CDK_IT_Returns, CDK_IT_ClassObject , '',
aVariable)
Call aVariable.SetObjectClass('class')

Frank Boettcher

unread,
Jun 25, 2000, 3:00:00 AM6/25/00
to
I扉e added this function to cdkFunction:

!!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

0 new messages