Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivelant of ? in general field insert
Message
From
27/12/2002 04:11:34
 
 
To
26/12/2002 11:46:09
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00735861
Message ID:
00735997
Views:
13
Hi!

The variable past "?" is called "parameter" for SQL command(s). When executing, all "?{variable}" are automatically replaced by real values and sent to SQL server. More, these values are replaced in a such way that you can pass really large data (megabytes) using this approach, that is limited when passing data directly as a constant. This way is very useful for saving General and large Memo field data.

>Hi,
>
>If I want to insert a general field (in SPT) to an image field in SQL Serve, I can issue:
>
>SQLEXEC(lnConnect, [Insert into mytable (ImageField) values (?MyCursor.GeneralField)])
>
>Question - what is the "?" doing exactly here? Is there a function equivelant of it if I wanted to concatenate the SQL String myself?
>
>TIA,
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform