Re: [Gambas-user] Apps

2018-07-13 Thread ML
*On 13/07/18 12:28, John Rose wrote:* > I used to put my Gambas developed apps on a particular website. > However, I've now lost its URL. Does anyone know the URL of such a site? > I have a number of Gambas apps. I've just changed my iRecorder app > (which uses the get_iplayer command line program)

Re: [Gambas-user] "Long" click

2017-09-21 Thread ML
My guess is that you want a new form to appear after the button is raised, but having been pressed more than X seconds. To this end, I'd add a timer with the desired "long-click lenght" to the main form (the one that "receives the long-click"). Maybe also the form and all its controls should have a

Re: [Gambas-user] Switching to GitLab

2017-08-23 Thread ML
Piccoro, Please don't take it personal. I tried to read that same wiki page, and I had the same issues as Christof; could not make heads nor tails of it. You know your english lacks sometimes, and have been told so a couple of times now. To make things worse, it looks -to me at least- that you ass

Re: [Gambas-user] who to detect if are running inside IDE

2017-07-03 Thread ML
On 03/07/17 14:23, PICCORO McKAY Lenz wrote: > a piece of code to who to detect if are running inside IDE? any ideas how > to? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com In the old days of VB6 I tried to print the result of 1/0 to the DEBUG pane. Since output to the debug

Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-30 Thread ML
On 30/06/17 08:20, Fernando Cabral wrote: > 2017-06-30 7:44 GMT-03:00 Fabien Bodard : >> The best way is the nando one ... at least for gambas. >> As you have not to matter about what is the index value or the order, >> the walk ahead option is the better. >> Then Fernando ... for big, big things..

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread ML
On 16/06/17 14:48, PICCORO McKAY Lenz wrote: > its there some code to get BEFORE send the query the fields of the table? > > i mean, in the following code example i already know the column name, but i > need firts detect column name to send amount of filters > > sCriteria *=* "id = &1"iParameter *=

Re: [Gambas-user] Working with .so library

2017-06-15 Thread ML
On 15/06/17 08:48, Admin wrote: > 15.06.2017 17:54, Admin пишет: >> 15.06.2017 16:19, Tobias Boege пишет: All your help was very important for me, I now have completed my cash register software to the point where it does everything my company needs. I must say Gambas is a great

Re: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread ML
It should; as far as I know nobody sent any further patches to the ODBC component other than me... On 23/05/17 14:59, PICCORO McKAY Lenz wrote: > hi Ml/zxMarce this feature are available officially in the normal 3.9.X > release and up? i use the svn and i dont know if ! > > Lenz M

Re: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status?

2017-05-23 Thread ML
Piccoro, Using ODBC via ConnectionString needs only the Connection.Type (so that gambas knows it should use the ODBC component) and Connection.Host (for the connection data) properties correctly set. The component will, first and foremost, scan the .Host property looking for semicolons (";"). If

Re: [Gambas-user] 16 bit value in hex with MSB and LSB?

