Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No Form Showed
Message
From
08/03/1999 00:52:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
No Form Showed
Miscellaneous
Thread ID:
00195083
Message ID:
00195083
Views:
58
myobj=createobject("myform")
myobj.show
read events

define class myform as form
top=20
left=20
height=300
width=300
caption="First"

add object mycmd as commandbutton with;
top=20,;
left=20,;
height=50,;
width=100,;
caption="Second Form"

procedure mycmd.click
clear read
=myfun()
endproc
enddefine

function myfun()
newobj=createobject("secondform")
newobj.show
read events
return

define class secondform as form
top=20
left=400
height=300
width=300
caption="Second"
enddefine

I want to show the first form, and then click the cmmand button to show the second form. But it cannot show it.
Please help me!
Thank you!
Next
Reply
Map
View

Click here to load this message in the networking platform