Real Software Forums
http://forums.realsoftware.com/

string function
http://forums.realsoftware.com/viewtopic.php?f=13&t=40702
Page 1 of 1

Author:  suibaf [ Thu Sep 15, 2011 3:40 pm ]
Post subject:  string function

Hi,

how can translate from vb6 statement:

Dim sTmp As String
sTmp = String$(256, 0)

to realstudio?

Author:  MonkeybreadSoftware [ Thu Sep 15, 2011 3:47 pm ]
Post subject:  Re: string function

Most likely you won't need something like this in Real Studio. Preallocating memory for strings is not necessary.

you can get something similar by simply converting a memoryblock to string:

dim m as new memoryblock(256)
dim s as string = m

and you have now a string with 256 times chr(0) and no defined text encoding.

Greetings
Christian

Author:  suibaf [ Fri Sep 16, 2011 4:16 pm ]
Post subject:  Re: string function

it work.

Thank you!

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/