hi,
can u plz tell me how to slpit a string using a delimeter...
exp:

my string is like guru\text
now i want it to be splitted into
guru
text

any 1 plz tell me...

use this::

dim arr() as string
st= "text1/text2"
arr= split(st,"/")

thanq very much vbCNEW

but how can i find the length of the arr
i mean i dunno how many splits nah....

if i want to use arr(0),arr(1)..... where should i stop....

arr.length is not working....

try to use InStr() function

if you want to know the length of a string just simply use the len(string) that would return the length of the string..
just the string..

string is the variable you want to get the length.

is it such that the number of delimerets can can in every string

then u need to write a sub-routine for that.

thanq very much vbCNEW

but how can i find the length of the arr
i mean i dunno how many splits nah....

if i want to use arr(0),arr(1)..... where should i stop....

arr.length is not working....

stop it on ubound

AV Manoharan

len(string) work for string..
but mine is string array

arr() as string

now i want to fine the length of that string array

Hi Guru,

use UBound(Arr)
Gives u Index of Last item in that Array

REgards
Veena

hi
hw can i set the font for a string.. i have like this

dim str as string
str="guru"
now i want to set the font for this,.. can u plz tell me ...

set the font property of the control in which you are displaying that string.

i'm not going to display that string...

i'm using that string as a subject in my mail code

im sending a mail using the vb code... in that i need to set the font.... im not going to display thatin any control

Hi,

U have to set the font of the Display control where u r using it. u cant set the font of the string...

Regards
Veena

This article has been dead for over six months. Start a new discussion instead.