Author Topic: Continuation Line  (Read 2984 times)

0 Members and 1 Guest are viewing this topic.

Offline MLambert

  • Forum Regular
  • Posts: 115
    • View Profile
Continuation Line
« 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






FellippeHeitor

  • Guest
Re: Continuation Line
« Reply #1 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"
« Last Edit: March 01, 2020, 08:25:54 am by FellippeHeitor »

Offline MLambert

  • Forum Regular
  • Posts: 115
    • View Profile
Re: Continuation Line
« Reply #2 on: March 02, 2020, 05:44:17 am »
Many Thanks Fellippe ... you passed the test.

Mike