How to do line continuation with quotes in Livecode? -


in livecode script have

   put "create table containers ( `id` integer not null, `name` text not null, `description`    text, `location`    text,  `kind`   text not null,    `capacity`    integer not null,  primary key(id)    )" tsql 

it read better if use line continuation in

put "create table containers (\     `id`    integer not null,\     `name`  text not null,\     `description`   text,\     `location`  text,\     `kind`  text not null,\     `capacity`  integer not null,\     primary key(id)\ )" tsql 

but \ not seem work when line contains double quotes. there other way accomplist his?

unfortunately can't use line continuation character inside quoted string, since treated literal value. have close string , concatenate, this:

put "create table containers (" & \   "`id`    integer not null," & \   "`name`  text not null," & \   "`description`   text," & \   "`location`  text," & \   "`kind`  text not null," & \   "`capacity`  integer not null," & \   "primary key(id)" & \ ")" tsql 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -