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
Post a Comment