String Concatination problems 
Author Message
 String Concatination problems

I have a number of strings, each of which comes from a different
method and function.

I use a MSGBOX to display each string, and each shows nicely.

Then I immediately put them together using:
A = B & C & D & E & F

But all that appears when I display A is what was in B and C.

I have tried various combinations and usually only get the first two
to concatinate. The strings in total are about 10k in size only.

If I take out the odd string like D and F, it concatinates fine.

This type of problem has occured in many of my other programs. Usually
I just assign the offending strings to other strings and then add
those strings together.

What is the world would make only a few of the strings concatinate?

This is driving me crazy.

Please reply to,

Thank you so much,
Ian Vink



Thu, 11 Jun 1998 03:00:00 GMT  
 String Concatination problems
: I have a number of strings, each of which comes from a different
: method and function.

: I use a MSGBOX to display each string, and each shows nicely.

: Then I immediately put them together using:
: A = B & C & D & E & F

: But all that appears when I display A is what was in B and C.

What version of BASIC are you using?  Every version of BASIC I've ever
seen uses +, and not & to concatenate strings.

  a = b + c + d + e + f

or more commonly:

  a$ = b$ + c$ + d$ + e$ + f$

Carl

--
------------------------------------------------------------------

author of Liberty BASIC,  "EASY Windows and OS/2 programming!"
http://world.std.com/~carlg/basic.html



Thu, 11 Jun 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Efficient string concatination

2. Concatination of strings

3. string concatination

4. aggregate string concatination

5. concatination question?

6. concatination!!!!!??????

7. Immediate Problem: Replacing string within a string through a field

8. Problem reading strings from Access7 using getchunk/appendchunk/string datatype

9. String Compare File Name and known string problems

10. converting problem (string / fields)

11. Mid$ String problem

12. String Criteria statement problem

 

 
Powered by phpBB® Forum Software