Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Halloween Code?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01264519
Message ID:
01264520
Vues:
8
Are you sure that it's space? What do you get from
? ASC(SUBSTR(ALLTRIM(lcImageName),2,1))
>Michel, you need to add SP2 to the drop down for Version for VFP.
>
>Okay, I am having the most strange what I call Halloween code. I cannot understand it. I really think this computer, or program, is possessed. :)
>
>I keep trying to strip the SPACES off of a variable to get down to the one character that remains. When I ALLTRIM() it, you'd think the spaces would be gone, but they are not, or so it would seem. When I do the following code, I see only the letter J.
>
>
>lcImageName=ALLTRIM(lcImageName)
>
>
>However, when I try to find out the length of the variable, also ALLTRIMMED, I see the length as a 2.
>
>
>lnLength=LEN(ALLTRIM(lcImageName)
>
>
>Now, I tell you, that length should only be 1, but it comes out as 2 and when I concatenate another string to it, there is literally a space after that letter "J", even though I ALLTRIMMED it. Now, can anyone tell me why this happens, right before Halloween?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform