Page 2 of 2

Re: Is it possible to find defined and unused variables?

Posted: Sat Oct 29, 2022 10:48 am
by Axolotl
Hey acreis,
acreis wrote: Fri Oct 28, 2022 12:00 pm Good morning,

I'm trying write some ide tools, but I cannot retrive the handle of PureBasic Editor Scintilla window:
...
Any hint?
Thanks
No offense.
But your question has nothing to do with this topic?
It would be better to ask your questions in a new topic with its own heading.
In addition, it is always advisable to search for existing topics first....
Especially on the topic of pb-ide-tools there are countless examples to start from.
Like this: How to insert code to IDE on Mac and Linux

Keep in Mind: The environment variables are only valid when the ide is running.
So you have to create your code as executable and then call it from the ide...

Happy Coding and stay healthy.

Re: Is it possible to find defined and unused variables?

Posted: Sat Oct 29, 2022 11:06 am
by BarryG
Sicro wrote: Wed Oct 26, 2022 6:55 pmisuseradmin_() is not a function, array, list, map or macro
Replace it with IsUserAnAdmin_() instead.

Re: Is it possible to find defined and unused variables?

Posted: Sat Oct 29, 2022 9:47 pm
by Sicro
BarryG wrote: Sat Oct 29, 2022 11:06 am Replace it with IsUserAnAdmin_() instead.
Yes, this is the correct API function name that AZJIO should use in its code, then my tool can check its code correctly.

Re: Is it possible to find defined and unused variables?

Posted: Sat Nov 26, 2022 6:29 pm
by Sicro
My tool now shows the output of the PureBasic compiler when the code could not be preprocessed.