Re: Memo Update
From: Ook (outlookexpress_at_nospam@embertsdotcom)
Date: 03/17/04
- Next message: Christian Ehlscheid: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Previous message: Ook: "Re: Problem browsing large file"
- In reply to: Carl T: "Re: Memo Update"
- Next in thread: Jack Jackson: "Re: Memo Update"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Mar 2004 09:27:28 -0700
Try this:
lcVALUE = a string of jibberish goes here after I have counted the
characters with a LEN() function in Excel so that I know how manu characters
the string literal contains.'
UPDATE inmast SET fcomment=lcVALUE WHERE fprodcl='TO'
"Carl T" <anonymous@discussions.microsoft.com> wrote in message
news:CCB09EEC-F0C8-4F6B-86BE-C7C9C6263DD8@microsoft.com...
> I can do better than that - The error can be easily reproduced (at least
for me) in VFP 8.0 developer environment. I open the database (I am using a
ERP program called Made2Manage) and enter the following SQL statement
directly in the command window.
>
> UPDATE inmast SET fcomment='a string of jibberish goes here after I have
counted the characters with a LEN() function in Excel so that I know how
manu characters the string literal contains.' WHERE fprodcl='TO'
>
> When the length of that string literal is 255 or less then the statement
succeeds (I get no error message, and upon a subsequent select statement
with the same criteria I see that the memo field FCOMMENT was updated as
requested.
>
> However, when the length is 256 characters (or more) then I the update
command returns the following error message and upon subsequent select
statement, I can see the field was not updated.
>
> Command contains unrecognized phrase/keyword
>
> I am using
>
> ----- Jack Jackson wrote: -----
>
> Post the code that is getting the error so we can we what is wrong.
>
> On Tue, 16 Mar 2004 20:36:07 -0800, Carl T
> <anonymous@discussions.microsoft.com> wrote:
>
> >Yes I am using a variable of string type and when it's length is
less than 255 characters, it works fine, but when over 255 I get the error
"Command contains unrecognized phrase/keyword."
> >>> ----- Rush Strong wrote: -----
> >> But a variable can be 16MB long, and I suspect that a variable
is being
> > used.
> >> - Rush
> >> "Fred Taylor" <ftaylor@mvps.org!REMOVE> wrote in message
> > news:unUw2E8CEHA.2616@TK2MSFTNGP12.phx.gbl...
> >> A memo field can support very large character strings. However, a
> > constant
> >> value in VFP can't be larger than 254 characters. Break the
contant up
> > into
> >> multiple strings.
> >>> REPLACE memofield WITH "very large character string"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> " more values"+;
> >> "etc."
> >>> "Carl T" <anonymous@discussions.microsoft.com> wrote in message
> >> news:761523E9-481E-4739-8CF8-8F62DA8F305A@microsoft.com...
> >>> What if longer than 255 charachters?
> >>>
- Next message: Christian Ehlscheid: "Re: Logical fields in MySQL, field mapping from VFP to MySQL"
- Previous message: Ook: "Re: Problem browsing large file"
- In reply to: Carl T: "Re: Memo Update"
- Next in thread: Jack Jackson: "Re: Memo Update"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|