Passing the workspace as a parameter: Difference between revisions

m
Added to Tutorials category
m (Added to Tutorials category)
 
(4 intermediate revisions by 3 users not shown)
Line 21: Line 21:
If you want to use your old .ws file, just change the value of that particular property.
If you want to use your old .ws file, just change the value of that particular property.


===The program===
===An Example of a program that uses a subclass of cApplication===
the program:
the program:


<source lang="vdf">
  //AB-StoreStart
  //AB-StoreStart
  Use dfAllEnt.pkg
  Use dfAllEnt.pkg
Line 42: Line 43:
  Object oApplication is a cMyApplication
  Object oApplication is a cMyApplication
  End_Object  // oApplication
  End_Object  // oApplication
//
//etc
//then the panel and the rest of the program
</source>
//


===The cApplication subclass===
===The cApplication subclass===


<source lang="vdf">
   Class MyApplication is a cApplication
   Class MyApplication is a cApplication
     Procedure OnCreate
     Procedure OnCreate
Line 89: Line 90:
     End_Procedure
     End_Procedure
   End_Class
   End_Class
</source>
[[Category:How To]]
[[Category:Tutorials]]