jonwiper Level: Big Cheese Registered: 30-03-2005 Posts: 19
Can you for loop a whole form?
Heh,
Is it possible on a form for the user to click a button which reloads the form but resets it also, and does this via a for loop?
Thanks.
09-04-2005 at 02:40 PM
|
yronium Level: Moderator Registered: 14-04-2002 Posts: 907
Re: Can you for loop a whole form?
What do you mean by "reset"?
____________________________
Real Programmer can count up to 1024 on his fingers
09-04-2005 at 04:17 PM
|
jonwiper Level: Big Cheese Registered: 30-03-2005 Posts: 19
Re: Can you for loop a whole form?
I mean that I want the form to be loaded as if for the first time. I.e. load a form, someone click a button and the same form loads again, then repeat this action several times.
I'll need a for loop I know that, I just wanted to know if I can 'for' loop whole forms.
Thanks.
09-04-2005 at 11:12 PM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1617
Re: Can you for loop a whole form?
Normally you'd just clear all the controls from text... then call the routine that loads the stuff...
____________________________ Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
10-04-2005 at 06:17 AM
|
steve_w Level: Moderator Registered: 18-04-2003 Posts: 1156
Re: Can you for loop a whole form?
Hi
Have a read of this topic, it should give you some ideas
yronium Level: Moderator Registered: 14-04-2002 Posts: 907
Re: Can you for loop a whole form?
quote:jonwiper wrote:
I mean that I want the form to be loaded as if for the first time.
...so, why not unload and load it again?
I'd place an external routine in a module, and call it by the button click. This routine should accept a form as a parameter, in order to unload it and load it again.
If you need to reload the starting form, you can start the project from a Sub Main routine instead.
Don't forget to reset all the global variables that affect form's behaviour.
Hope it helps.
____________________________
Real Programmer can count up to 1024 on his fingers