Search found 35 matches

by Splunk
Fri Jul 07, 2023 7:45 pm
Forum: Feature Requests and Wishlists
Topic: PureBasic-Reference-Wikipedia
Replies: 15
Views: 1830

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: 1830

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/viewtop...
by Splunk
Wed Jul 05, 2023 1:57 pm
Forum: Coding Questions
Topic: ComputerName() / HostName()
Replies: 2
Views: 330

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: 330

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: 424

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. Besides,...
by Splunk
Fri Mar 10, 2023 6:08 pm
Forum: Feature Requests and Wishlists
Topic: alternate SelectElement()
Replies: 8
Views: 464

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: 464

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() and n...
by Splunk
Fri Mar 10, 2023 3:40 pm
Forum: Feature Requests and Wishlists
Topic: alternate SelectElement()
Replies: 8
Views: 464

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: 464

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 "Us...
by Splunk
Thu Mar 09, 2023 5:58 pm
Forum: Feature Requests and Wishlists
Topic: Editor-Extension
Replies: 8
Views: 584

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: 584

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: 505

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: 584

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? My...
by Splunk
Mon Mar 06, 2023 11:38 am
Forum: Coding Questions
Topic: RegularExpression
Replies: 9
Views: 505

Re: RegularExpression

Thanks @Stargate:
At first glance, the replacement code looks very elaborate. But you are of course right that it can be optimized considerably.
STARGÅTE wrote: Mon Mar 06, 2023 10:49 amFor a documentation of regular expression itself you can read several pages in the internet...
This is exactly what I wanted to prevent :mrgreen:
by Splunk
Mon Mar 06, 2023 10:35 am
Forum: Coding Questions
Topic: RegularExpression
Replies: 9
Views: 505

RegularExpression

Hi guys, i am in the process of extending an older PB program. Since some time PB supports "RegularExpression". I think that these 2 routines can be replaced by this one. I have never dealt with "RegularExpression" before and the sample code in the PB reference is more than poor....