| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Jun 25, 2003 9:43 am Post subject: @fill |
|
|
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 |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Jun 25, 2003 12:13 pm Post subject: |
|
|
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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Jun 25, 2003 1:44 pm Post subject: |
|
|
| 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 |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Wed Jun 25, 2003 4:25 pm Post subject: |
|
|
You can actually put anything in there..
@fill(12,abcxyz) will produce the string
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
|