Search found 1706 matches

by c4s
Sat Jul 29, 2017 2:43 pm
Forum: General Discussion
Topic: Some thoughts about PB in its current state
Replies: 42
Views: 18772

Re: Some thoughts about PB in its current state

Back in 2012 it got a little quite around the team and some of us were concerned about PureBasic's future. So I initiated the "PureBasic Poll 2012" which was kind of successful with about 300 participants. I think it showed some interesting insights about us developers back then: Who are we? What do ...
by c4s
Tue May 23, 2017 8:14 am
Forum: Coding Questions
Topic: SortStructuredArray lost last value
Replies: 3
Views: 2752

Re: SortStructuredArray lost last value

ArraySize() is misleading as Dim array(5) actually creates an array with 6 elements ("0" included). So simply remove all "-1" and you'll see that SortStructuredArray() works as expected.
by c4s
Sat May 20, 2017 10:23 am
Forum: Feature Requests and Wishlists
Topic: Class for PB
Replies: 2
Views: 2452

Re: Class for PB

I think it would already be a very big advantage if we would be able to instantiate Modules. My feature request with surprisingly PB-like behavior and only minor syntactical changes: "Class Modules" (Create Instances of a Module)
by c4s
Thu Apr 27, 2017 7:26 pm
Forum: Feature Requests and Wishlists
Topic: Handling Try/Catch
Replies: 23
Views: 10417

Re: Handling Try/Catch

+1
by c4s
Mon Apr 03, 2017 9:40 am
Forum: Feature Requests and Wishlists
Topic: Macros defined inside procedures should be valid therin only
Replies: 3
Views: 3471

Re: Macros defined inside procedures should be valid therin

skywalk, thanks for pointing this out. I wasn't aware of it either and really think it should be noted in the help file.
by c4s
Mon Mar 20, 2017 10:55 am
Forum: Coding Questions
Topic: Help File in HTML?
Replies: 10
Views: 4468

Re: Help File in HTML?

Hey Keya, thanks for your investigation. Currently I'm manually unpacking the provided CHM with "hh -decompile output PureBasic.chm" and then creating a ZIP of the output folder. It's tedious and annoying but for me it does the job until we get the HTML on all OS's...
by c4s
Sun Mar 12, 2017 6:08 pm
Forum: The PureBasic Editor
Topic: "Selected Word" Doesn't Include Module Name
Replies: 11
Views: 7571

Re: "Selected Word" Doesn't Include Module Name

it's not as simple as you might think.
m::var(0)\arr[0]\s
^
cursor here, what would you like to get in that case?
arr[0] ?
arr[0]\s ?
m::var(0)\arr ?
m::var(0)\arr[0]\s ?

'arr' is simply the correct word at cursor position.
..and just think about UseModule / With,EndWith etc. For me it's ...
by c4s
Sat Mar 11, 2017 11:01 pm
Forum: The PureBasic Editor
Topic: "Selected Word" Doesn't Include Module Name
Replies: 11
Views: 7571

Re: "Selected Word" Doesn't Include Module Name

Hi c4s Get`s all the selection [...] Thanks for the code, Zebuddi123! Too bad that there doesn't seem to be an easy (built-in) cross-platform way, or is it?

I have never read it as being described as anything but an individual collection of allowable characters terminated on both ends by ...
by c4s
Fri Mar 10, 2017 4:13 pm
Forum: The PureBasic Editor
Topic: "Selected Word" Doesn't Include Module Name
Replies: 11
Views: 7571

Re: "Selected Word" Doesn't Include Module Name

Thanks for your reply, freak.

Well, it returns the word at the cursor as the description says. It doesn't perform any deeper analysis of what that word means or the context in which it appears. Its not a bug. I know what you mean but define "word" in the context of a programming language IDE. It ...
by c4s
Thu Mar 09, 2017 10:37 pm
Forum: The PureBasic Editor
Topic: "Selected Word" Doesn't Include Module Name
Replies: 11
Views: 7571

Re: "Selected Word" Doesn't Include Module Name

Don't you agree that it's unusable like this for modules? I'd say this is even a bug. I clarifying reply from a team member would be highly appreciated...
by c4s
Tue Mar 07, 2017 6:34 pm
Forum: The PureBasic Editor
Topic: "Selected Word" Doesn't Include Module Name
Replies: 11
Views: 7571

"Selected Word" Doesn't Include Module Name

How can I get the IDE's full "word currently under the cursor" for procedures/constants/variables of modules?

Unfortunately in this case the environment variable PB_TOOL_Word or the %WORD argument is unusable... Because when hovering e.g. over MyProc() of MyModule::MyProc() it should return ...
by c4s
Wed Feb 22, 2017 5:15 pm
Forum: Coding Questions
Topic: Macro parameter: determine empty value
Replies: 3
Views: 2040

Re: Macro parameter: determine empty value

See this topic for a very related feature request: Improve Macro Handling with MacroIf and MacroParam()
by c4s
Sat Feb 18, 2017 3:41 pm
Forum: Feature Requests and Wishlists
Topic: [5.50] MessageRequester icons
Replies: 3
Views: 2697

Re: [5.50] MessageRequester icons

+1

In the meantime is something like Windows' #MB_ICONQUESTION also available for Linux/Mac?
by c4s
Sun Feb 12, 2017 6:05 pm
Forum: Feature Requests and Wishlists
Topic: Folding for Multi-Line Comments
Replies: 4
Views: 3228

Re: Folding for Multi-Line Comments

Tenaja wrote:c4s, which other IDE's recognize blocks of comments that are commented only by individual lines, as in PB?
IntelliJ IDEA for example. But I have to admit that I thought/felt more support it (just checked VS Code, Notepad++ and Eclipse).