General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only