strings
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| strings [2018/08/19 18:10] – wolfgangriedmann | strings [2018/10/06 05:09] (current) – wolfgangriedmann | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| Of course you can use both at the same time: | Of course you can use both at the same time: | ||
| - | <code visualfoxpro> | + | <code visualfoxpro> |
| As variable, not only a string variable can be used, but every type of object, and under the houd the '': | As variable, not only a string variable can be used, but every type of object, and under the houd the '': | ||
| Line 29: | Line 29: | ||
| cString := i"This is {oPerson}"</ | cString := i"This is {oPerson}"</ | ||
| + | |||
| + | And if you wish, you can also use formatting expressions: | ||
| + | |||
| + | <code visualfoxpro> | ||
| + | |||
| + | nValue := 123.45m | ||
| + | cString := i" | ||
| + | cString := i" | ||
| + | |||
| + | In this case (as in the use with ToString()), | ||
| + | <code visualfoxpro> | ||
| And only in the VO dialect, you need to prefix a char with the '' | And only in the VO dialect, you need to prefix a char with the '' | ||
| <code visualfoxpro> | <code visualfoxpro> | ||
| + | |||
| + | Please note that there is a major difference between C# and X#: in C# all strings are enhanced, and to make them normal, you must prefix them with the '' | ||
| + | In X# all strings are normal, and to be enhanced, they need the '' | ||
strings.1534702214.txt.gz · Last modified: 2018/08/19 18:10 by wolfgangriedmann