Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh Grid Problem
Message
 
To
29/06/1999 19:22:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00235584
Message ID:
00235696
Views:
25
>Select Invoice1
>seek lcInvoiceNo
>sele Invoice2
>seek lcInvoiceNo
>thisform.grdbase1.refresh()

Rixon,

First I want to say that it may take you and hour to get used to using a parameterized view and it may take you days to sort out why the present method is failing. The choice is yours.

In the code snippet above you are first selecting the Invoice1 alias and moving the record pointer, you then select Invoice2 and move its record pointer. Selecitn Invoice2 suspends the relationship from Invoice1. If you have a relationship in place then there is no need to select invoice2 and move its record pointer as it will moved by the relationship.

With a parameterized view the code would be;
lcInvoiceNo = TheOneYouWant
Requery(YourViewOfInvoice2)
Thisform.grid1.refresh()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform