Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is class?
Message
 
 
To
24/03/2006 15:38:03
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:
01107571
Views:
21
You have to check misspellings

Above is original code, there is a misspelling in the function name
"function SaySomthing" should be "function SaySomething"

AT
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
Reply
Map
View

Click here to load this message in the networking platform