Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a Bug in Concatenated String ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00754611
Message ID:
00754783
Vues:
21
>>>The line lcTxt=lcTxt+.Controls(ln).Render() does not add the text returned by the render
>>>function, instead replaces lcTxt with the value returned. Thus loosing all the previously
>>>accumulated text in the string. This happens on the recusive call to the container Render
>>>function. This happens with or without the "with/Endwith" code.
>>What happens if you change it to lcTxt = "" + lcTxt + .Controls(ln).Render()?
>Your suggestion also works. Have you seen this before?

Yeah, I ran into it when I did the code to call the GlobalWeather Web Service in Message#739138. In that case, I was recursively parsing an XML document. It was highly frustrating until I got that workaround: then it was just annoying. :-)
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform