darre1
Jan 9th, 2002, 05:42 AM
Hiya is there a function supplied with VB (i cant find one) that will fill a string with x amount of whatever character you specify
For example
at the mo i'm doing
for x = min to max
str = str & " "
next x
which is fine
but is there a function that allows you to add a string to another string, x amount of times, as i'd rather not do a loop each time
i.e.
AddStr(strOriginal,strToBeAdded,23)
would append strToBeAdded onto strOriginal 23 times
For example
at the mo i'm doing
for x = min to max
str = str & " "
next x
which is fine
but is there a function that allows you to add a string to another string, x amount of times, as i'd rather not do a loop each time
i.e.
AddStr(strOriginal,strToBeAdded,23)
would append strToBeAdded onto strOriginal 23 times