D.Cook
Member
Ok this is a long shot, but any ideas on how to determine the data-type of a database field (or any variable) at compile time?
For example:
Yes this is silly, but sometimes I get driven to do silly things..
For example:
Code:
ADD FIELD "myfield" OF "mytable" AS integer
Code:
&IF data-type(mytable.myfield) EQ "integer" &THEN
intVar = mytable.myfield.
&ELSE
chrVar = mytable.myfield.
&ENDIF
Yes this is silly, but sometimes I get driven to do silly things..