1. How can I add two string?

Hi,
Can someone tell me how to add two string together?
I have a directory string called B and a filename string called X.
I want to put them in the string C.

Can someone help me please? I'm kinda noob... lol

new topic     » topic index » view message » categorize

2. Re: How can I add two string?

Jason Valdron wrote:
> 
> Can someone tell me how to add two string together?
> I have a directory string called B and a filename string called X.
> I want to put them in the string C.

Here's an example:

sequence b, c, x
b = "c:\\windows" -- note the required escaped slash
x = "myfile.dat"
c = b & "\\" & x

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view message » categorize

3. Re: How can I add two string?

Jason Valdron wrote:
> 
> Hi,
> Can someone tell me how to add two string together?
> I have a directory string called B and a filename string called X.
> I want to put them in the string C.
> 
> Can someone help me please? I'm kinda noob... lol
> 
sequence C,B,x

C=B&x

C="myDir" & "Filename"

don cole
SF

new topic     » goto parent     » topic index » view message » categorize

4. Re: How can I add two string?

I'm sorry cklester I didn't notice at first reading, but you did put the 

ampersan in there.

Also I forgot the all important "\\".

Don Cole

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu