Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is class?
Message
De
24/03/2006 09:51:19
 
 
À
24/03/2006 09:40:22
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:
01107363
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform