Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change focus programaticaly
Message
From
05/12/1998 16:11:18
 
 
To
04/12/1998 02:58:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00163976
Message ID:
00164489
Views:
20
There is the numeric option on the Valid event to set the focus depending on the number returned.

I am also re-writing an old fox 2.6 app. (originally dbase)After trying several interim measures, I'm finding easier and better to just recode the whole app. I gave up on "rapidly" and I'm using "BETTER"

>Yes. I must rapidly transfer application coded in FPW2.5 to VFP5 for my
>client.
>In this old application is form (window) with one editbox. This form was
>coded in FPW2.5.
>@5,5 get A picture '!!!!!' valid iif(lastkey()=9,MyForm("A"),.t.)
>This editbox test if user press Tab key. I yes, call form named MyForm coded
>in VFP5. BUT! If I use method SetFocus in this VFP5 form, VFP5 show error
>message "Cannot call SetFocus method within a When, Valid, RangeHigh or
>RangeLow event." It is true, because VFP5 form was called from valid routine of
>editbox "get A".
>
>Main problem is that I must mix program code FPW2.5 and VFP5. In VFP5 I never
>test the key pressed in valid event. I use keypress event without any problems.
>
>Maros
>
>>Maros ---
>>
>>Is there a problem with SetFocus()? That's what should be used.
>>
>>
>>>I want change focus programatically between two controls on form. Usually I use SetFocus method. Is there another way to change focus from one control to other?
>>>(In old versions of Foxpro I use _CurObj, for example)
>>>
>>>Maros Klempa
Fruit Grower by day, VFP trainee by night
Previous
Reply
Map
View

Click here to load this message in the networking platform