[PB5.43LTS] Maths operators and structures

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
marcoagpinto
Addict
Addict
Posts: 1045
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

[PB5.43LTS] Maths operators and structures

Post by marcoagpinto »

Hello!

I was doing some maths operations and I noticed that when we type a structure it doesn't autosuggest after the \.

Code: Select all

Structure test
  light.l
EndStructure
Global test.test
test\light=Random(100)
Debug "Test (%):"+Str(1*test\light)
In the example above, when I type: "test\" after the "1*" it doesn't suggest "light".

Could someone check it?

Thanks!

Kind regards,
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [PB5.43LTS] Maths operators and structures

Post by skywalk »

*test is considered a pointer.
Add a space between the operator and test. 1 * test\...
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply