General information
Category:
Coding, syntax & commands
>>>I'd like to know i a Object exist on my form when I call it.
>>>For Example: I'd like to know if "command1" exist
>>
>>IF TYPE("thisform.command1") == "O" AND !isnull("thisform.command1")
>>*** object exists
>>ENDIF
>
>Should be
>IF TYPE("thisform.command1") == "O" AND !isnull(thisform.command1)
>Just copied from the first part and forgot to delete the quotes... :)
Which is why I love vartype in 6.0... you can shorten the above to...
if vartype(thisform.command1) == "O"
** object exists
endif
BOb
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only