Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select from a local view
Message
From
31/08/1999 17:46:47
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00259932
Message ID:
00259933
Views:
19
Hi Roi ---

Mind you, this is just a theory, but is the view table buffered? If so, the appended records would have negative record numbers and that *might* be a part of the problem.


>I just ran into something and I was wondering if someone could explain why this works the way it does.
>
>I have a parameterized local view 'MyView'.
>
>I use the view, then select from it:
>
use MyView
>
>Select * ;
>    From MyView ;
>    into cursor Temp
No problem, the Temp cursor shows all the records in MyView (there's only 2 records)
>
>Now I append 2 records to MyView, and perform the same select. The resulting cursor (Temp) doesn't have the appended records? I browse MyView and they're in MyView but the select can't see them.
>
>I tried a
use dbf('MyView') again in 0 alias TempCurs
, select against that get the same results.
>
>What am I missing? I would think the select would find all the records
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform