[futurebasic] text handling text in containers

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2009 : Group Archive : Group : All Groups

From: Mark Chappell <chappell@...>
Date: Tue, 29 Dec 2009 17:42:23 -0800
A few questions for those of you familiar with container manipulations in FBtoC.   I couldn't figure out from the FB help window which of these is appropriate (or if it doesn't matter).     In my code, containers are used only for text data.

Question 1:  when making one container equal to another, which of these is preferable, or does it matter?

container1$$ = ""
container1$$ += container2$$

or simply

container1$$ = container2$$

---------------------------------------------
Question 2:   when combining (concatenating) containers, which of these is best:

container1$$ += container2$$

or

container1$$ = container1$$ + container2$$ + ""

---------------------------------------------
Question 3:   For working with a container and a string, to make a container's contents equal to a string:

container$$ = ""
container$$ += textstring$

or simply
 
container$$ = textstring$

---------------------------------------------
Question 4:   And finally, for concatenating a string to the text in a container:

container$$ +=  textstring$

or

container$$ = container$$ + textstring$ (and in this case, does one need to add the  +"" to the end?)


Thanks, Mark Chappell