Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP scripting?
Message
 
 
To
04/04/2007 10:13:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01211369
Message ID:
01212305
Views:
11
Hi Samuel,

This is something strange you're trying to do. Why do you need to use Excescript in this case at all? And can you create a cursor for your grid in form's load and then just use a "safe select" approach?

Can you elaborate more in what you're trying to accomplish?

>Hi Sir,
>
>How do I dump all my data in my cursor to my grid? Please help.
>
>
>LOCAL lcSQL
>
>lcSQL = "SELECT * FROM MyTable INTO CURSOR crsGrid1"
>
>EXECSCRIPT(m.lcSQL)
>
>THISFORM.grid1.RecordSource = "crsGrid1"   && this is not working?
>THISFORM.grid1.Refresh
>THISFORM.txtSqlWindow.SetFocus
>
>
>Thanks,
>Sam
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform