Search found 518 matches

by stevedee
Sunday 8th December 2019 6:43am
Forum: Web
Topic: ssh from gambas on linux
Replies: 5
Views: 14534

Re: ssh from gambas on linux

seany wrote: Saturday 7th December 2019 7:01pm ...I wish to ssh to a target server (say, a.b.c.d) from gambas...
As far as I know there are no Gambas wrappers for ssh.

I don't really know what you want to do, but if the web server belongs to you then you could use Sockets (gb.net) for communication between a remote computer and your server.
by stevedee
Thursday 5th December 2019 8:51am
Forum: General
Topic: All my arrays are read-only
Replies: 16
Views: 17366

Re: All my arrays are read-only

I believe I’ve read somewhere that Steve’s method is the recommended way, and that setting everything public should be avoided as far as possible... Its a security thing. >>>>Ooops, see edit below Imagine that cogier releases an update to "Killer App" to his fan base of 10 million users. ...
by stevedee
Tuesday 3rd December 2019 12:43pm
Forum: General
Topic: All my arrays are read-only
Replies: 16
Views: 17366

Re: All my arrays are read-only

...There is a 'Public' property in the IDE you can change for individual controls... Nice one Charlie, I hadn't spotted that. I guess if we were bothered about OOP and the concept of encapsulation, then keeping all controls Private and just having Public routines to Get & Set values would be th...
by stevedee
Tuesday 3rd December 2019 12:28pm
Forum: General
Topic: All my arrays are read-only
Replies: 16
Views: 17366

Re: All my arrays are read-only

...I think there is another way to do this... If you don't want to make your controls Public, just create a Public routine in the 1st form:- Public Sub UpdateName(strName As String) txtName.text = strName End ...then call it from your 2nd form:- Public Sub Button1_Click() FMain.UpdateName("Ste...
by stevedee
Tuesday 3rd December 2019 11:42am
Forum: General
Topic: All my arrays are read-only
Replies: 16
Views: 17366

Re: All my arrays are read-only

...Now, if I can just figure out how to refer to a textbox on the main form from another form's code, I'll be happy.... Yes, that is because form controls are Private by default. One solution is to go to menu Project > Properties... > Options ...and then enable "Form controls are Public" ...
by stevedee
Thursday 21st November 2019 2:25pm
Forum: General
Topic: A challenge for you
Replies: 9
Views: 10546

Re: A challenge for you

Just for completeness, I think this is a valid (but crude) example of passing pointers; ' Gambas class file Public pPointer As Pointer Public hMemory As Stream Public Sub Form_Open() TextBox1.Text = 5 pPointer = Alloc(4) hMemory = Memory pPointer For Read Write Write #hMemory, CStr(TextBox1.Text) As...
by stevedee
Thursday 21st November 2019 12:53pm
Forum: General
Topic: A challenge for you
Replies: 9
Views: 10546

Re: A challenge for you

OK, I've just been reading about "Delegates" in Visual Basic, so I don't think my answer above is very helpful...sorry.
by stevedee
Thursday 21st November 2019 11:10am
Forum: General
Topic: A challenge for you
Replies: 9
Views: 10546

Re: A challenge for you

...Is there a concept of a 'Delegate' in Gambas, or a way to pass a pointer to a procedure, and then reference it in the destination to execute it? ... Hi Steve, not sure what you have in mind to do with a pointer, or how this relates to the "Repeat" task. But would using ByRef do what yo...
by stevedee
Thursday 14th November 2019 5:12pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 413293

Re: Did you know?

If you spend a lot of time coding in Gambas, go to menu Tools > Preferences > Code Snippets and look to see if there are any shortcuts that you may be able to use. CodeSnippets.png I wish you luck if you plan to memorise them all! You can also make up and add your own, as is the case with "dx&q...
by stevedee
Thursday 14th November 2019 4:48pm
Forum: Project showcase
Topic: PhotoEXIF
Replies: 27
Views: 30612

Re: PhotoEXIF

Also, I'd swap the edit icon for the 'brush & palette' icon (I think its just called "color"). I had a look but could not work out to which one you are referring. 'Color' on my system looks like this http://www.cogier.com/gambas/color.png . 'Edit' seemed appropriate but it's all subje...