Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse Pointer - Changing
Message
From
19/10/1998 15:41:40
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/10/1998 21:26:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00147116
Message ID:
00148275
Views:
43
>>How about
>>
>>for i=1 to ThisForm.ControlCount
>> ThisForm.Control(i).ResetToDefault("MousePointer")
>>next
>
>Good thought, but in trial what it does is reset it to the original value for that type of object, rather than what you had set it to (either during runtime or by modifying the class).

What? I thought it would reset to the value in the class definition - that should be the default. I mean its own class, not baseclass. I'll have to recheck the help on this.

>Another point when testing this (and I started this error), is the command should be x.ControlS(i), not x.Control(i).
>
>Also, of course, Vlad is correct that for each control on ThisForm, you would have to recurse the function, picking up any controls on that control.

Sure, as any other thing which goes down every control, it should recurse (or be cursed ;).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform