Posted by Albert Gareev on Nov 27, 2008
Generate code for Property Let / Property Get / Property Set methods of Delegator Object What to use 1. MS Excel worksheet as input / output interface 2. MS Excel VBA macro to generate source code 3. Input parameters Property Name – External name (used as Property Let / Get name) Parent Class - Name of [...] ...
Posted by Albert Gareev on Nov 25, 2008
Generate code for Property Let / Property Get / Property Set methods What to use 1. MS Excel worksheet as input / output interface 2. MS Excel VBA macro to generate source code 3. Input parameters Property Name – External name (used as Property Let / Get name) Parent Class – Skip. Used in only with [...] ...
Posted by Albert Gareev on Nov 16, 2008
Continuing previous post, I explore Object-Oriented Programming with VBScript. Now I want to take a closer look at inheritance and practice its workaround, called delegation. Delegator Class example Class ScreenPoint '' Properties 'Ancestor Point2D Private P2D 'Point color Private Color '---------------------- '' Methods 'Constructor - [...] ...
Posted by Albert Gareev on Nov 15, 2008
As I recently wrote, VBScript supports Object-Oriented Programming. However, we have to get used to certain limitations. Let’s start with an example of a corner stone principle – encapsulation. Class declaration example Class Point2D '' Properties Private p_X Private p_Y '---------------------- '' Methods 'Constructor - called automatically [...] ...
Posted by Albert Gareev on Nov 10, 2008
The story Maybe the story began when I noticed that a status message (a line displaying text at the bottom of the window) looked somewhat unusual. Or maybe when I checked the log file to investigate, and found out that the program reported “______ file updated”. That looked as a typo, or unsupported characters in the [...] ...