Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling form like a object
Message
From
02/10/2001 16:37:26
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00563279
Message ID:
00563286
Views:
21
This message has been marked as the solution to the initial question of the thread.
Hi Ben;

Here we go !!
*In the Init of the form FrmA

procedure frma.init
Public pActiveB, myotherform  && I'll not use pActiveB
pActivB = .f.
endproc

*In the Form FrmA (command button)

procedure mybuttom.click
If type("myotherform.name")<>"C"
   Do form .\ecran\FrmB.scx name myotherform
Else
   myotherform.Caption= "Allo"
   myotherform.Show()
   activate window (myotherform.name)
Endif
endproc
CLAUDIO
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform