- Home
·
- String Manipulation
·
- Returns the number of characters in a given string. It can be successfully used to evaluate the len
Returns the number of characters in a given string. It can be successfully used to evaluate the len
Returns the number of characters in a given string. It can be successfully used to evaluate the length of a piece of text.
API Declarations
public count_final as double
Rate Returns the number of characters in a given string. It can be successfully used to evaluate the len
(1(1 Vote))
static count_text as double
for i = 1 to len(t.text)
select case mid(t.txe, i, 1)
case " ": count_text = count_text + 1
end select
next i
count_final = count_text + 1
msgbox "The total no. of characters in the given text are " & count_final
end sub
'to call the procedure
cmd1_click() 'cmd1 is the command button which is hit to get the length
call str_manipulation(#name of textbox#)
end sub
Returns the number of characters in a given string. It can be successfully used to evaluate the len Comments
No comments yet — be the first to post one!
Post a Comment