Re: [Gambas-user] Convert string to integer

2014-01-25 Thread Caveat
What is in qrg at the time you try to do the CInteger call? Kind regards, Caveat On 26/01/14 08:35, Dirk wrote: > Hi, > > I'm having a problem with Convert string to integer > > > where is my mistake? I get error message: > Type incompatibility expected integer, instead get string > > > Public Su

Re: [Gambas-user] Convert string to integer

2014-01-25 Thread Bruce
On Sun, 2014-01-26 at 08:35 +0100, Dirk wrote: > Hi, > > I'm having a problem with Convert string to integer > > > where is my mistake? I get error message: > Type incompatibility expected integer, instead get string > > > Public Sub MySock_Read() > > '***

[Gambas-user] Convert string to integer

2014-01-25 Thread Dirk
Hi, I'm having a problem with Convert string to integer where is my mistake? I get error message: Type incompatibility expected integer, instead get string Public Sub MySock_Read() ' ''*

Re: [Gambas-user] How to import and/or use Linux function "memcopy"?

2014-01-25 Thread Carl Nilsson
Jussi: Thanks, I had missed that property. Function memmove now works as I think it should. The pointer acts like an integer giving the starting location of the array in bytes. As I recall, in VB6 I can use "iArray" as a variable and it is assumed to mean "iArray(0)", Or, I could have speci

Re: [Gambas-user] How to import and/or use Linux function "memcopy"?

2014-01-25 Thread Carl Nilsson
Benoit: That would indeed be most helpful. A point about my particular uses. The nice thing about the CopyMemory function in Windows and the memmove in Linux (as I undersand it) is that you can copy a simple array to itself with the indices shifted - left or right. For example, treating the ar

Re: [Gambas-user] Gambas Future or what kind of Gambas we want.

2014-01-25 Thread Carl Nilsson
G'day Rob: I concede to your greater knowledge and experience. Just a couple of points in response: Firstly, I chose my words "a wave of the future" carefully. I did not say "the wave ..." Hopefully the future holds many good waves. Secondly, I was simply following the thread, which may or ma

Re: [Gambas-user] Stopping an event when user clicks on the form menu

2014-01-25 Thread Bruce
On Sat, 2014-01-25 at 21:19 +0100, Fabien Bodard wrote: > Or If > Application.ActiveControl.Window <> Me.Window Ah! I was so close. In fact probably too close to see the obvious. Thanks Fabien for taking the time. Bruce --

Re: [Gambas-user] Tooltip help using HTML.

2014-01-25 Thread sfdadds
Thanks for the reply I didn't realise . I guess I should testing with both KDE and Gnome just in case. Regards, Sam -- View this message in context: http://gambas.8142.n7.nabble.com/Tooltip-help-using-HTML-tp45347p45363.html Sent from the gambas-user mailing list archive at Nabble.com.

Re: [Gambas-user] Gambas Future or what kind of Gambas we want.

2014-01-25 Thread Rob Kudla
On 01/24/2014 07:18 PM, Carl Nilsson wrote: > Rob: ...and so maybe a million new users get introduced to Python - > already loaded in the Wheezy RPi distro, not Gambas. If you want to > secure the long term future of Gambas, one of things that must be done > is to attract new users. These new

Re: [Gambas-user] Stopping an event when user clicks on the form menu

2014-01-25 Thread Fabien Bodard
2014-01-25 Bruce : > On Fri, 2014-01-24 at 16:21 +0100, Fabien Bodard wrote: >> http://gambasdoc.org/help/comp/gb.qt4/application/activecontrol?v3 >> >> Returns the control having the focus. >> >> But return null for a menu or when the form lose the focus >> > > Thanks Fabien, that's what I needed.

Re: [Gambas-user] Converting from Basic4android to Gambas

2014-01-25 Thread Fabien Bodard
Is it just projection ? Le 25 janv. 2014 08:14, "John Rose" a écrit : > I have a library written in both C# & Java, which was written as a > library for Basic4android. I want to use it in Android apps, which I > write using Basic4android. The library has no controls i.e. it's purely > calculation

Re: [Gambas-user] Tooltip help using HTML.

2014-01-25 Thread Caveat
Hi Sam It looks like you didn't close your second td of each row properly... I guess try it first with valid html... Dim sHTML AS String sHTML &= "" sHTML &= "" sHTML &= "Note onG#/Ab sHTML &= "Row44 sHTML &= "Velocity96 sHTML &= "" sHTML &= ""

Re: [Gambas-user] How to import and/or use Linux function "memcopy"?

2014-01-25 Thread Jussi Lahtinen
> Moreover, once you got it, your code may break in the future as soon as > the internal > implementation changes. > What you mean by this? I'm expecting normal Gambas arrays to be read in external libraries as c array when passed as iArray.Data. So far this has worked perfectly. And in my underst

Re: [Gambas-user] How to import and/or use Linux function "memcopy"?

2014-01-25 Thread Jussi Lahtinen
iArray.Data gives the pointer you need. Jussi On Sat, Jan 25, 2014 at 4:12 PM, Carl Nilsson wrote: > Good evening Benoit: > Actually, it is the C function memmove that I > want to use. I will be using it all the time to > shuffle array elements along, like a shift > register in data filtering

Re: [Gambas-user] How to import and/or use Linux function "memcopy"?

2014-01-25 Thread Benoît Minisini
Le 25/01/2014 15:12, Carl Nilsson a écrit : > Good evening Benoit: > Actually, it is the C function memmove that I > want to use. I will be using it all the time to > shuffle array elements along, like a shift > register in data filtering. The Windows function > CopyMemory is very fast and much

Re: [Gambas-user] How to import and/or use Linux function "memcopy"?

2014-01-25 Thread Carl Nilsson
Good evening Benoit: Actually, it is the C function memmove that I want to use. I will be using it all the time to shuffle array elements along, like a shift register in data filtering. The Windows function CopyMemory is very fast and much more efficient than using do loops in VB6. It is a

Re: [Gambas-user] How to import and/or use Linux function "memcopy"?

2014-01-25 Thread Jussi Lahtinen
If you have problems to declare memcpy on Gambas, you will very probably have much more problems with it (unexpected behavior, random crashes, etc). There very probably is alternative method for this. As Benoit already ask, why you need it? Anyway: Private Extern memcpy(dest As Pointer, src As Poi

Re: [Gambas-user] Issue 504 in gambas: Can't check first and second checkbox in panel

2014-01-25 Thread gambas
Comment #6 on issue 504 by benoit.m...@gmail.com: Can't check first and second checkbox in panel http://code.google.com/p/gambas/issues/detail?id=504 The link is made by Google, it means nothing as Gambas is hosted on sourceforge.net. See there for the details: http://gambasdoc.org/help/inst

Re: [Gambas-user] How to import and/or use Linux function "memcopy"?

2014-01-25 Thread Benoît Minisini
Le 25/01/2014 08:23, Carl Nilsson a écrit : > G'day all: > Linux has "memcopy" and Windows has "MoveMemory". How do I import or > reference memcopy into Gambas? I can see that I should be able to > effect this function using stream Memory Read and Write, but it may > not work as fast? I need to

Re: [Gambas-user] Tooltip help using HTML.

2014-01-25 Thread Benoît Minisini
Le 25/01/2014 04:49, Sam a écrit : > Hi all, > > I'm having a problem with the tooltips. It works fine with regular > text but when I use HTML for a multi-line tooltip the results are not > predictable. Most of the time an extra blank line shows up at the > bottom. Seems like it might be wrap