Salat
Well-known member
In VB6 there is a function String which has two arguments number of arguments and character code. This function inserts a number of specified character in to the string
its called like this:
String(16,32) what means: insert 16 space (code32)
I would like to use this function in VB.Net but with parameters (16,0). I found out that there is a StrDup function, but when I use this parameters there is an exception, thet there have to be more then zero length charater.
I need it to use this string with 16-length string with zero coded character to get some values from API functions.
Ive try to searched some similar function in Microsoft.VisualBasic class, but I cant find it.
Have You got any ideas?
thanks for help...
its called like this:
String(16,32) what means: insert 16 space (code32)
I would like to use this function in VB.Net but with parameters (16,0). I found out that there is a StrDup function, but when I use this parameters there is an exception, thet there have to be more then zero length charater.
I need it to use this string with 16-length string with zero coded character to get some values from API functions.
Ive try to searched some similar function in Microsoft.VisualBasic class, but I cant find it.
Have You got any ideas?
thanks for help...