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 


Use tabs in a list?

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


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Fri May 30, 2003 10:25 pm    Post subject: Use tabs in a list? Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri May 30, 2003 10:34 pm    Post subject: Reply with quote

Have you tried using @tab()?
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Fri May 30, 2003 11:11 pm    Post subject: Reply with quote

Yes, then I just get

One@tab()Two

displayed in the list Confused

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


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

PostPosted: Sat May 31, 2003 7:14 am    Post subject: Reply with quote

"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
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


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

PostPosted: Sat May 31, 2003 7:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat May 31, 2003 11:13 am    Post subject: Reply with quote

You can also use Tommy's VDSLISTS dll for it.
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Sat May 31, 2003 1:11 pm    Post subject: Reply with quote

Thanks guys.
Smile

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat May 31, 2003 1:12 pm    Post subject: Reply with quote

Yes, are you trying to make columns for lists? Try the VDSLISTS.DLL.

Download Location:
http://www.vdsworld.com/index.php?page=download&fileid=217

Screenshot:

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat May 31, 2003 1:13 pm    Post subject: Reply with quote

Oops. GeoTrail posted right before I posted. Embarassed
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat May 31, 2003 6:51 pm    Post subject: Reply with quote

And I did before GeoTrail... Wink
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat May 31, 2003 7:10 pm    Post subject: Reply with quote

Skit3000 wrote:
And I did before GeoTrail... Wink


I was adding to your post. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Sat May 31, 2003 9:59 pm    Post subject: Reply with quote

hehehe you guys Wink

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
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat May 31, 2003 10:01 pm    Post subject: Reply with quote

Hmm. I don't really understand it. Can you re-explain? Wink
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Jun 01, 2003 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Sun Jun 01, 2003 1:57 pm    Post subject: Reply with quote

Exactly Skit3000 Smile
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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