Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change a 'U' type into a 'C' type string
Message
From
11/02/2016 09:51:53
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
11/02/2016 09:41:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01631250
Message ID:
01631252
Views:
59
>How can I change a 'U' type() string into a 'C' type string?
>Thanks!

?
If type returns 'U' then whatever you ask for is not defined

Example:
CLEAR ALL
?TYPE('muh') &&no muh
muh = 'HU'
?TYPE('muh') &&muh contains a string
muh = 0
?TYPE('muh') &&muh contains a numeric

test = 'puh'
?TYPE(test) &&no puh
test = 'muh'
?TYPE(test) &&muh still contains a numeric

?TYPE(puh) &&error out, no puh
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform