QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: MLambert on March 01, 2020, 07:48:22 am

Title: Continuation Line
Post by: MLambert on March 01, 2020, 07:48:22 am
Hi,

I have drawn a blank.
I have some very large lines that I want to break down into easy readable lines of code.
I have 3 text lines
A$ = "ABCDEFGHIJKL"

I want to break up these lines into 3 lines of continuation text
A$ = "ABCD_
        ,EFGH_
        ,IJKL"

I get an error on this and I have tried many combinations. Just can't get it right.

Pls someone point me in the right direction.

Thks,

Mike





Title: Re: Continuation Line
Post by: FellippeHeitor on March 01, 2020, 08:23:09 am
Can't break a string in half like that. Try like this:
Code: QB64: [Select]
  1. A$ = "ABCD" + _
  2.      "EFGH" + _
  3.      "IJKL"
Title: Re: Continuation Line
Post by: MLambert on March 02, 2020, 05:44:17 am
Many Thanks Fellippe ... you passed the test.

Mike