Difference between revisions of "Tutorial: String Variables 10"
Jump to navigation
Jump to search
m
fixed omission of sv_getchar
imported>Odessa m |
imported>DoctaSax m (fixed omission of sv_getchar) |
||
Line 30: | Line 30: | ||
To get some operations done at the level of single characters, you need to pass a character from a string to its ascii code, which you can do with [[Sv_GetChar]]: | To get some operations done at the level of single characters, you need to pass a character from a string to its ascii code, which you can do with [[Sv_GetChar]]: | ||
<pre> | <pre> | ||
let iSomeInt := "somestring" somePosInt | let iSomeInt := sv_GetChar "somestring" somePosInt | ||
let iSomeInt := sv_GetChar "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ.,:" 4 | let iSomeInt := sv_GetChar "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ.,:" 4 | ||