Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class definition problem
Message
 
À
30/05/2001 02:24:07
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00512512
Message ID:
00512747
Vues:
8
This message has been marked as a message which has helped to the initial question of the thread.
public oObject
oObject = createobject('MyRoom')
if type('oObject') == "O"
	oObject.Visible = .T.
else
	wait window "No Object"
endif



define class MyRoom as form
  procedure Init
    this.addobject('MyDetector','Detector')
    this.MyDetector.visible = .T.
enddefine

define class Detector as Shape
  Top = 20
  Left = 20
  
  procedure click
    wait window "You clicked me!"
  endproc
enddefine
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform