Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Idiot guide to using remote tables
Message
From
15/11/2003 09:26:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/11/2003 09:19:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00849959
Message ID:
00850228
Views:
17
>Greetings Cetin
>
>Thanks for the guide. Looks v useful. One thing I'm having trouble with is the update statement.
>
>SQLEXEC(gnhandle,"update vizkeys set crypt_key="whatever" where realkey='one of my keys' ","real")
>
>works because I'm using a literal
>
>but if I try to set crypt_key with the content of a variable
>as in
>
>SQLEXEC(gnhandle,"update vizkeys set crypt_key=m.whatever where realkey='one of my keys' ","real")
>
>it fails.
>
>I thought you'd given me a clue with your use of the "?"
>
>so I tried
>
>SQLEXEC(gnhandle,"update vizkeys set crypt_key=?m.whatever where realkey='one of my keys' ","real")
>
>but then it stops with an inputbox and asks me to input a value for m.whatever!
>
>what I should be doing is...

Prepare it before the call if you don't want it to be asked.

m.Whatever = 'myCryptedKey'
m.myRealKey = 'one of my keys'
SQLEXEC(gnhandle,"update vizkeys set crypt_key=?m.whatever where realkey=?m.myRealKey ")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform