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

Allowing Usage of CHR$ in CONST Statements #359

Closed
a740g opened this issue Aug 14, 2023 · 0 comments · Fixed by #435
Closed

Allowing Usage of CHR$ in CONST Statements #359

a740g opened this issue Aug 14, 2023 · 0 comments · Fixed by #435
Labels
enhancement New feature or request

Comments

@a740g
Copy link
Contributor

a740g commented Aug 14, 2023

Currently, QB64-PE supports the usage of _RGB32 and _RGBA32 in CONST statements, which allows for improved code readability and maintainability when working with color values. It would be beneficial to extend this capability to include the CHR$ function within CONST statements as well.

This would enable folks to define constants representing ASCII characters or sequences, like how _RGB32 constants are currently supported when working with color values. The proposed behavior would allow code like the following to be valid:

CONST CRLF = CHR$(13) + CHR$(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant