Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having problem with Insert query
Message
From
07/09/2004 16:20:52
 
 
To
07/09/2004 16:13:18
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00940082
Message ID:
00940083
Views:
30
You typically won't hard-code values like that; they will be in variables or objects.
lcTest = "this is my" + chr(13)+chr(10) + ;
         "first test"
Insert into ocrdata(id,tiffile,ocdata,created_dt)  Values(4333,'demdemorecv10',lcTest,{9/7/2004})
If you really want to hard-code it:
Insert into ocrdata(id,tiffile,ocdata,created_dt)  Values(4333,'demdemorecv10','this is my' + ;
     'first test',{9/7/2004})
or if you want carriage return in data:
Insert into ocrdata(id,tiffile,ocdata,created_dt)  Values(4333,'demdemorecv10','this is my' + ;
     chr(13)+chr(10)+'first test',{9/7/2004})
>I have an insert query.
>When my ocrdata field has the data in two lines:
>'this is my
>first test'
>i am getting an error saying : Command contains unrecognized phrase/keyword.
>If the same data is in 1 line: 'this is my first test'
>that works perfect.
>How can i adjust my data when executing the query.
>
>*********Query************************
>the following fails:
>Insert into ocrdata(id,tiffile,ocdata,created_dt) Values(4333,'demdemorecv10','this is my
>first test',{9/7/2004})
>
>the following works fine:
>Insert into ocrdata(id,tiffile,ocdata,created_dt) Values(4333,'demdemorecv10','this is my first test',{9/7/2004})
>**************************************
>
>I am trying to use the above query via VB to foxpro.
>Please Help.
>
>Thank you very much.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform