Ajit,
Try it this way:

*************
* Start of Program
*
Private aField_1
Create Cursor curTemp (Id C(50))

aField_1=Replicate("A",100)
cSQL="insert into curtemp (id) values (aField_1)"

For I=1 to 10
        Execscript(cSQL)
EndFor
*
Browse

Return
*
* End of Program
*******

NOTE:
You have to be sure that the fields passed into the ExecScript are private
not local for visibility purposes.

Dave Crozier


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ajit Abraham
Sent: 27 February 2008 14:09
To: [email protected]
Subject: 255 Limit

Hi All,

I insert/update records by building the SQL statement in a variable and 
then do a EXECSCRIPT() on that variable.
But if any string goes beyond the 255 character limit (to insert/update 
a memo field), then it fails.

for eg
this works
lcsql="UPDATE BRTRAN SET NOTES="
lcsql=lcsql+'['
lcsql=lcsql+REPLICATE("A",255)
lcsql=lcsql+']'
lcsql=lcsql+" WHERE SPK='0492JKWD  '"

this does not
lcsql="UPDATE BRTRAN SET NOTES="
lcsql=lcsql+'['
lcsql=lcsql+REPLICATE("A",256)
lcsql=lcsql+']'
lcsql=lcsql+" WHERE SPK='0492JKWD  '"

Is there any solution or a different approach this problem.

Sincerely,

_Ajit Abraham



__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
             http://www.doteasy.com


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to