Search found 1689 matches

by BruceSteers
Wednesday 24th July 2024 5:47pm
Forum: Web
Topic: ServerSocket / Socket Write limit
Replies: 6
Views: 459

Re: ServerSocket / Socket Write limit

Are you using JSON? In any way. Then beware of stuff (sorry, I have stuff that looks simillar) no just gb.net ServerSocket.class on the web server and Socket.class on the clients. Trying normal Socket (steam) Read / Write methods. sending plain ascii text (basically a gb.settings style file text) I...
by BruceSteers
Wednesday 24th July 2024 5:01pm
Forum: General
Topic: Custom static Functions
Replies: 9
Views: 503

Re: Custom static Functions

If you mean in the IDE console then it's probably an IDE feature. nothing to do with static or non static in a class. making a function or a property Static just means you access it without having to create an object and by accessing the class directly eg.. Imagine a class called Tester.class Export...
by BruceSteers
Tuesday 23rd July 2024 6:48pm
Forum: General
Topic: GUI LOCKS for refreshing during some loops
Replies: 4
Views: 240

Re: GUI LOCKS for refreshing during some loops

Try just Wait on its own, no delay Tried that and WORKED LIKE A CHARM ... using wait with no delay Tks ;) Surprising that just omitting an argument changes the behaviour so drastically... I would even think that it could be a "subtil bug" in wait function. No it's just how Wait is , provi...
by BruceSteers
Monday 22nd July 2024 10:12pm
Forum: General
Topic: GUI LOCKS for refreshing during some loops
Replies: 4
Views: 240

Re: GUI LOCKS for refreshing during some loops

Try just Wait on its own, no delay Or make a Timer that runs the function outside of the key event handler But any lengthy task that's not a background task will halt your program while it performs. Using Wait is the way but not good to use it inside the key event so in the key event you would just ...
by BruceSteers
Monday 22nd July 2024 9:01pm
Forum: General
Topic: What is the use of Try? It is allowing an error ?
Replies: 13
Views: 696

Re: What is the use of Try? It is allowing an error ?

The difference between Finally and Catch is that the code under Catch is run only if there is an error (and you didn't use Try ). The code under Finally is run if there is an error or if not an error and you have not exited the function using Return If Finally is used it must be used before Catch
by BruceSteers
Monday 22nd July 2024 1:57pm
Forum: Web
Topic: ServerSocket / Socket Write limit
Replies: 6
Views: 459

Re: ServerSocket / Socket Write limit

Hello. How is the “Read ...” command line ? It was simply this... sTxt = Read #Soc, Lof(Soc) I have been able to handle it as i know the text should end with a "}" as it's a collection setting string If it does not end in } then it saves the currently read text to a buffer and appends eac...
by BruceSteers
Monday 22nd July 2024 1:29pm
Forum: Beginners
Topic: IDE has AutoSave ?
Replies: 2
Views: 251

Re: IDE has AutoSave ?

Nope

Just hit Ctrl+S often
by BruceSteers
Monday 22nd July 2024 9:51am
Forum: Web
Topic: ServerSocket / Socket Write limit
Replies: 6
Views: 459

ServerSocket / Socket Write limit

Is it common for HTTP sockets to have a limited Write length for data or can it be set/raised? I have this program feature..... I have a ServerSocket running and i connect my program to it. other programs can also connect to it and those connected can share data. So for example one program will requ...
by BruceSteers
Sunday 21st July 2024 6:28pm
Forum: General
Topic: GREEDY: complex patterns for pcre matching
Replies: 6
Views: 278

Re: How capture grouping in PCRE ?

Check out many of the other commands in RegExp class if you want to do proper regex matching https://gambaswiki.org/wiki/comp/gb.pcre https://gambaswiki.org/wiki/comp/gb.pcre/regexp https://gambaswiki.org/wiki/comp/gb.pcre/regexp/replace https://gambaswiki.org/wiki/comp/gb.pcre/regexp/submatches The...
by BruceSteers
Sunday 21st July 2024 6:11pm
Forum: General
Topic: Best approach to build a line number view for a text editor
Replies: 11
Views: 507

Re: Best approach to build a line number view for a text editor

If I ran: Texto.topos(line, col) it gives me [x y] and I am looking for String.Len( of current position) oops yep , I hadn't even realized ToPos gives a pixel position not a character position ! (I copied that code from my editor program, and it's wrong lol, cheers for spotting the bug) Now I'm usi...