hi,
In Ctd there is SalGetDataType( Window_Handle ) to get the type of a Window Handle.
How to get the type of a variable ?
thanks
Nicolas D wrote:hi,
In Ctd there is SalGetDataType( Window_Handle ) to get the type of a Window Handle.
How to get the type of a variable ?
thanks
Set nType = SalCompileAndEvaluate( sExpression, nError, nErrorPos, nReturn, sReturn, dtReturn, hWndReturn, FALSE, sContext )
If nType = EVAL_Number
! Variable is a Number
Else If nType = EVAL_String
! Variable is a String
Else if ntype = EVAL_Date
! Variable is a DateTime
Else If nType = EVAL_Handle
! Variable is a Handle
Set nType = SalCompileAndEvaluate( "nUserID", nError, nErrorPos, nReturn, sReturn, dtReturn, hWndReturn, FALSE, sContext )
Jeff Luther wrote:meaning you can't tell if it's a File, Session, Sql, Window Handle, right?
Set nType = SalCompileAndEvaluate( "udvTest", nError, nErrorPos, nReturn, sReturn, dtReturn, hWndReturn, FALSE, sContext )
EVAL_Number = 1
EVAL_String = 2
EVAL_Date = 3
EVAL_Handle = 4
EVAL_Template = 5
EVAL_Set = 99
EVAL_If = 100
Set nType = SalCompileAndEvaluate( "cfcTest", nError, nErrorPos, nReturn, sReturn, dtReturn, hWndReturn, FALSE, sContext )
| Previous topic || Next topic |
Users browsing this forum: No registered users and 1 guest