Computer Science Canada
strings in vb
|Author:||Homer_simpson [ Sun Nov 09, 2003 2:34 pm ]|
|Post subject:||strings in vb|
say i got this string:
how can i make it print the third character "c"
i tried print s(3) but it doesn't work like that =(
|Author:||Tony [ Sun Nov 09, 2003 3:16 pm ]|
well, to use substrings in VB, you can use Mid(from:int, length:int)
so 3rd character would be
Now the string itself also probably goes somewhere... but since I don't currently have VB installed, I can't say for sure.
There're also Left() and Right() I think If you need to cut a side off or something