Search found 1113 matches

by cogier
Saturday 6th February 2021 4:12pm
Forum: Project showcase
Topic: InFile
Replies: 38
Views: 24691

InFile

InFile The program searches for text within files. I wrote this program to help me find code I have already written. One of its uses is as an addition to Steve's 'Little Helper', for example if you wanted a refresher on how you managed to get a TrayIcon to work a year ago, then this will find the c...
by cogier
Friday 5th February 2021 3:34pm
Forum: Lounge
Topic: Anyone had a Covid jab?
Replies: 9
Views: 8224

Re: Anyone had a Covid jab?

My wife has just had the letter and will be getting the vaccine next week, does that count?
by cogier
Thursday 4th February 2021 11:51am
Forum: General
Topic: Deep copy instead of shallow copy?
Replies: 8
Views: 5228

Re: Deep copy instead of shallow copy?

Thanks for the high praise. I had not heard of 'shallow' and 'deep' copies but looking here helped me. It's interesting, but I am struggling to think of a use for 'shallow' copy. Let's say Pets is the end-result of a huge, CPU-intensive sort Have you considered using a 'Task' so you can do this in t...
by cogier
Wednesday 3rd February 2021 5:54pm
Forum: General
Topic: How does the MessageView control work?
Replies: 15
Views: 8797

Re: How does the MessageView control work?

PJBlack wrote: Wednesday 3rd February 2021 3:05pm didn't get it to work :(
Nor me, came up with a similar solution.
by cogier
Wednesday 3rd February 2021 4:30pm
Forum: General
Topic: Deep copy instead of shallow copy?
Replies: 8
Views: 5228

Re: Deep copy instead of shallow copy?

In the attached program is an array of the class of 'Pets' which I have then searched for 'Reptiles' and added the 'Pet' to the new "Reptiles" array if appropriate.

Does this help?
Pets-0.0.1.tar.gz
(11.85 KiB) Downloaded 264 times
by cogier
Tuesday 2nd February 2021 4:01pm
Forum: Beginners
Topic: what about the classes?
Replies: 10
Views: 8823

Re: what about the classes?

...he's only just begun
I'm beginning to feel unwell :oops:
by cogier
Tuesday 2nd February 2021 2:38pm
Forum: Beginners
Topic: what about the classes?
Replies: 10
Views: 8823

Re: what about the classes?

PJBlack wrote: Tuesday 2nd February 2021 2:17pm the carpenters ??? really ??? ;)
Really!! :D :D
by cogier
Tuesday 2nd February 2021 1:36pm
Forum: Beginners
Topic: what about the classes?
Replies: 10
Views: 8823

Re: what about the classes?

I have been working on this as well. Here is an example using a class to create a list of your music collection. The Class may seem a little complicated, but I hope you can see how this small amount of code can do so much. Public Sub Form_Open() Dim NewAlbum As Record NewAlbum = New Record(Me, "...
by cogier
Monday 1st February 2021 3:49pm
Forum: Web
Topic: Get a download file size before download (gb.net.curl)
Replies: 9
Views: 13874

Re: Get a download file size before download (gb.net.curl)

I have tried a few things, but I can't get the result you are looking for. If it helps there is a 'Size' property in 'Download' but I can't get it to work.

Image
by cogier
Sunday 31st January 2021 10:48am
Forum: General
Topic: how to get sub/function name and parameters
Replies: 8
Views: 6349

Re: how to get sub/function name and parameters

Can you expand your requirements, as I see it all the answers you are looking for are in the routine.
Public Function test(par1 As Integer, par2 As String) As Integer

  Print "test"
  Print "par1", Str(par1)
  Print "par2", par2

End