2017-05-18 Thread ML
Alex, What you're receiving is two characters with ASCII values 3A (":") and 98 (not printable, ASCII code over 7F). In any case, there's no need to convert anything to hex. If bytes come in LSB first, you can use the *Integer@* function along with the *StrPtr* (or similar, don't remember in Gamba

Re: [Gambas-user] Serial I/O with byte data

2017-05-15 Thread ML
Alex, Without knowing the protocol/device you're communicating with, I don't think anyone will be able to give substantial help. But, after years of interfacing very diverse hardware via RS-232 (fiscal printers, cash-hanlding hardware, GPS, you name it!), I can tell you that it's not always easy,

Re: [Gambas-user] Missing images on the Wiki

2016-07-19 Thread ML
Jesus, Please note that, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the so-called "Connection Strings". I am responsible for this mess, and am still trying to enhance it. None of the following is in the docs yet, AFAIK. Instead of passing a Host named in the corresponding INI file,

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread ML
going to use byte[] array > then byte[0] = 2 is the equivalent. > Using escape (like HTML encoding) is the incorrect thinking > -Fernando > > -- > Open WebMail Project (http://openwebmail.org) > > > -- Original Message --- > From: ML > To: gambas-

Re: [Gambas-user] Serial Port issues and events.

2016-06-30 Thread ML
Alexie, Not really. This is my first attempt at a binary-exchange over serial in Gambas. Can't also find out the old G3 examples that might have existed about this and my web searches were unsuccessful. So, if you could point me to some example code to read a Byte[], I'll be grateful. My attempts

Re: [Gambas-user] Lenght of a string

2016-04-06 Thread ML
José, A side note, no need also to use a FOR-NEXT to fill X spaces. You can do it in a single step: 'for i = 1 to (115 - len(name)) ' name = name & Space$(1) 'next name = String.Left$(name & Space$(115), 115) If you need the spaces at the left (for example to right-align numbers), you d

Re: [Gambas-user] Copy data like Ctrl-C

2016-03-09 Thread ML
On 2016-03-09 12:42, Rolf-Werner Eilert wrote: > When I want to copy data for copy-and-paste like with Ctrl-C, how could > I do it directly from code (via press of a button) instead of offering a > text area for the mouse? > > In our database, sometimes I need a student's address in Writer or >

Re: [Gambas-user] Video question

2016-02-10 Thread ML
On 2016-02-10 08:37, richard terry wrote: > On 10/02/16 22:24, Benoît Minisini wrote: >> Le 10/02/2016 12:22, richard terry a écrit : >>> On 10/02/16 21:48, Benoît Minisini wrote: gb.media can do that. >>> MediaView1.URL = Media.URL("https://www.youtube.com/watch?v=h-cUFt2t0IY";) >>> >>> Hi Be

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread ML
All, I might be utterly wrong, but since Linux normally uses UTF-8, any high-bit-set char may be interpreted as one of the "multibyte char" flags. If isprint() takes this into account, then it's dead right that char by itself is not printable! Hope that helps and makes sense... On 2015-12-29 11:

Re: [Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread ML
Gerardo, You may use the "standard" keyboard shortcuts instead: *COPY -> Ctrl-C** **PASTE -> Ctrl-V** **CUT -> Ctrl-X* Or the "more international" shortcuts (because they do not depend on specific letters); I use these since the old QuickBasic 4.5 (DOS) days: *COPY -> Ctrl-Ins**

Re: [Gambas-user] how print each char/possition in string including spaces

2015-12-10 Thread ML
On 2015-12-10 15:23, Benoît Minisini wrote: > Le 10/12/2015 19:19, PICCORO McKAY Lenz a écrit : >> 2015-12-10 13:21 GMT-04:30 ML : >>> Gerardo, >>> >>> I think you speak spanish, I've been to your site. I'll switch to ES-AR. >> YEAH, the mail rep

Re: [Gambas-user] how print each char/possition in string including spaces

2015-12-10 Thread ML
Gerardo, I think you speak spanish, I've been to your site. I'll switch to ES-AR. If I'm wrong, then please accept my apologies, tell me, and I'll repost in US-EN. Tenés que iterar con un FOR-NEXT teniendo en cuenta la longitud del string. Por ejemplo, pon esto en FORM_OPEN: Dim myString As St

Re: [Gambas-user] New gb.web.form component

2015-11-14 Thread ML
*On 11/14/2015 12:29 PM, Benoît Minisini wrote:* > *Le 14/11/2015 16:18, Moviga Technologies a écrit :* >> Haha! I am laughing! :D That's a good reason! >> My condolences to you by the way. It is very sad to see what has >> happened. Do you live in Paris? > Yep. > As I said to a friend, the "great"

Re: [Gambas-user] Question

2015-09-29 Thread ML
If I'm correct, it means that the compiler should take the specified string as an identifier and not as a reserved word or class. In this case, the string is 'Map'. Looks like the Map property ("{Map}") returns a Map (As Map) object. Sneaky! On 2015-09-29 12:26, Moviga Technologies wrote: > Prop

Re: [Gambas-user] R: How to know is my Form activated or not?

2015-05-04 Thread ML
Abbat, I don't know if you got my reply to the list. I'd go like this instead (this is code to add to the form(s) you want to check): * Private $bActive As Boolean = False** 'This private form variable will hold the form's state ** Public Property Read IsActive As Boolean 'This pro

Re: [Gambas-user] R: How to know is my Form activated or not?

2015-05-02 Thread ML
05:35 PM, Fabien Bodard wrote:* > *2015-05-02 20:51 GMT+02:00 ML :* >> Abbat, >> >> I'd go like this instead: >> >> * Private _active As Boolean = False** 'This private form >> variable will hold the form's state >> ** Public Prop

Re: [Gambas-user] R: How to know is my Form activated or not?

2015-05-02 Thread ML
Abbat, I'd go like this instead: * Private _active As Boolean = False** 'This private form variable will hold the form's state ** Public Property Read IsActive As Boolean 'This property will return the private variable value** ** Private Function IsActive_Read() As Boolean 'The

Re: [Gambas-user] Gambas-user Digest, Vol 107, Issue 12

2015-04-16 Thread ML
bject on form B. No changes need be made to the > datasource properties on form A. > Marty > > *Message: 1 > Date: Tue, 14 Apr 2015 11:48:02 -0300 > From: ML > Subject: Re: [Gambas-user] Reading control properties from a collection > To: mailing list for gambas users &g

Re: [Gambas-user] Reading control properties from a collection

2015-04-14 Thread ML
Marty, Never a good idea to dirty your fingers poking a form's controls from another one. Been there, done that, regretted it for a long time. I'd do this instead, and it's a general-purpose approach that served me well for a long time, no matter the cross-forms (or even cross-class) data you