Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memvars not concatenating correctly
Message
De
02/09/1998 15:17:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00132475
Message ID:
00132500
Vues:
16
Carl ---

Try doing what you need to do with custom container (probably form) properties. See how that works.



>That was my hunch as well but I guess I don't know quite enough to sort it out yet. In one case, I tried to add a field value to a public memvar where the public memvar is a directory path read from an INI file and the field value is in the current datatable. All that was returned was the public memvar.
>I even tried passing both as parameters to a udf which did the concatenation and it still bombed.
>Puzzling part is that in debug, all values, except the result, look ok.
>
>--Carl
>
>>Carl ---
>>
>>Sounds like a scope issue....are there PUBLIC memvars or created in the method and *only* in the method???
>>
>>
>>>I've had cases in a Method where trying to concatenate two character memvars or properties does not work. Instead, I get the value of the first memvar only. The result is the same in the debug watch window when I create a watch from the concatenation expression.
>>>
>>>Concatenting two literal strings works and concatenating a memvar onto the end of a literal string also works. But concatenating a literal string to a memvar or property does not work.
>>>
>>>I've only had this problem in Methods - not PRG files.
>>>
>>>Any advice is appreciated.
>>>Carl
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform