Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help needed on Calling up forms in FormSets using button
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00517288
Message ID:
00517515
Views:
15
>I am new to VFP and using VP6 I am experenced in Foxpro 2.6 and am trying to convert a program. )-:
>I am trying to use FormSets. All forms a model and are on top.
>I call them up using show and then Hide them after use.
>Where I am having problems is when I use a If statment on a command button.
>ie:
> If x
>formnext.show
>endif
>after using the form the program does not return to the line after the Form.show
>
>What is the secret to getting the program to return to the calling line. ??
>
>Any help apreciated.
>Brian


Brian,

Depending on what you want for the general logic in your app, you might want to investigate having one (f.e. full screen) top level form, in which all your other forms will appear (in top level form). So this top level form is not a formset, but it sort of behaves like that. Since you come from 2.6 it will be the most equal to your experiences. That is, if you have the other forms (were all life really happens) modeless.
When we started with converting the FDP-app to VFP, we started with a formset too, and it lead too nothing (or too much trouble).

So apart from the DS-solution (which may be the best) it is not too difficult to have a lot of modeless forms on the screen and activate them at will. IMO modeless forms should be the basis of an app, having modal forms only for messages etc. I mean, having all forms modal will lead to complicated logic which may not even be logic. And yes, after activating a modal form (show(), Do Form, etc.) execution stops after that line until the form is released. Compare this with (any number of) modeless forms and the Read Events command, which hands things over to VPF's kernel and now at *that* command execution stops until a Clear Events anywhere. Within there (on a Click or whatever) you can activate a modal form again (i.e. message) even if it was defined as modeless (Show(1)).

HTH,
Previous
Reply
Map
View

Click here to load this message in the networking platform