SET                                                                       Statement

SET objectvariable = {objectexpression | NOTHING}

Description

SET is used to assign an object reference to a variable. The required component, objectvariable, is a variable that follows standard variable naming conventions. The required component, objectexpression, is the name of an object, a variable containing an object reference, or FUNCTION call that returns an object. The optional keyword, NOTHING, removes the association between objectvariable and any given object. When an object has no variables which reference it, the system and memory resources allocated to it are released.

Example

REM SET Example

'SET assigns objects to variables

DIM ButtonRef

ADDOBJECT "Picturebox","Button",0,0,10,10

SET ButtonRef = Button

Output

Related Items

IS