jaPBe 2.5.2.6 - beta-release

Developed or developing a new product in PureBasic? Tell the world about it.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Thanks for the info :) Unfortunately, jaPBe does not support the #PB_SORT constants that are needed for the SortStructuredList() command:

Ripped from the manual:

Code: Select all

  #PB_Sort_Byte   : The structure field to sort is a byte (.b)
  #PB_Sort_Word   : The structure field to sort is a word (.w)
  #PB_Sort_Long   : The structure field to sort is a long (.l)
  #PB_Sort_String : The structure field to sort is a string (.s or $)
  #PB_Sort_Float  : The structure field to sort is a float (.f)
User avatar
Le Soldat Inconnu
Enthusiast
Enthusiast
Posts: 306
Joined: Wed Jul 09, 2003 11:33 am
Location: France

Post by Le Soldat Inconnu »

I correct an error in my indentation modification

My error is on the indentation of function like this

Code: Select all

If a = b : a + 1 : Else : b + 1 : EndIf
You can download the new file, see my previous posts
LSI
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Post by Dräc »

One bug raised on the last version: jaPBe self correct Data$ into Data.

Because Data is a PB keyword, jaPBe doesn’t admit Data$ notation, equivalent to Data.s …
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Fold line styles

Post by Dräc »

One suggestion:

What about making a display distinction between:
- folded lines from procedure blocks and
- folded lines by using ;{ and ;} block delimiters ?

For example:
For procedure blocks folding lines, a solid line is used
For ;{ and ;} folding block delimiters, a dote line is used
Image

Line style selection can be made into Preferences.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: Fold line styles

Post by GPI »

Dräc wrote:One suggestion:

What about making a display distinction between:
- folded lines from procedure blocks and
- folded lines by using ;{ and ;} block delimiters ?

For example:
For procedure blocks folding lines, a solid line is used
For ;{ and ;} folding block delimiters, a dote line is used
Image

Line style selection can be made into Preferences.
sorry, but i don't found a function in scintilla to do something like this.
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Post by Dräc »

Ok ! I have submit a request on that way on the scintilla project area.:wink:
Perhaps a day…
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post by Xombie »

I have a question. How hard would it be to code some kind of plugin or something for Japbe that could insert macros? Like a lot of people are asking for Macro capabilities (and I think it's planned for v4) so what about some pre-processing thing for Japbe that drops in your defined macros before compiling it?

I know just making a program that reads and replaces things in your *.pb file would be easy enough but it'd be neat if you could add something like... I dunno...

;>MACRO IsEven(X)
;- X % 1
;<

And then anywhere you used IsEven(200) would replace it with "X % 1" before compiling. I know that's a bad format but I just wanted to get the thought out there and see what other people think.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

GPI wrote:
Shannara wrote:Any way to make jaPBe to automatically include the declare files when running/compiling an app?
At them moment simple with
XIncludefile "all.declare"
That file is only created randomly (it seems) works sometimes and not others. I have it working for one project. but for another it refuses to be created.

(edit): Anyways, when it does work, sometimes it will not auto-declare all the files in the file list, in my case, it includes declare files of 4 out of 11 of the files in my list.
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Post by Dräc »

An other suggestion:
A command to split the active window into panes, by using the mouse?
I find that very useful, not you?
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Shannara wrote:(edit): Anyways, when it does work, sometimes it will not auto-declare all the files in the file list, in my case, it includes declare files of 4 out of 11 of the files in my list.
All files must be in the same directory and the all declare is only created bevor compile.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Thanks for the info on the all.declare. All files are in the same dir. It looks like if there is more then a few files in a file list, japbe will only auto-declare the first file (main file) in the list, and only have that one file in the all.declare ... this program is weird. However it's the most advanced for pb/win we have atm :)

So I ended up having to manually declare every file in the project (many, many), and create an all.declare myself. Not to mention resave as declare everytime I add and remove a procedure. A real pain, but it works 100%.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Here's another bug found. jaPBe does not support Pointers in structures ... Example:

Code: Select all

Structure strA
  MyString.s
EndStructure

Structure strB
  *ptrAA.strA
EndStructure

BB.strB

BB\ptrAA\MyString = "test"
jaPBe will only fix the casing of "ptrAA" if there is an * before it, however PB does not reconize the * before ptrAAv (PB quirk). Therefore when referencing ptrAA, jaPBe does not reconize it.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Code: Select all

Structure strA
  MyString.s
EndStructure

Structure strB
  *ptrAA.strA
EndStructure

BB.strB

BB\ptrAA\MyString = "test"
I think, this is more a bug with PureBasic...
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

Post by helpy »

Shannara wrote:Here's another bug found.

Code: Select all

Structure strA
  MyString.s
EndStructure

Structure strB
  *ptrAA.strA
EndStructure

BB.strB

BB\ptrAA\MyString = "test"
That isn't a bug! You can not assign the string to a structure which does not exists! "*ptrAA.strA" is a Pointer to a structure. Before you can assign the string in the example, you have to assign the address of the structure to "*ptrAA.strA". Try this code:

Code: Select all

Structure strA
  MyString.s
EndStructure

Structure strB
  *ptrAA.strA
EndStructure

BB.strB
AA.strA

BB\ptrAA = @AA
BB\ptrAA\MyString = "test"

Debug BB\ptrAA\MyString
it would be also possible to dynamically create the structure in the Memory:

Code: Select all

Structure strA
  MyString.s
EndStructure

Structure strB
  *ptrAA.strA
EndStructure

BB.strB


BB\ptrAA = AllocateMemory(SizeOf(strA))
BB\ptrAA\MyString = "test"

Debug BB\ptrAA\MyString
If you do not assign the pointer to a structure, then BB\ptrAA is zero. In this case BB\ptrAA\MyString = "test" assumes that a Structure variable.strA is located at address null. And this is not allowed and also does not make sense.

cu, helpy
Post Reply