| View previous topic :: View next topic |
| Author |
Message |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Fri May 30, 2003 10:25 pm Post subject: Use tabs in a list? |
|
|
Why don't it work to have tabs in a list?
| Code: | list loadtext,3,
"One Two
"Three Four
"Five Six |
I've tried using manual spaces, but it don't look right when I run it. The it looks something like this:
| Quote: |
One Two
Three Four
Five Six
|
_________________
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri May 30, 2003 10:34 pm Post subject: |
|
|
Have you tried using @tab()? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Fri May 30, 2003 11:11 pm Post subject: |
|
|
Yes, then I just get
One@tab()Two
displayed in the list  _________________
 |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sat May 31, 2003 7:14 am Post subject: |
|
|
"LIST loadtext" uses quoted input, so you'll end up with the function name in there if you use @tab(). However, it
should be OK to use actual tab chars with loadtext. I don't see why that should pose a problem.
But you could try to use "LIST add" instead:
| Code: |
list add,3,One@tab()Two
list add,3,Three@tab()Four
list add,3,Five@tab()Six |
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sat May 31, 2003 7:19 am Post subject: |
|
|
Another thought: Often it is quite hard to make variable-length strings line up nicely, also with tabs. You might consider
processing each string, calculate length, and pad up with blanks. Mac once made a good example of that:
http://forum.vdsworld.com/viewtopic.php?t=421
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Sat May 31, 2003 1:11 pm Post subject: |
|
|
Thanks guys.
 _________________
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat May 31, 2003 1:13 pm Post subject: |
|
|
Oops. GeoTrail posted right before I posted.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat May 31, 2003 7:10 pm Post subject: |
|
|
| Skit3000 wrote: | And I did before GeoTrail...  |
I was adding to your post.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Sat May 31, 2003 9:59 pm Post subject: |
|
|
hehehe you guys
What I really want to do is to, instead of using external text files as I am now, for the history list, I want to add the history list to the program code so nobody can mess with it so easily. I really don't need encryption, just to add the formatted text in the program code.
The thing is that the list is formatted like this:
| Quote: | Program Update history
* History action here.
Tip by:
Name one@tab()Name two@tab()Name three
etc. |
See what I mean?
If I use text files as I have until now, I can just click TAB and format it as I want. But that won't work if I put the text inside the program code. _________________
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat May 31, 2003 10:01 pm Post subject: |
|
|
Hmm. I don't really understand it. Can you re-explain?  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Jun 01, 2003 10:20 am Post subject: |
|
|
If he saves something like this in Notepad, and opens it with VDS, the tabs aren't there anymore (try for yourself).
| Code: |
Jack 0123-4028476 San Fransisco
Peter 0723-2355622 New York
John 02687-345325 Washington
|
Save this wih Notepad, and then read it into a list with VDS. _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Sun Jun 01, 2003 1:57 pm Post subject: |
|
|
Exactly Skit3000  _________________
 |
|
| Back to top |
|
 |
|