Hi All
I am currently putting together some SQL statements and am having to lay them out on a single line, e.g.
put "account_create, timestamp_create, timestamp_create_utc, account_mod, timestamp_mod, timestamp_mod_utc, _kp_uuid_username, email_user, date_of_birth, password_hint, password, username" into tFields
is there a way to allow this to be set out on separate lines (which i find easier to read), e.g.
put "
account_create,
timestamp_create,
timestamp_create_utc,
account_mod,
timestamp_mod,
timestamp_mod_utc,
kp_uuid_username,
email_user, date_of_birth,
password_hint,
password,
username"
into tFields
Many Thanks
SQL layout on different lines
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: SQL layout on different lines
Well, the line continuation character comes to mind. Alternately, as Devin pointed out in the bottom of that page, you can store the meat of the query in a list box or cust. property or whatever you like really, then just call it.
Re: SQL layout on different lines
Try this
See also: https://livecode.wikia.com/wiki/Replace
Code: Select all
replace "," with (comma & return) in tFields
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: SQL layout on different lines
Hm, I'm pretty sure he means in the script editor Max.
In case you don't mean the script editor hrcap, Max's line will take
and put it like this in a field
In case you don't mean the script editor hrcap, Max's line will take
Code: Select all
"account_create, timestamp_create, timestamp_create_utc, account_mod, timestamp_mod, timestamp_mod_utc, _kp_uuid_username, email_user, date_of_birth, password_hint, password, username"
Code: Select all
account_create,
timestamp_create,
timestamp_create_utc,
account_mod,
timestamp_mod,
timestamp_mod_utc,
kp_uuid_username,
email_user, date_of_birth,
password_hint,
password,
username"