Search found 518 matches

by stevedee
Monday 5th March 2018 8:05pm
Forum: General
Topic: Image manipulation
Replies: 7
Views: 9754

Re: Image manipulation

Here is my very basic test code that seems to work. Create a new project, make sure component gb.Image is included. Add 2 textboxes and 1 button. Pre-load the text boxes with the paths of 2 equal sized images (I used jpegs). ImageSub.png The code:- Public Sub Button1_Click() Dim indexX As Integer Di...
by stevedee
Monday 5th March 2018 5:45pm
Forum: General
Topic: Image manipulation
Replies: 7
Views: 9754

Re: Image manipulation

...I'm trying to write a piece of code to perform some image manipulation - specifically, to mathematically subtract one image from another... I can't see a ready made function for this in Gambas. So you would either have to cycle through the 2 dimensional array for each of the 2 images, and subtra...
by stevedee
Wednesday 28th February 2018 8:42am
Forum: General
Topic: Send command "string" over tcp/ip
Replies: 15
Views: 19387

Re: Send command "string" over tcp/ip

...I started the app and started terminal , used the command : netstat -at , my specified port did not appear at all no communication... Please put a breakpoint at the line:- If ClientSocket.Status > Net.Inactive Then ...and then run the code in the Gambas IDE. If the code does not stop at the brea...
by stevedee
Wednesday 28th February 2018 8:27am
Forum: General
Topic: Quote character in mysql search string
Replies: 5
Views: 7068

Re: Quote character in mysql search string

OK, so it looks like your quoting problem is with SQL not Gambas (i.e. you need to quote to suit SQL rules).

Take a look at this post and let us know if it helps: https://stackoverflow.com/questions/676 ... ophe-in-it
by stevedee
Tuesday 27th February 2018 5:45pm
Forum: General
Topic: Quote character in mysql search string
Replies: 5
Views: 7068

Re: Quote character in mysql search string

I hate this quoting problem. It comes up from time to time and I never seem to remember what I did last time. In an example where I was running a Gimp script I did this:- strExt = Quote("*.[jJ][pP][gG]") strCommand = "cd " & DirView1.Current & " && gimp -i -b...
by stevedee
Sunday 25th February 2018 10:10am
Forum: General
Topic: Send command "string" over tcp/ip
Replies: 15
Views: 19387

Re: Send command "string" over tcp/ip

jornmo wrote: Sunday 25th February 2018 8:17am ...Its the javascript on this site that takes care of the syntax highlighting...
Thanks Jornmo, don't waste any time on it, I was just curious. I couldn't see any non-printing characters or anything unusual that might cause it within the text block.
by stevedee
Friday 23rd February 2018 10:34am
Forum: General
Topic: Raspberry Pi camera module
Replies: 30
Views: 38055

Re: Raspberry Pi camera module

...how to detect there is text printed at the box or not... I think any solution will be relatively complicated, and if this was a real industrial conveyor system, you would need a proper rugged transducer/reader, rather than a RaspiCam. But as an academic exercise, you would need to use some form ...
by stevedee
Friday 23rd February 2018 9:16am
Forum: General
Topic: Send command "string" over tcp/ip
Replies: 15
Views: 19387

Re: Send command "string" over tcp/ip

Hey Jornmo, any idea why the "If" in the first instance of "End If" in my post above is coloured pink not blue?
EndIf.png
EndIf.png (10.25 KiB) Viewed 11930 times
I'm sure it has to be something obvious.
by stevedee
Thursday 22nd February 2018 12:14pm
Forum: General
Topic: Send command "string" over tcp/ip
Replies: 15
Views: 19387

Re: Send command "string" over tcp/ip

I created a form with one button, my purpose is to send string over tcp/ip... You probably need to start again by creating a Gambas project including the gb.Net component. Then you can add a Button and a Socket to the Form. Rename the Socket: ClientSocket Use properties to set IP address and Port:-...
by stevedee
Tuesday 6th February 2018 8:58am
Forum: General
Topic: Advanced HMI conversion to gambas
Replies: 2
Views: 4482

Re: Advanced HMI conversion to gambas

Is it your aim to create an HMI/SCADA interface using Gambas? There are several open source projects that you may be interested in, including:- - http://openopc.sourceforge.net/ - http://oscada.org/main/ - https://domotiga.nl/projects/domotiga/wiki/DomotiGa_Screenshots (which also supports MODBUS &a...