>>Is there a way to determine if a variable or an object exists in memory?
>>
>>I want to test to see if a form exists before I try to open it again.
>>
>>Any help is appreciated!
>>
>>Jeff
>
>Use the
TYPE() function. If it doesn't exist it will return a 'U' (unknown). Example: IF TYPE("formname")=='O' (object) - the formname must be contained in quotes or it will expect it to be a variable containing the form name to be evaluated. Hope this helps,
And just think: In VFP6 we get VALTYPE() so we don't have to remember those quotes inside the Type() parameters.
If VALTYPE(_screen.TheFormName.name) = "U"
....
Barbara