Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is class?
Message
From
24/03/2006 09:51:19
 
 
To
24/03/2006 09:40:22
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01106989
Message ID:
01107363
Views:
30
>Hi, Hilmar Zonneveld, and thank you.
>Please Define a new Class at Visual Foxpro and Use at one Program.
>simple example,only,only.
>thanks a lot.
oO = createobject("MyClass")

oO.SaySomething()

oO.cMessage = "Pong!"
oO.SaySomething()

return

define class MyClass as Custom

cMessage = "Ping!"

function SaySomthing
  wait window (this.cMessage)
return

enddefine
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform