Page 1 of 1

Line Continuation, Escape Chracters

PostPosted: Fri Nov 09, 2018 1:47 pm
by joshhuggins
Does Datacad support any form of line continuation or Escape Characters in toolbar macros? Was just looking for a way to visually return my code to make it easier to manage.

Re: Line Continuation, Escape Chracters

PostPosted: Fri Nov 09, 2018 2:06 pm
by David A. Giesselman
joshhuggins wrote:Does Datacad support any form of line continuation or Escape Characters in toolbar macros? Was just looking for a way to visually return my code to make it easier to manage.

Could you clarify what you mean by "line continuation" character?

Re: Line Continuation, Escape Chracters

PostPosted: Fri Nov 09, 2018 2:27 pm
by joshhuggins
Some programs support INI files where if you provide the supported escape character at the end of a line, usually \EOL it will skip the imemediate following line break and continue reading on the next actual line as if it were still one logical line. Would look something like this

Code: Select allHint24=Reset GTVs 1-40 To 1/4"
Icon24=Layout32
A24=^:^F0^F4^F1^F7^Joshs Scales.scl$^\EOL
:^S2^F1^F2^F3^F5^S7^S9^\EOL
:^F2^F1^:^S5^F4^F8^:^F2^S6^F1^\EOL
:^F2^F2^:^S5^F4^F8^:^F2^S6^F2^\EOL
:^F2^F3^:^S5^F4^F8^:^F2^S6^F3^\EOL
:^F2^F4^:^S5^F4^F8^:^F2^S6^F4^\EOL
:^F2^F5^:^S5^F4^F8^:^F2^S6^F5^\EOL
:^F2^F6^:^S5^F4^F8^:^F2^S6^F6^\EOL
:^F2^F7^:^S5^F4^F8^:^F2^S6^F7^\EOL
:^F2^F8^:^S5^F4^F8^:^F2^S6^F8^\EOL
:^F2^F9^:^S5^F4^F8^:^F2^S6^F9^\EOL
:^F2^F0^:^S5^F4^F8^:^F2^S6^F0^\EOL
:^F2^S1^:^S5^F4^F8^:^F2^S6^S1^\EOL
:^F2^S2^:^S5^F4^F8^:^F2^S6^S2^\EOL
:^F2^Û^F1^:^S5^F4^F8^:^F2^Û^S6^F1^\EOL
:^F2^Û^F2^:^S5^F4^F8^:^F2^Û^S6^F2^\EOL
:^F2^Û^F3^:^S5^F4^F8^:^F2^Û^S6^F3^\EOL
:^F2^Û^F4^:^S5^F4^F8^:^F2^Û^S6^F4^\EOL

Re: Line Continuation, Escape Chracters

PostPosted: Fri Nov 09, 2018 2:30 pm
by David A. Giesselman
Try a '©' (ASCII character 0169)

Re: Line Continuation, Escape Chracters

PostPosted: Fri Nov 09, 2018 3:53 pm
by joshhuggins
David A. Giesselman wrote:Try a '©' (ASCII character 0169)

That doesn't seem to work (if my syntax is correct)

Code: Select allA24=^:^F0^F4^F1^F7^Joshs Scales.scl$^©
:^S2^F1^F2^F3^F5^S7^S9^©
:^F2^F1^:^S5^F4^F8^:^F2^S6^F1^©
:^F2^F2^:^S5^F4^F8^:^F2^S6^F2^©
:^F2^F3^:^S5^F4^F8^:^F2^S6^F3^©
:^F2^F4^:^S5^F4^F8^:^F2^S6^F4^