Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Passthrough Cursor
Message
From
26/06/2002 00:10:09
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00672289
Message ID:
00672321
Views:
8
Hi Sergey,

Thanks, It works!

I have this sql command and wanted to make the cursor updateable. I don't know what's wrong but it does no work.

csql = [Select *, Space(30) as desc2, .F. as Highlight from payroll!position order by desc]
nResult = Sqlexec(thisform.lnconn, csql, "curPosition")

Select curPosition
*!* Index On position Tag position
*!* Index On desc2 Tag desc2

Cursorsetprop("Tables","position","curPosition")
Cursorsetprop("KeyFieldList","position","curPosition")

Cursorsetprop("UpdateNameList",;
"position position.position, "+;
"Desc position.desc, "+;
"Desig position.desig","curposition")

Cursorsetprop("UpdatableFieldList","desc, Desig","curPosition")
Cursorsetprop("SendUpdates",.T.,"curPosition")
Cursorsetprop("Buffering",5,"curPosition")

I do this because I want to be able to update directly on Grid Control. Whenever I edit a record and save it, I just put the command =Tableupdate(1,.T.) but whenever I looked at the base table, it does not update itself.
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform