Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
500 char String too long?
Message
From
17/06/2011 14:18:04
Victor Chignes
Inteliventas
Peru
 
 
To
17/06/2011 03:17:27
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01514836
Message ID:
01514951
Views:
54
Hello Al.

Al variables are local.
I have changed the name of the variables so there is no conflict possible.
Even more weird, I tried the following code:
		campos1=''
		set textmerge to  MEMVAR campos1
		set textmerge on noshow
		FOR i=1 TO lnCampos
			IF ASCAN(TblFields, UPPER(This.iadata[i,1]) )>0
				\\<<ALLTRIM(UPPER(This.iadata[i,1]))>> ,
			ENDIF
		endfor
		set textmerge off
		set textmerge to
and this does not work either, when the string reaches the dreaded limit . For a strange thing, if I replace the old code:
			FOR k=1 TO lnCampos
				IF ASCAN(TblFields, UPPER(this.iaCampos[k]))>0
					zz=this.iaCampos[k]+","
					MESSAGEBOX(zz+" "+STR(len(This.Campos)) +" "+ This.Campos )
						This.Campos=This.Campos+zz
				END
with this
			FOR k=1 TO lnCampos
				IF ASCAN(TblFields, UPPER(this.iaCampos[k]))>0
					zz=this.iaCampos[k]+","
					MESSAGEBOX(zz+" "+STR(len(This.Campos)) +" "+ This.Campos )
						This.Campos=This.Campos+"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" + zz
				END
the variable reaches 900 chars before it bombs, instead of 500.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform