| View previous topic :: View next topic |
| Author |
Message |
marculos Newbie
Joined: 08 Feb 2007 Posts: 17
|
Posted: Wed Feb 14, 2007 4:53 pm Post subject: Easy way to concatinate strings |
|
|
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 |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Feb 14, 2007 5:34 pm Post subject: |
|
|
%%stringa = %%stringa%%stringb
 |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed Feb 14, 2007 6:24 pm Post subject: |
|
|
yep, I don't think it could be any easier... _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Feb 15, 2007 1:40 am Post subject: |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Feb 15, 2007 2:38 pm Post subject: |
|
|
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 |
|
 |
marculos Newbie
Joined: 08 Feb 2007 Posts: 17
|
Posted: Fri Feb 16, 2007 2:24 pm Post subject: |
|
|
| Doh ! Sorry for being so dumb ! thanks |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Feb 16, 2007 2:39 pm Post subject: |
|
|
No need to apologize. 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 |
|
 |
Skit3000 Admin Team

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


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Feb 16, 2007 11:58 pm Post subject: |
|
|
Heres one of my favorites for paths as Skit3000 mentioned text.
%%path1 = c:\test
%%path2 = one\misc
%%full_path = %%path1"\"%%path2 |
|
| Back to top |
|
 |
|