Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populating a grid
Message
From
20/12/1999 20:20:53
 
 
To
20/12/1999 15:14:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00306374
Message ID:
00306512
Views:
20
>I have a network foxpro 6 application that has three input fields
>and two page frames. When the last input field is entered, the lost
>focus event does:
>
>set filter to
>set filter to vehicle_nu=thisform.mycombobox1.value and ;
> substr(dtoc(entry_date),7,4) = thisform.mytextbox1.value and ;
> substr(dtoc(entry_date),1,2) = thisform.mytextbox2.value
>
>The first pageframe has a grid on it that is populated with the filtered
>records.
>
>The user can then depress the add button, and pageframe two displays
>for the user to enter a new record. When the user depresses the
>save button the last part of the click event is:
>
>set filter to
>set filter to vehicle_nu=thisform.mycombobox1.value and ;
> substr(dtoc(entry_date),7,4) = thisform.mytextbox1.value and ;
> substr(dtoc(entry_date),1,2) = thisform.mytextbox2.value
> go top
> thisform.mypageframe1.page1.grid1.setfocus
> thisform.refresh
>
>If someone else on the network is entering a record at the same time,
>that record also appears in the pageframe one grid, although it does
>not meet the filtered criteria (vehicle_nu).
>
>Any Ideas................
>
>dan

I'm sorry to say this, but this whole thing is highly suspicious to be used for grid. Generally, grids don't like filters. Usually, it's painfully slow. Other problems can possibly be fixed, e.g. by resetting grid.recordsource, though again it's much better to view or cursor in this case.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform