Page 1 of 1
Cannot assign label address to pointer
Posted: Fri Nov 18, 2016 10:22 pm
by bbanelli
Code: Select all
Define *p
*p = ?NumericalData
DataSection
NumericalData:
Data.l 100, 200, -250, -452, 145
EndDataSection
Line 2 - syntax error.
This code is also not working albeit it is legal and operational in PureBasic.
Code: Select all
Define *p
Debug PeekL(?NumericalData)
DataSection
NumericalData:
Data.l 100, 200, -250, -452, 145
EndDataSection
Is there a workaround to use PureBasic's code?
Re: [SB 2.00 b7] Cannot assign label address to pointer
Posted: Sat Nov 19, 2016 5:12 am
by Fred
The '?' operator is not supported in SpiderBasic, but you should be able to use the regular Restore/Read combo to read your data section content.
Re: Cannot assign label address to pointer
Posted: Fri Jun 23, 2017 10:44 am
by MrTAToad
Might be worth removing reference to it in the help files...