General information
Category:
Coding, syntax & commands
Following on Larry's coattails,
>>IF TYPE("ThisForm.ActiveControl.Name") = "C" will return .T. if ActiveControl is a valid object with a Name property. Do not use Vartype() for this as it is not robust enough for the checking and it will throw an error.
The same can be done with variables.>>
While
TYPE("ThisForm.ActiveControl.Name") = "C"
is functionally similar to
TYPE("ThisForm.ActiveControl") = "O"
testing agains the .Name property of an object is more robust than testing against the object itself. It sure looks weird though.
Regards,
Thom C.
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