forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@fill

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Wed Jun 25, 2003 9:43 am    Post subject: @fill Reply with quote

Hi,

does somebody know how to give @fill the character to fill in ?

The help file says

@FILL( <length> {, <text> { , <justification> }} )

....
If no other arguments are supplied, the string is filled with spaces.

bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Jun 25, 2003 12:13 pm    Post subject: Reply with quote

I think that you cannot decide which character is used to pad the string to the desired length. If the length of the <text>
parameter is not sufficiently long, then @fill() will fill in spaces.

So if you want to have specific chars then use a Text parameter long enough to fill your variable.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Jun 25, 2003 1:44 pm    Post subject: Reply with quote

Dr. Dread wrote:
I think that you cannot decide which character is used to pad the string to the desired length. If the length of the <text>
parameter is not sufficiently long, then @fill() will fill in spaces.

So if you want to have specific chars then use a Text parameter long enough to fill your variable.

Greetz
Dread


You are probally right about setting the desired length properly but I believe this function was really put in place to make it possible to build string buffers for use with the Win32 API. I was under the impression that you could only use a single character for the text. I could be wrong though because the help file does not say exactly.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Wed Jun 25, 2003 4:25 pm    Post subject: Reply with quote

You can actually put anything in there..

@fill(12,abcxyz) will produce the string

Code:
"acbxyz      "


Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group