Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically get the Computer Name
Message
De
14/12/2007 15:30:35
 
 
À
14/12/2007 15:20:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01275848
Message ID:
01275983
Vues:
17
>Or even simpler, since getwordnum() in fact does the alltrim for you
>
>Really? My testing does not show this to be the case.
>
>On my machine:
>
>?LEN( GETWORDNUM( ID(), 1, [#] ) )
>
>gives me 12
>
>?LEN( ALLTRIM( GETWORDNUM( ID(), 1, [#] ) ) )
>
>gives me 11

Yes, you're right. Bummer! I normally don't use the second parameter, and then I have found that alltrim() is not necessary. So I was sure the same thing would apply if you changed the word separator. However, I realize that VFP's behavior makes sense.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform