Page 1 of 1

@#StringConstant$ doesn't work

Posted: Tue Jul 26, 2016 7:31 pm
by Sicro

Code: Select all

#StringConstant$ = "Hello"
Debug @#StringConstant$
[COMPILER] Line 2: Constant not found: #.

Re: PB_5.50: @#StringConstant$ doesn't work

Posted: Tue Jul 26, 2016 7:52 pm
by Tenaja
I do not believe this is a bug. If you require a pointer to a constant, you have to make a variable, then assign the constant to it, then point to the variable.

Or, you can put it in data, then point to the data label address.

Unless something has changed that I missed.

Re: PB_5.50: @#StringConstant$ doesn't work

Posted: Tue Jul 26, 2016 9:06 pm
by Sicro
Help: history wrote:25th July 2016 : Version 5.50

- Added: #StringConstant$ syntax support, to get the address of a string constant
I just found out that it worked with PB_5.50_beta1. The other beta versions unfortunately I could not test.

Re: PB_5.50: @#StringConstant$ doesn't work

Posted: Wed Jul 27, 2016 12:46 pm
by Justin
It does not work on windows 64 either.

Re: PB_5.50: @#StringConstant$ doesn't work

Posted: Sun Jul 08, 2018 6:13 pm
by User_Russian
This is added in PB 5.50, but has not yet been implemented.

Re: PB_5.50: @#StringConstant$ doesn't work

Posted: Wed Feb 27, 2019 4:48 pm
by skywalk
Still does not work on PBv57 x64.
Sicro wrote:

Code: Select all

#StringConstant$ = "Hello"
Debug @#StringConstant$
[COMPILER] Line 2: Constant not found: #.