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 


Easy way to concatinate strings

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


Joined: 08 Feb 2007
Posts: 17

PostPosted: Wed Feb 14, 2007 4:53 pm    Post subject: Easy way to concatinate strings Reply with quote

Hi,

I have had a look at the string functions and havent really found an easy way to concatinate a string, am I missing something ?

e.g. in vb you could just do stringa = stringa & stringb

Is there an easy way to do this ?

Thanks in advance
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Feb 14, 2007 5:34 pm    Post subject: Reply with quote

%%stringa = %%stringa%%stringb

Wink
Back to top
View user's profile Send private message Send e-mail
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Wed Feb 14, 2007 6:24 pm    Post subject: Reply with quote

yep, I don't think it could be any easier...
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


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

PostPosted: Thu Feb 15, 2007 1:40 am    Post subject: Reply with quote

Or if you need you can do this...

%%newstring = %%stringa Here is some text at the end of stringa %%stringb

_________________
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
Skit3000
Admin Team


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

PostPosted: Thu Feb 15, 2007 2:38 pm    Post subject: Reply with quote

And if you want to put text right after a string, be sure to enclose it with quotes:

Code:
%%number = 2
# Do either this
info You are placed %%number"nd"
# Or this, if you don't want to put quotes around all your text
info You are placed %%number""nd

_________________
[ 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
marculos
Newbie


Joined: 08 Feb 2007
Posts: 17

PostPosted: Fri Feb 16, 2007 2:24 pm    Post subject: Reply with quote

Doh ! Sorry for being so dumb ! thanks
Back to top
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Fri Feb 16, 2007 2:39 pm    Post subject: Reply with quote

No need to apologize. Smile Sometimes things are so obvious to us old hands that we forget they may not be to newbies.
_________________
The Tech Pro
www.tech-pro.net
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: Fri Feb 16, 2007 4:24 pm    Post subject: Reply with quote

And thanks to you, other people new to VDS might also find this topic now and they can solve their problems right away 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
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Feb 16, 2007 11:58 pm    Post subject: Reply with quote

Heres one of my favorites for paths as Skit3000 mentioned text.

%%path1 = c:\test
%%path2 = one\misc
%%full_path = %%path1"\"%%path2
Back to top
View user's profile Send private message Visit poster's website
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