Page 5 of 5
Posted: Wed Mar 16, 2005 10:54 pm
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)
Posted: Sun Mar 20, 2005 11:52 am
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
Posted: Thu Mar 24, 2005 12:46 pm
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 …
Fold line styles
Posted: Thu Mar 24, 2005 12:58 pm
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
Line style selection can be made into Preferences.
Re: Fold line styles
Posted: Fri Mar 25, 2005 11:50 am
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
Line style selection can be made into Preferences.
sorry, but i don't found a function in scintilla to do something like this.
Posted: Sat Mar 26, 2005 12:27 pm
by Dräc
Ok ! I have submit a request on that way on the scintilla project area.

Perhaps a day…
Posted: Wed Mar 30, 2005 1:21 am
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.
Posted: Wed Mar 30, 2005 4:21 am
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.
Posted: Thu Mar 31, 2005 9:56 pm
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?
Posted: Fri Apr 01, 2005 10:32 pm
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.
Posted: Fri Apr 01, 2005 11:18 pm
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%.
Posted: Mon Apr 04, 2005 1:03 am
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.
Posted: Fri Apr 22, 2005 12:40 pm
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...
Posted: Fri Apr 22, 2005 2:04 pm
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