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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement