Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to programmatically get the Computer Name
Message
From
14/12/2007 15:30:35
 
 
To
14/12/2007 15:20:15
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01275848
Message ID:
01275983
Views:
18
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform