Search found 37 matches

by Splunk
Thu Jan 01, 2026 12:18 pm
Forum: The PureBasic Editor
Topic: Colors
Replies: 3
Views: 3782

Re: Colors

Example:

Code: Select all

DataSection
    MeaninglessData:			<-- coloured as set...is correct
    Data.d 0, 1, 2, 3, .......
EndDataSection

Restore MeaninglessData			<-- coloured as Variable...why?

JumpMark:			<-- coloured as set...is correct
Goto JumpMark		<-- coloured as Variable...why?
by Splunk
Thu Jan 01, 2026 11:02 am
Forum: The PureBasic Editor
Topic: Colors
Replies: 3
Views: 3782

Colors

I'm programming, and what's really bothering me right now is that although I can set the label for data, jump marks, etc. in the colour to be displayed, this colour is not used behind the instruction when I refer to it, e.g. Restore xxxx (the colour for variables is displayed).

I currently have PB ...
by Splunk
Fri Jul 07, 2023 7:45 pm
Forum: Feature Requests and Wishlists
Topic: PureBasic-Reference-Wikipedia
Replies: 15
Views: 4167

Re: PureBasic-Reference-Wikipedia

:mrgreen:

I think Fred is not a fan of long discussions - he does!
by Splunk
Wed Jul 05, 2023 2:38 pm
Forum: Feature Requests and Wishlists
Topic: PureBasic-Reference-Wikipedia
Replies: 15
Views: 4167

PureBasic-Reference-Wikipedia

The "PureBasic-Reference", its description, hints and examples often turns out quite scarce and often it leaves more questions open than it answers. Also because of this -but not only- there is this forum to answer such questions. (eg. my last post: https://www.purebasic.fr/english/viewtopic.php?t ...
by Splunk
Wed Jul 05, 2023 1:57 pm
Forum: Coding Questions
Topic: ComputerName() / HostName()
Replies: 2
Views: 684

Re: ComputerName() / HostName()

Ok, thanks. You have put me on the right track with NetBios. The hostname could possibly also contain the domain name.
by Splunk
Tue Jul 04, 2023 12:14 pm
Forum: Coding Questions
Topic: ComputerName() / HostName()
Replies: 2
Views: 684

ComputerName() / HostName()

I am writing a server/client application. Server or client can be any computer in this network. The computer that starts the program first is automatically the server.

Where exactly is the difference between the functions computername() vs. hostname()? For me the result is always the same.
by Splunk
Thu Mar 23, 2023 3:33 pm
Forum: Feature Requests and Wishlists
Topic: Macro-Errorhandling
Replies: 5
Views: 1081

Macro-Errorhandling

Hi guys,
i am very dissatisfied with the macro handling in case of error.

The debugger only shows the code line of the macro call. It would be more helpful if the error was displayed directly in the affected macro.
With nested macros that go into depth, one is totally helpless in debugging ...
by Splunk
Fri Mar 10, 2023 6:08 pm
Forum: Feature Requests and Wishlists
Topic: alternate SelectElement()
Replies: 8
Views: 1181

Re: alternate SelectElement()

NicTheQuick wrote: Fri Mar 10, 2023 5:55 pm It's called syntactic sugar. That's all.
Exactly
by Splunk
Fri Mar 10, 2023 5:20 pm
Forum: Feature Requests and Wishlists
Topic: alternate SelectElement()
Replies: 8
Views: 1181

Re: alternate SelectElement()

My dear @Stargate:
I am not concerned with speed or anything else.

Void$ = List(INDEX)\Period$

is neither slower nor faster than

SelectElement(List(), INDEX)
Void$ = List()\Period$

but List(INDEX) is a SIMPLIFICATION. Nothing else. It also does not promote non-optimal code.

If you use a List ...
by Splunk
Fri Mar 10, 2023 3:40 pm
Forum: Feature Requests and Wishlists
Topic: alternate SelectElement()
Replies: 8
Views: 1181

Re: alternate SelectElement()

@Stargate: I cannot accept your argumentation about internal handling and supposed direct access.

An INDEX argument could be handled internally by PB as SelectElement().

yes, in previous versions of PB WriteLong() etc. had no arguments between the (). And now...? 8)
by Splunk
Fri Mar 10, 2023 2:57 pm
Forum: Feature Requests and Wishlists
Topic: alternate SelectElement()
Replies: 8
Views: 1181

alternate SelectElement()

It would be nice to be able to address list items directly with the list index, e.g.
Void$ = List(INDEX)\Period$

and not awkwardly via

SelectElement(List(), INDEX)
Void$ = List()\Period$

I remember that the file handling in the earlier PureBasic versions still had the cumbersome method like ...
by Splunk
Thu Mar 09, 2023 5:58 pm
Forum: Feature Requests and Wishlists
Topic: Editor-Extension
Replies: 8
Views: 1422

Re: Editor-Extension

BarryG wrote: Wed Mar 08, 2023 9:39 am
Splunk wrote: Wed Mar 08, 2023 9:14 amwith hundreds of entries (alphabetically unsorted!) this is not very helpful :(
There's a setting to sort it alphabetically.
Thank you, that is already better than before
by Splunk
Wed Mar 08, 2023 9:14 am
Forum: Feature Requests and Wishlists
Topic: Editor-Extension
Replies: 8
Views: 1422

Re: Editor-Extension

AZJIO wrote: Wed Mar 08, 2023 5:21 amI hope you know that you can turn on the procedure bar, and make the positions you need to move to in the form of comments:
yes, i know...but with hundreds of entries (alphabetically unsorted!) this is not very helpful :(
by Splunk
Tue Mar 07, 2023 7:49 pm
Forum: Coding Questions
Topic: RegularExpression
Replies: 9
Views: 1466

Re: RegularExpression

Thanks, @AZJIO...very interesting and certainly much faster than using Mid().

However, I avoid (unless absolutely necessary) this pointer stuff because a well readable code is more important to me. After some time, when you change the code, you have to think too much about what you did in the first ...
by Splunk
Tue Mar 07, 2023 7:03 pm
Forum: Feature Requests and Wishlists
Topic: Editor-Extension
Replies: 8
Views: 1422

Editor-Extension

Hi guys,

it would be nice, even great, no...fantastic, if the code window could be split into 2 parts. That would prevent having to scroll all the time to have 2 Codeparts in view.

I use a 4k monitor in portrait(!)-Mode, see ~200 lines, but still have to scroll, scroll, scroll....

Is this doable ...