WITH .. END WITHCompiler DIRECTIVE /block  FunctionWindows/Unix

This Keyword is a shortcut for user defined types, structures, components, or Qobjects. This will save you some typing. 

DIM Form AS QFORM
 'everything between WITH ...END WITH will substitute "Form" before the period.
WITH Form  
    .Left = 30
   .Top = 50
END WITH

Remarks:
Not all cases of WITH are supported. For instance, WITH will not work inside a MEMCPY, with arrays of components, or inside a custom component using WITH Super ... END WITH, since all properties/methods will be referenced as the super class. 


Prev Chapter Contents Next Chapter