[Gambas-user] Multiline strings

Bodard Fabien gambasfr at ...11...
Thu Mar 17 23:49:09 CET 2005


Le jeudi 17 Mars 2005 22:57, Rob a écrit :
> On Thursday 17 March 2005 15:25, ptitoine at ...402... wrote:
> > I'am programming a small app in gambas and i do not know how to (if
> > it's possible) have multiline string like in VB for exemple
>
> You can do it like this:
>
> mystring = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" &
>    "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" &
>    "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
>
> I don't even think you need that underscore.  It messes up the IDE
> when you try to debug it though, because the interpreter and the IDE
> seem to count the line numbers differently when you do this.
>
> Rob
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


Why not store the string in a separte file ...
ans load it at start by 

dim MyString as String
MyString = Replace(File.Load("File"), "/n", " ")

By this way you not mess your code !

(not a good english, sorry)

Fabien





More information about the User mailing list