Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class definition problem
Message
 
To
30/05/2001 02:24:07
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00512512
Message ID:
00512747
Views:
7
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
Previous
Reply
Map
View

Click here to load this message in the networking platform