Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Truncated element from ASTACKINFO()
Message
De
12/09/2012 13:04:50
 
 
À
12/09/2012 09:02:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01552732
Message ID:
01552786
Vues:
50
>>Playing with ASTACKINFO() for a bit in trying to modify an error handler. I have a program called GLOOP and when i DO GLOOP I'm seeing some wierd results
>>
>>
>>**GLOOP.PRG
>>USE (mytable)
>>ab=111
>>DO rlpa
>>
>>** RLPA.PRG
>>ab=123
>>xx = 1
>>yy = 2
>>DO rlpb.prg
>>
>>** RLPB.PRG
>>ww="A"
>>DO rlpc
>>
>>** RLPC.PRG
>>lnStack = ASTACKINFO(aTmpStack)
>>
>>? atmpstack[1,6] ----> DO rlpa.pr
>>? atmpstack[2,6] ----> DO rlpb.pr
>>? atmpstack[3,6] ----> DO rlp
>>? atmpstack[4,6] ----> lnStack = ASTACKINFO(aTmpStack
>>
>>In all the programs there was nothing after the last character of the code. If I add a space or CRLF then the code from aTmpStack[n,6] prints as expected.
>>
>>Does anybody have an explanation as to why the last character would get truncated?
>
>Do you get the same problem if you shorten the variable names? That is, is this some kind of display limit you're encountering?
>
>Tamar

Thanks for the response.

It doesn't appear to matter how long the program is or how long the variable names are. If the last character of the PRG file is the last character of the line of code (meaning no extra spaces or CRLF) then that line gets truncated by one character in ASTACKINFO[n,6]

It's unlikely to matter very much, but I was curious if anybody had ideas as to why this would happen.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform