Some time ago I wrote a small program on Purebasic 4.61 which worked well.
I have just upgraded to version 5.21 and find that the following lines generate a syntax error:
DataSection
_OPT_Form1_ImageMain:IncludeBinary "Images\query.png"
_OPT_Form1_Thumbs1:IncludeBinary "Images\blankitS.png"
EndDataSection
On going back to the earlier version it works again.
I've looked at the list of changes and can't see why there is a problem. Can anyone help?
problem with latest version
-
- User
- Posts: 19
- Joined: Tue Oct 23, 2012 5:47 am
- Location: Rawene, Hokianga, New Zealand
- Contact:
problem with latest version
It's good to travel hopefully, but nice to arrive sometimes
Re: problem with latest version
PB 5.20 added line continuation characters and it resulted in a side effect with labels
Code: Select all
DataSection
_OPT_Form1_ImageMain:
IncludeBinary "Images\query.png"
_OPT_Form1_Thumbs1:
IncludeBinary "Images\blankitS.png"
EndDataSection
Windows 11, Manjaro, Raspberry Pi OS


Re: problem with latest version
If you want the lines arranged as in the original you have to add a ':' between the label and the rest of the line.
In versions prior to 5.20 the label wasn't treated as it's own line or statement.
Code: Select all
DataSection
_OPT_Form1_ImageMain: : IncludeBinary "Images\query.png"
_OPT_Form1_Thumbs1: : IncludeBinary "Images\blankitS.png"
EndDataSection
-
- User
- Posts: 19
- Joined: Tue Oct 23, 2012 5:47 am
- Location: Rawene, Hokianga, New Zealand
- Contact:
Re: problem with latest version
Many thanks to both of you. It works well now with the new version.
But I wonder what I would have done without your advice? I find nothing about
the alteration in the list of changes. Very frustrating to those of us who are less than brilliant!
But I wonder what I would have done without your advice? I find nothing about
the alteration in the list of changes. Very frustrating to those of us who are less than brilliant!
It's good to travel hopefully, but nice to arrive sometimes
Re: problem with latest version
It's not a matter of brilliancy.
The PB help is good enough but not perfect, and unfortunately the changes from the previous version often fall under the "Fixed: Some compiler and libraries related bugs" umbrella, so you have to follow the forum daily to catch them all.
Fortunately the users' workforce operating here it's generally able to fill the gaps.
One of the best PB features for newcomers without a doubt.
Here the reason behind the modification if you are curious about it: -> http://www.purebasic.fr/english/viewtop ... 28&t=55874

The PB help is good enough but not perfect, and unfortunately the changes from the previous version often fall under the "Fixed: Some compiler and libraries related bugs" umbrella, so you have to follow the forum daily to catch them all.
Fortunately the users' workforce operating here it's generally able to fill the gaps.
One of the best PB features for newcomers without a doubt.
Here the reason behind the modification if you are curious about it: -> http://www.purebasic.fr/english/viewtop ... 28&t=55874
"Have you tried turning it off and on again ?"
A little PureBasic review
A little PureBasic review
Re: problem with latest version
> I wonder what I would have done without your advice?
You just ask here to get friendly help. As far as I'm concerned,
these forums are as much part of the PureBasic product as the
actual product itself.
I've never seen another forum like it.
You just ask here to get friendly help. As far as I'm concerned,
these forums are as much part of the PureBasic product as the
actual product itself.

I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
Re: problem with latest version
A couple of month ago I made a feature request for that very reason: Documentation of how to switch from one version to the nextRobKiwi wrote:But I wonder what I would have done without your advice? I find nothing about the alteration in the list of changes.
In another thread Fred already stated that he likes this idea and in a blog post he said that "we will provide clear migration path when going from one LTS version to another one". So chances are high that updating old source code will soon be much easier...
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!