Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaping a single quote in a Script #92

Open
nonitex opened this issue Jul 11, 2023 · 1 comment
Open

Escaping a single quote in a Script #92

nonitex opened this issue Jul 11, 2023 · 1 comment

Comments

@nonitex
Copy link

nonitex commented Jul 11, 2023

Trying to use LogPrint() in a Script to print a single quote, but can't escape it using doubling, which is apparently the usual way in Pascal.

LogPrint(' '' ')

I couldn't even find a workaround,
CHR(39) doesn't work because CHR() is not available for Scripts.

On a similar note, it would be great to have a way to use New Line characters in ShowMessage(), for example with /n because it's not really workable with long texts.

Thanks for any input.

@nofeletru
Copy link
Owner

nofeletru commented Jul 25, 2023

but can't escape it using doubling

Pascalc don't pars this correctly.

Also there is no support for pascal char symbol LogPrint('1'+#13+ '2');
But now CHR function replace it LogPrint('1'+CHR(13)+ '2');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants