In my existing Powerbuilder application I have several statements that check
to make sure an object is instatiated.
ie. If isvalid(form1) then....
Is there a way to check for this in VB.NET? I have pasted the definition of
IsValid from Powerbuilder.
I appologize for being such a newbie.
IsValid PowerScript function
Description
Determines whether an object variable is instantiated-whether its value is a
valid object handle.
Syntax
IsValid ( objectvariable )
Argument Description
objectvariable An object variable or a variable of type Any-typically a
reference to an object that you are testing for validity
Return value
Boolean. Returns true if objectvariable is an instantiated object. Returns
false if objectvariable is not an object, or if it is an object that is not
instantiated. If objectvariable is null, IsValid returns null.
Usage
Use IsValid instead of the Handle function to determine whether a window is
open.