Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh buttons on form from a program
Message
 
To
18/04/2002 16:26:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00646592
Message ID:
00646861
Views:
13
Hello Claude

I wouldn't have my search on one form and my results on another form. I make a pageframe and have the first pageframe as the search and the second pageframe as the results, then all you need is a search and back buttons and reset the search vars on thisform.pageframe.page1.activate

it's a bit easier to manager you data and vars on a single form vs. keeping track of what form is active.

just my option

now for your answer

I guess you have first, prev, next and last buttons
in the active event for the results form determin where the record pointer is
with thisform
do case
case bof()
.cmdFirst.enabled = .F.
.cmdPrev.enabled = .F.
.cmdNext.enabled = .T.
.cmdLast.enabled = .T.

case eof()
.cmdFirst.enabled = .T.
.cmdPrev.enabled = .T.
.cmdNext.enabled = .F.
.cmdLast.enabled = .F.

otherwise
.cmdFirst.enabled = .T.
.cmdPrev.enabled = .T.
.cmdNext.enabled = .T.
.cmdLast.enabled = .T.

endcase
endwith
if the with-endwith is in the wrong place you know how to fix it, right?

>There is a main from (call it a) and menu items to search on specific fields (call one of them b). The serach programs are called from a program which calles the appriate form. The search form moves the record pointer. form a has some navigation buttons which are define in a class library. I want to call the methods that refresh the buttons (i.e. enable then based on record pointer value (top, middle, bottom).
>
>Is this possible? If some what are the commands?
>
>TIA
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform