Search found 63 matches

by Godzilla
Thursday 10th August 2023 5:30pm
Forum: General
Topic: [SOLVED] take over system focus
Replies: 16
Views: 3316

Re: take over system focus

I'm not in league with the great coders on this forum. So if anyone would like to improve on this code, make it more logical, make it even easier for anyone to plug it into their own applications as a replacement for Message(), I welcome it and look forward to it. Well, you asked! I hope I have sim...
by Godzilla
Monday 7th August 2023 9:36am
Forum: General
Topic: [SOLVED] take over system focus
Replies: 16
Views: 3316

Re: take over system focus

This is a great thread and very helpful. I've struggled with coming up with a solution to this problem myself, and failed. I have to hand it to BruceSteers for sharing his method, which solved the problem for me. I'm attaching my own code, based on Bruce's code. I'm trying to help anyone easily be a...
by Godzilla
Saturday 3rd April 2021 2:56am
Forum: General
Topic: Does FTPClient support resume after a transfer hangs?
Replies: 2
Views: 2307

Re: Does FTPClient support resume after a transfer hangs?

Hey thanks Bruce,

You've given me good info to look into and research. Sounds like a solution to me. I appreciate the help, my friend.

Godzilla
by Godzilla
Friday 2nd April 2021 5:53pm
Forum: General
Topic: Does FTPClient support resume after a transfer hangs?
Replies: 2
Views: 2307

Does FTPClient support resume after a transfer hangs?

Hello, I use the Gambas FTPClient to transfer ZIP files to a server, and it usually works great. However, sometimes during an upload, the upload just hangs at a random percentage of the total, and refuses to transfer more. I've added code to ping the receiving server when an upload hangs, hoping it ...
by Godzilla
Friday 5th March 2021 6:48am
Forum: General
Topic: Chr$(40,5) = "(((((" possible? [Solved]
Replies: 4
Views: 3417

Re: Chr$(40,5) = "(((((" possible?

Bruce and cogier, both very workable and useful solutions. Thank you for your replies!
by Godzilla
Thursday 4th March 2021 6:25pm
Forum: General
Topic: Chr$(40,5) = "(((((" possible? [Solved]
Replies: 4
Views: 3417

Chr$(40,5) = "(((((" possible? [Solved]

Hello, We have a command in Gambas "Space" that will produce X number of repetitions of a space. Print "<"; Space$(8); ">" The result is < > In certain circumstances, this ability is very helpful. Is there a command in Gambas which would work similarly for any ASCII cha...
by Godzilla
Tuesday 2nd March 2021 8:06am
Forum: General
Topic: Gambas' object serialization, segmentation fault (11) [Solved]
Replies: 1
Views: 1950

Re: Gambas' object serialization, segmentation fault (11)

I happy to report back that I managed to get the "_write" and "_read" object serialization of my bizarre Frankenstein class array working. That was complicated ! I don't know if my working project attached to this message will ever help anyone else (if it does, I'm delighted). Bu...
by Godzilla
Monday 1st March 2021 6:45am
Forum: General
Topic: Gambas' object serialization, segmentation fault (11) [Solved]
Replies: 1
Views: 1950

Gambas' object serialization, segmentation fault (11) [Solved]

Hello, I'm basing my project (included in this post) on the code example at this link: https://gambaswiki.org/wiki/lang/special/read This code is a crude but a fully-working example of the built-in object serialization, introduced in the stable release of Gambas 3.15.0. It doesn't crash or cause a s...
by Godzilla
Friday 5th February 2021 8:25am
Forum: General
Topic: Deep copy instead of shallow copy?
Replies: 8
Views: 5110

Re: Deep copy instead of shallow copy?

Passing along a tidbit of information from my trial and error experiments with the Pets_Godzilla project (posted above)... As we already know, either of these two lines of code produces a shallow copy: If hPet.TypeOfAnimal = "Reptile" Then Reptiles.Add(hPet) Reptiles[iLoop] = hPet However,...
by Godzilla
Thursday 4th February 2021 9:34am
Forum: General
Topic: Deep copy instead of shallow copy?
Replies: 8
Views: 5110

Re: Deep copy instead of shallow copy?

stevedee and cogier, thank you both for your replies. Steve: I understand that there is some debate as to what may constitute a true deep copy. But to me, whether or not the .Copy command is technically deep...its all fine and good as long as it allows me to make changes to a child array, without th...