Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select not getting latest data
Message
From
20/02/1999 03:17:30
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00188821
Message ID:
00189620
Views:
16
Issue...
SELECT maintable
RLOCK()
UNLOCK
before you issue your requery. This forces the system to bypass any read buffer and ensures that you have the lastest data.

HTH
//:^)
>Try doing a select 0 and then a select mytable and see if you data refreshes.
>
>HTH
>Jeff
>
>
>>I have this app that monitors data on a client 's networked system. The network is NT4 with servicepack4. My form has a timer set to 5 seconds. The timer event has a select that gathers data from tables stored on a machine on the network and displays a graph of this data. Also it tracks the movement IN & Out of trucks to different locations on the factory. I have this info in a table in a DBC. Other processes write to this table and my app wakes up every 5 seconds and does a select on this table to display the data, and redraw the screen with this.
>>
>>I have found that the data being fetched is not current. I have set reprocess to 5 seconds and refresh to 5 seconds. But the data is not being refreshed.
>>
>>The user can click on a picture of a truck on the site(on my form) to get more info. But on clicking sometimes they get no data as the truck has moved and the select did not get this data.
>>
>>How do I make sure that the data I am looking at and SELECT is the current one. How do I get a proper "REFRESH" of DATA without closing and reopening the table??
>>
>>Bernard
L.A.Long
ProgRes
lalong1@charter.net
Previous
Reply
Map
View

Click here to load this message in the networking platform