Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Controles from other form

Status
Not open for further replies.

ShortyII

Programmer
Sep 8, 2003
57
NL
Hi i think this is for you a simple question but i can't find it.

I have a profect where there are three screen in.
screen1, screen2, screen3

Now when i call from screen1
do screen2.spr

I want to disable some controles at forhand on the screen2

____.cmbPrevious.enable = .F.

but do i have to put on ____ ???
There must be some way i can access the screens and forms that are in my project.

Thanx
 
ShortyII,

Are you using Visual Foxpro?

The reason I ask is that you have .SPR files. These are not normally used in VFP (although they still work). In VFP, the usual approach is to create a form (rather than a screen) in the form designer. You then launch the form with DO FORM ... NAME .... That will give you an oject refernce to the form, which you can then use to access its controls.

For example, you might do this:

DO FORM Form1 NAME MyForm
MyForm.cmbPrevious.enable = .F.

Does that help at all?

Mike


Mike Lewis
Edinburgh, Scotland
 
Thats correct but i have converted some screen from 2.6a to visual fox 8 and i don't have now the time to put all the info from the screens to forms.
I will do this in time.

But this is now the only problem i have.

ant other option
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top