Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
500 char String too long?
Message
De
17/06/2011 14:18:04
 
 
À
17/06/2011 03:17:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Divers
Thread ID:
01514836
Message ID:
01514951
Vues:
55
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform