Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Bug??
Message
De
21/03/2003 17:18:56
 
 
À
21/03/2003 01:14:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00766256
Message ID:
00768814
Vues:
41
Bob,

I tried this:

local JoeJoe, sAssignmentResults
JoeJoe = "Bob"
sAssignmentResults = "&Joe is thinking to much!"
?sAssignmentResults
&& Results will disply "Bob is thinking to much!"
&& I'd think it sould display "&Joe is thinking to much!"


And got the results: &Joe is thinking to much!

This must mean that - and this may be specific to Fox Pro - that when you assign an initial value to a variable(string), somehow the address of the variable within the initial assignment string string actually is accessed by reference from the second assigned value; in the second string string.

Since string literals are hard coded in other languages i.e Java and C++ - and meant not be changed - this is also a bit strange to me.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform