Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing String of Strings in SPT
Message
 
 
To
25/03/2010 09:09:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01457133
Message ID:
01457136
Views:
81
This message has been marked as the solution to the initial question of the thread.
>For some reason when the UT interface was re-vamped I could not get logged in so I had to create a new account. In doing this I lost access to all of my previous posts.
>
>I have asked this question already and got a solution, I just cannot remember what is was.
>
>I am needing to pass a string of strings with SPT(db2 database).
>
>myString = "'56230','62323'"
>spt = "Update myRemoteTable Set myfield = '" + myString + "' where myfield2 = whatever"
>
>I cannot get the syntax right to get this to work.

Are you going to store 'Val1','Val2' in one field in a database?

You always need to double the single quote, but it may be a better way to use parameters, e.g.
myString = "Something with single quote (,) inside"
myField2 = "Something Else"

spt ="update myRemoteTable Set myField = ?m.myString where myField2 = ?m.myField2"
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform