Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with navigations command button on form
Message
From
22/10/2001 10:58:01
 
 
To
22/10/2001 07:41:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00571585
Message ID:
00571643
Views:
29
It depends on which command group your using. If you look at the code in the base class of the command group you're using, you should be able to figure it out.

If you're using the wizbtns.vcx command group supplied with VFP, for example, calling the navrefresh() method of the command group will disable/enable the buttons depending on the location of the record pointer.

Gerry



>Hello there,

>Since long time I spend trying to solve problem with commandgroup of buttons on formset. Well, opened table ist indexed and in moment of runtime is ordered. I have my own button on formset which call other form for searching record by user criteria. When user pick one record from returned results whole forms has a new value of this record but state of navigations button remain in position of last record position (at start of program is always record 1 but ordered by index, cmdTop and cmdPrev are disabled). How to make relation that navigations button refresh self state in according to new pointer position?
>In form for searching I have got:
...
>condition1=alltrim(thisformset.form2.text1.value)
>seek condition1
>if found()=.t. then
>goto recno()
>thisformset.form1.refresh
>else
>... error message...
>endif
>...
>thisformset.from2.hide
?...
>Thanks in advance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform