Re: SQL Cursors
From: Eric den Doop (ericdendoop_at_xspamblockxfoxite.com)
Date: 06/13/04
- Next message: Cindy Winegarden: "Re: Filter"
- Previous message: toylet: "Re: view and modify structure"
- In reply to: kd: "SQL Cursors"
- Next in thread: kd: "Re: SQL Cursors"
- Reply: kd: "Re: SQL Cursors"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 13 Jun 2004 17:30:43 +0200
Hello, kd!
You don't to open an sql result cursor because it's already opened:
SELECT fld1, fld2 ;
FROM yourtables ;
WHERE something = .T.
INTO CURSOR result
* loop through records
SCAN
* print fld1 and fld2 to active window
? result.fld1, result.fld2
ENDSCAN
* to display all records:
BROWSE
What exactly do you mean with "display them". Do you want to display the
result set in a form with textboxes etc, or in a browse window? Or perhaps a
report? Let us know if you need more help.
-- Eric den Doop www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
- Next message: Cindy Winegarden: "Re: Filter"
- Previous message: toylet: "Re: view and modify structure"
- In reply to: kd: "SQL Cursors"
- Next in thread: kd: "Re: SQL Cursors"
- Reply: kd: "Re: SQL Cursors"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|