Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is class?
Message
 
À
24/03/2006 15:38:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01106989
Message ID:
01107571
Vues:
22
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform