Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to Microsoft Access
Message
 
To
13/04/2004 09:36:31
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00894192
Message ID:
00894395
Views:
7
This message has been marked as the solution to the initial question of the thread.
EOF should work:
One_large_string=""
DO WHILE NOT EOF()
    One_large_string=One_large_string+firstemail.FirstEmail
....
Messagebox will not display the entire content of One_large_string if it is large enough.


>And how do I test for end of cursor? I want to grab all of the contents from a certain field in all of the records and append them to one large string.
>
>Here is what I have so far:
>
>LOCAL strBCC
>
>STORE SQLSTRINGCONNECT(;
>'DBQ=H:\Access\email.mdb;'+;
>'DefaultDir=H:\Access;'+;
>'Driver={Microsoft Access Driver (*.mdb)}');
>TO gnConnHandle
>= sqlexec(gnConnHandle,"SELECT FirstEmail from tblemail WHERE SendFirst = True","firstemail")
>
>SELECT firstemail
>GO TOP
>
>DO WHILE NOT EOF
>Messagebox(firstemail.FirstEmail)
>NEXT
>ENDDO
>

>
>I was pretty sure it wasn't going to like the EOF with the cursor... What can I replace that with?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform