Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen.formcount not behaving properly
Message
 
 
To
24/07/2003 20:09:33
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00813350
Message ID:
00813811
Views:
6
Hi Alan,

I've no answer to your question but I'm curios what is stored in the forms collection of the screen at that time?
? _screen.forms(1).Name
? _screen.forms(2).Name
>I have some code in my form base class which uses the instance of the form to position the form in a cascade manner relative to the previous instance.
>
>To do this my code uses _screen.formcount to cycle-through existing forms, but there is some weird behaviour when _screen.formcount jumps from 0 to 2 when a form is launched (I suspended it in form.load() to establish this). This only happens to one particular form, and this behaviour only happens in VFP6 - in VFP7 _screen.formcount goes from 0 to 1 as expected. As I need the form to run under both versions, it easy enough to use version exception code to handle the problem, but I would like to know what is going on here. (Of course it may just be form corruption or a bug).
>
>Anyone out there any ideas what may be going on here?
>
>TIA
>Alan
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform