PA_GetVariableKind returns wrong result?

View: New views
1 Messages — Rating Filter:   Alert me  

PA_GetVariableKind returns wrong result?

by Matthias Schmidt-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

I wanted to implement optional parameters for one command.
So I tried this way:
PA_Variable opt;
       
        opt = PA_GetVariableParameter ( params, 9 );
        int vTyp = PA_GetVariableKind (opt);

although nothing is passed as 9th parameter, vTyp returns 33 =
eVK_Unistring here.
when I open the opt structre fType is 0 '\0'.

Do I miss something here? Is there a better approach with optional parameters?

cheers,
Matthias

**********************************************************************
4D Plugins hosted by 4D, Inc.                      http://www.4D.com/

    Did you know?  The 4D Partner Program now gives you
    access to Hotfix releases as soon as they are available!
    To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                      mailto:4D-Plugins-off@...
***********************************************************************