Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Dec 08, 2019 5:25 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: string function
PostPosted: Thu Sep 15, 2011 3:40 pm 
Offline

Joined: Tue Dec 16, 2008 9:08 am
Posts: 220
Location: Lecce (Italy)
Hi,

how can translate from vb6 statement:

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

to realstudio?

_________________
RB2012R1
My native language is Italian, I'll try to make my posts understandable for everybody.


Top
 Profile  
Reply with quote  
 Post subject: Re: string function
PostPosted: Thu Sep 15, 2011 3:47 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
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

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: string function
PostPosted: Fri Sep 16, 2011 4:16 pm 
Offline

Joined: Tue Dec 16, 2008 9:08 am
Posts: 220
Location: Lecce (Italy)
it work.

Thank you!

_________________
RB2012R1
My native language is Italian, I'll try to make my posts understandable for everybody.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group