#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)
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 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.
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.
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%.
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.
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:
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.