Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing rows in a table buffered view
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00666151
Message ID:
00666224
Views:
12
Hi, Bob!

The SELECT-SQL and APPEND FROM are the only two commands which don't work with buffered data!
To solve this problem I use the following very generic construction:
* create an empty structure
lcCursor = SYS( 2015 )
SELECT * FROM DBF( "MyBufferedData" ) WHERE .F. NOFILTER INTO CURSOR ( m.lcCursor ) READWRITE

* copy the data into an array
SELECT ( "MyBufferedData" )
COPY TO ARRAY laMyData

* moving the data into cursor
SELECT ( m.lcCursor )
APPEND FROM ARRAY laMyData

* now you can fire any SQL-SELECT against the m.lcCursor-workarea!
SELECT * FROM ....
SeBaFlu
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform