Re: [Gambas-user] Can't open Console or Find Results

2023-01-17 Thread T Lee Davidson
On 1/17/23 07:57, Jorge Carrión wrote: With Gambas 3.18 I can't see the Console, the Notes or the Find Results. All I get with F11 key is a Toggled "Console" button in the Bottom bar of Editor. It's only me or its a bug? I can toggle Console and Notes normally without issue. I do not see any

Re: [Gambas-user] QR Codes

2021-07-28 Thread T Lee Davidson
On 7/28/21 9:36 PM, richard terry wrote: Hi list, Is it possible to generate a QR code image from gambas? Thanks Richard You could shell out to the 'qrencode' command-line utility. Or, look on the Gambas Farm for "QRCreator". -- Lee ___

Re: [Gambas-user] webpage editor

2019-10-09 Thread T Lee Davidson
This is a discussion list. Everyone subscribed to the list gets every message sent to the list. How was the message misrouted? BTW, this particular list is deprecated. Subscription to the new list is at: https://lists.gambas-basic.org/listinfo/user On 10/8/19 11:47 AM, Antonis wrote: Dear

Re: [Gambas-user] Custom Control Icon

2019-04-04 Thread T Lee Davidson
You sent your message to the old Gambas Mailing List which has been deprecated. I don't know what happened to the auto-reply informing of such. Anyway, here's the new list's subscribe form: https://lists.gambas-basic.org/listinfo/user ___ Lee On 4/4/19 4:57 AM, bill-lancaster wrote: I

Re: [Gambas-user] Loop variable question

2019-02-04 Thread T Lee Davidson
Also, I didn't notice when I replied, but thanks to the Autoresponse from the list: This mailing-list is deprecated. Please now subscribe to https://lists.gambas-basic.org/listinfo/user ___ Lee On 2/5/19 2:35 AM, T Lee Davidson wrote: Project > Properties > Statistics ? ___ Lee

Re: [Gambas-user] Loop variable question

2019-02-04 Thread T Lee Davidson
Project > Properties > Statistics ? ___ Lee On 2/5/19 12:03 AM, richard terry wrote: Thanks, I suspected as much. Sadly, its not a short process -  I'd hate to think how many  thousands of lines of code... will take me weeks I guess. BTW anyway of quickly counting how many forms/modules 

Re: [Gambas-user] How to Change Keyboard Layout

2018-10-02 Thread T Lee Davidson
>> >> I used: >> Desktop.SendKeys("[Alt_L] + [Shift_L]") >> >> so another problem appeared, >> I need to detect if language is Arabic or English >> I can't find a solution for that >> Can you help me? >> >>

Re: [Gambas-user] How to Change Keyboard Layout

2018-10-01 Thread T Lee Davidson
Perhaps Desktop.SendKeys ? ___ Lee On 10/1/18 12:42 PM, WAEL via Gambas-user wrote: > Hello > I'm trying to change system keyboard layout by pressing a key > I can't find the right code for doing so > please help > I usually press Alt+Shift to change keyboard from English to Arabic and vice >

Re: [Gambas-user] Editing still blocked

2018-06-05 Thread T Lee Davidson
On 06/04/2018 12:26 PM, Carlos Valente wrote: > I'm going through the same problem. I use Ubuntu 16.04.4 and the Gambas > version is 3.11.90 > This mailing list is deprecated. See the new lists at: http://lists.gambas-basic.org/listinfo -- Lee

Re: [Gambas-user] Format function changes date value

2018-05-19 Thread T Lee Davidson
CDate uses UTC and, without the time information in the string, it would store midnight. Format uses local time. So, anyone in a time zone behind UTC will get the previous day printed. Try this format string: zTestResult = Format(CDate(zTestDate), "mm/dd/yy hh:nn ddd") Does the difference in

Re: [Gambas-user] What is wrong with my query syntax?

2017-12-30 Thread T Lee Davidson
Hi Doug, I think someone may have inadvertently confused you. is where you *should* have started the thread, and not on this one. This list, , is deprecated. You were correct to begin with. -- Lee On 12/30/2017 12:43 AM,

Re: [Gambas-user] Gambas not starting

2017-11-12 Thread T Lee Davidson
Shouldn't we be using the new Gambas mailing list at http://lists.gambas-basic.org/ ? -- Lee On 11/10/2017 05:55 PM, Bruce Cunningham wrote: Jussi, When I do that, it just hangs. No messages, just a sold cursor. Bruce Bruce Cunningham -Original Message- From: Jussi Lahtinen

Re: [Gambas-user] Cannot find Gambas on Suse Leap 42.2

2017-10-30 Thread T Lee Davidson
On 10/30/2017 12:48 PM, Benoît Minisini wrote: Le 30/10/2017 à 17:09, Rolf-Werner Eilert a écrit : I had it installed twice on two different systems, but on the third one, it suddenly doesn't appear anymore. Yast as well as zypper don't want to know it anymore. I looked on the website

Re: [Gambas-user] Cannot find Gambas on Suse Leap 42.2

2017-10-30 Thread T Lee Davidson
On 10/30/2017 12:09 PM, Rolf-Werner Eilert wrote: I had it installed twice on two different systems, but on the third one, it suddenly doesn't appear anymore. Yast as well as zypper don't want to know it anymore. I looked on the website 1-click-install and downloaded a package from

Re: [Gambas-user] config -C is not finding some files installed on my system

2017-09-18 Thread T Lee Davidson
You located the gb.gsl component files only. These files mentioned (gsl_cblas.h, gsl_math.h, libgslcblas.so, libgsl.so) are system/distribution GSL headers and libraries. Try "locate gsl_". You may need to ensure the GSL development package is installed. -- Lee On 09/17/2017 09:07 PM, Doug

Re: [Gambas-user] New domain name for Gambas

2017-09-02 Thread T Lee Davidson
On 09/01/2017 05:13 PM, Adrien Prokopowicz wrote: Personally I've been thinking about something like gambas-basic or gambas-lang. This way it's much more readable and easy to type in. gambas-basic is good. I like gambas-lang better. -- Lee

Re: [Gambas-user] \r\n and \n

2017-08-27 Thread T Lee Davidson
On 08/27/2017 04:18 PM, Jussi Lahtinen wrote: See the attached project. I'm not sure whether this is feature or bug, but I would appreciate explanation for it. I expect to get string ending with \n, but I always get it ending with \r\n. Why? Jussi Don't know, Jussi. I get "test\n" on every

Re: [Gambas-user] Switching to GitLab

2017-08-23 Thread T Lee Davidson
"git - the simple guide" : https://rogerdudler.github.io/git-guide/ (Geared toward GitHub but still applicable and quite simple.) "Understanding Git Conceptually" : https://www.sbf5.com/~cduan/technical/git/ "Pro Git" : https://git-scm.com/book/en/v2 (More comprehensive since it's an online

Re: [Gambas-user] Mailinglist

2017-08-19 Thread T Lee Davidson
On 08/19/2017 05:42 AM, Benoît Minisini via Gambas-user wrote: Le 19/08/2017 à 08:13, Christof Thalhofer a écrit : Am 18.08.2017 um 17:09 schrieb Benoît Minisini via Gambas-user: Does GitLab plan to offer a mailing-list feature? I will pray for that. Maybe its better not to rely to one

Re: [Gambas-user] Shell command formating

2017-08-07 Thread T Lee Davidson
On 08/06/2017 09:52 PM, Shane wrote: So again on the shell command I have this code Dim result As String Dim command As String path = File.SetExt(file_name, "ihx") command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path Shell command To result FMain.TextArea1.Text = result but

Re: [Gambas-user] UDP-Socket-Client

2017-08-05 Thread T Lee Davidson
On 08/04/2017 11:33 AM, Hans Lehmann wrote: Hello. Does anyone have any experience how to query with a UDP socket client on port 123 the time from a time server? A socket client on port 37 will work correctly, but only the seconds since 1.1.1900 will be returned. This accuracy is not enough.

Re: [Gambas-user] reading files

2017-07-16 Thread T Lee Davidson
On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ

Re: [Gambas-user] usage of too much GOTO can be bad pracitce ?

2017-06-25 Thread T Lee Davidson
Lenz McKAY Gerardo, Please check your spelling before posting a message to the list. Most email clients have a built-in spell checker. And, it just might help us better understand what you are saying, especially given that English is obviously not your first language. Thanks. -- Lee On

Re: [Gambas-user] Using a relative file path for a WebView URL

2017-06-03 Thread T Lee Davidson
wvwPage.HTML = File.Load(path &/ "index.html") ? On 06/02/2017 08:57 PM, adamn...@gmail.com wrote: I am trying to get a WebViewer control in a loaded library to display an html file stored inside the executable archive of a project using that library. This appears to be not possible ... in

[Gambas-user] How to enumerate through SQL Result (was Re: Gambas-user Digest, Vol 132, Issue 29)

2017-05-25 Thread T Lee Davidson
On 05/25/2017 05:24 AM, Unaise EK wrote: > this is my code for displaying data in listbox, but it did not working, pls > help > > Public Procedure AddList() >Dim ListQurey As String >Dim Lresult As Result > >ListQurey = "SELECT name FROM name_tbl" >Lresult =

Re: [Gambas-user] An Issue With Shell command and sudoers rules

2017-05-25 Thread T Lee Davidson
Disable (ie. comment out) targetpw and the "ALL ALL=(ALL) ALL" line in /etc/sudoers. Then you should probably allow regular users to execute only certain commands with something like: %users ALL=/home/adminuser/bin/comando.sh or a special group for 'privileged' users: %wheel

Re: [Gambas-user] gb.debug: Unable to open fifo

2017-05-24 Thread T Lee Davidson
On 05/23/2017 06:07 PM, Tobias Boege wrote: > On Tue, 23 May 2017, T Lee Davidson wrote: >> Hello folks, >> >> I am trying to see if gb.debug will help me diagnose why HttpClient does not >> properly expose redirect response codes on my >> system (and reportedl

Re: [Gambas-user] XMLRPC-Server

2017-05-24 Thread T Lee Davidson
On 05/24/2017 04:52 AM, Hans Lehmann wrote: > > Hello Lee, >> RpcServer.Listen relies on ServerSocket which is part of the gb.net >> component. The documentation does not specify that gb.net is >> required for gb.xml.rpc, but it apparently is. > That's exactly. The missing components were added.

[Gambas-user] gb.debug: Unable to open fifo

2017-05-23 Thread T Lee Davidson
Hello folks, I am trying to see if gb.debug will help me diagnose why HttpClient does not properly expose redirect response codes on my system (and reportedly Tobi's system) while it does so correctly on Benoît's system. However, the documentation for gb.debug is so sparse that I am having to

Re: [Gambas-user] XMLRPC-Server

2017-05-23 Thread T Lee Davidson
Hello Hans, RpcServer.Listen relies on ServerSocket which is part of the gb.net component. The documentation does not specify that gb.net is required for gb.xml.rpc, but it apparently is. On 05/23/2017 07:55 AM, Hans Lehmann wrote: > Hello, > > I'm currently experimenting with the gb.xml.rpc

Re: [Gambas-user] why not a forum event a complicates instruction on list and mail list

2017-05-17 Thread T Lee Davidson
Hello Tyrone, There is no forum. It is just a mailing list. You use it by posting a message to the mailing list address: gambas-user@lists.sourceforge.net And, you can see previous messages sent to the list by visiting: https://sourceforge.net/p/gambas/mailman/gambas-user/ On 05/16/2017

Re: [Gambas-user] Best way to upgrade Gambas

2017-05-13 Thread T Lee Davidson
OpenSuse is not much different from any other RPM-based distribution. On OpenSuse Leap 42, I rely on the Packman repo to keep my Gambas package up to date. I do not compile from source. Uninstalling the packaged version should not remove the necessary libraries unless you specifically instruct

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

2017-05-10 Thread T Lee Davidson
On 05/08/2017 12:13 PM, alexchernoff wrote: > Dear all, > > I am receiving data over a serial port which is sent by a byte[].write > function (an array of bytes) > > I get the SerialPort1_read() event raised where I try to read data, RxBuffer > is a string var > > *Try Read #SerialPort1,

Re: [Gambas-user] HttpClient not exposing redirect response codes

2017-04-28 Thread T Lee Davidson
On 04/27/2017 03:01 AM, Benoît Minisini wrote: > Le 25/04/2017 à 19:12, T Lee Davidson a écrit : >> I have run into a couple of sites that are responding with 301 (Moved >> Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code >> yields "0"

Re: [Gambas-user] HttpClient not exposing redirect response codes

2017-04-28 Thread T Lee Davidson
On 04/27/2017 03:01 AM, Benoît Minisini wrote: > Le 25/04/2017 à 19:12, T Lee Davidson a écrit : >> I have run into a couple of sites that are responding with 301 (Moved >> Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code >> yields "0"

Re: [Gambas-user] HttpClient not exposing redirect response codes

2017-04-25 Thread T Lee Davidson
On 04/25/2017 01:36 PM, Benoît Minisini wrote: > Le 25/04/2017 à 19:12, T Lee Davidson a écrit : >> I have run into a couple of sites that are responding with 301 (Moved >> Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code >> yields "0"

[Gambas-user] HttpClient not exposing redirect response codes

2017-04-25 Thread T Lee Davidson
I have run into a couple of sites that are responding with 301 (Moved Permanently) and 302 (Moved Temporarily) codes. However, HttpClient.Code yields "0" for both of those sites/codes (and HttpClient.Reason is empty). 200 & 404 codes are reported successfully. Have I missed something in the

Re: [Gambas-user] Problem with lazy regexp

2017-04-24 Thread T Lee Davidson
On 04/24/2017 04:25 AM, Tobias Boege wrote: > You can still get greedy quantifiers by using ungreedy ones in your > pattern... LOL. To get ungreedy behavior, use greedy quantifiers. That's logical. Thank you very much, Tobi, for digging that up and updating the documentation. Perhaps, though,

[Gambas-user] Problem with lazy regexp

2017-04-23 Thread T Lee Davidson
According to http://gambaswiki.org/wiki/doc/pcre , using "*?" in a regular expression should lazily match 0 or more characters. However, it appears to act greedily. I am trying to do some very simple HTML tag stripping with 'Regex.Replace(sText, "<.*?>", "")', and it takes out way more than

Re: [Gambas-user] Graphics programming help

2017-04-23 Thread T Lee Davidson
On 04/23/2017 03:59 PM, Leon Davis wrote: > > 1. How do I have my program register itself with the OS? That depends on the Desktop Environment you use. Here is a link for KDE: http://gambaswiki.org/wiki/howto/autorun > 2. I want to create transitions between images i.e., fades, wipes, blinds >

Re: [Gambas-user] How to dynamically add & populate variable number of tabs at runtime?

2017-04-19 Thread T Lee Davidson
Thank you, Matti. That got me started. I now have a working test model that will create a variable (unknown at design-time) number of tabs and populate each of them with a _visible_ GridView. It works great. The form now has a ValueBox to input the number of tabs to create, an AddTabs button,

[Gambas-user] How to dynamically add & populate variable number of tabs at runtime?

2017-04-18 Thread T Lee Davidson
Hello Folks, I have been trying to figure out how to, at runtime, create a variable number of new tabs in a TabStrip, populate those tabs with Controls, and then be able to reference those controls, all dynamically. There seems to be little information available as to how to 1) dynamically

Re: [Gambas-user] Fwd: confirm 0bca3e2cd2fe186cd8c172cee9ce1858aec6ce7a

2017-01-03 Thread T Lee Davidson
Interesting. I got one too. Server hiccup? On 01/03/2017 01:28 PM, Jussi Lahtinen wrote: > Any clue why I got this? > > > Jussi > > > -- Forwarded message -- > From: > Date: Tue, Jan 3, 2017 at 5:53 PM > Subject: confirm

Re: [Gambas-user] DBusSignal Error (Send)

2016-11-14 Thread T Lee Davidson
On 11/14/2016 12:00 PM, Hans Lehmann wrote: > Hello, > > in my project 'signaltx2' I get after this source line: > > DBus[DBus.Name].Raise(NameVersion, "GetGBVersion", ["3.9.1"]) > > the following error message: > > Couldn't allocate D-Bus message ! > > Where is the error in the source code? Can

Re: [Gambas-user] Incomplete gambas 3.9 install

2016-10-13 Thread T Lee Davidson
Whatever distribution you are using may likely did not automatically install ALL of the Gambas components. For this particular project, you will probably need to also install the gambas3-gb-desktop and gambas3-gb-media (however they are named in your distro) components. On 10/13/2016 06:05

Re: [Gambas-user] to all SuSE users

2016-09-20 Thread T Lee Davidson
For Leap 42.1, kdesu is in the standard repository and kdesudo is not. However, kdesudo is available via a non-standard repository. On 09/20/2016 04:53 PM, Karl Reinl wrote: > Salut, > > tests on a freshly updated SuSE, to check Desktop.RunAsRoot from > gb.desktop shows that SuSE has no

Re: [Gambas-user] CDocumentation.ImplementAndNeed.1138

2016-06-26 Thread T Lee Davidson
On 06/26/2016 07:24 AM, Jesus Guardon wrote: > Hi, Lewis > > As this is a threaded list, please, don't hijack the previous thread by > hitting 'Reply' while still reading a thread. That's the case with my > thread 'About Gambas Farm' because your post appear as a reply to it, > but having changed

Re: [Gambas-user] method $load , any wiki for explain it ?

2016-06-05 Thread T Lee Davidson
() << (what I mean) > >With Me > .MoveScaled(0,0,64,64) >End With > > End > [snip] > > On Sun, Jun 5, 2016 at 11:00 PM, T Lee Davidson <t.lee.david...@gmail.com> > wrote: > >> On 06/05/2016 06:10 AM, zainudin ahmad wrote: >>

Re: [Gambas-user] method $load , any wiki for explain it ?

2016-06-05 Thread T Lee Davidson
On 06/05/2016 06:10 AM, zainudin ahmad wrote: > $load is used , there is any other method has declared and wiki for explain > it ? Is this what you are looking for? http://gambaswiki.org/wiki/comp/gb/file/load -- Lee __ "Artificial Intelligence is no match for natural stupidity."

Re: [Gambas-user] [ask] issue 926 : want to edit a record, it's change the other record

2016-05-05 Thread T Lee Davidson
Wait, duh. I forgot you don't actually need code when using the DataBrowser. I got it to run. It works as expected here. On 05/05/2016 02:25 PM, T Lee Davidson wrote: > I don't know what happened with the archive, but after extraction there is no > code in the FMain.class file

Re: [Gambas-user] [ask] issue 926 : want to edit a record, it's change the other record

2016-05-05 Thread T Lee Davidson
I don't know what happened with the archive, but after extraction there is no code in the FMain.class file. Just the default comment, "' Gambas class file", and nothing else. FMain.form is there, though, with a DataSource containing a DataBrowser. On 05/05/2016 02:07 PM, zainudin ahmad wrote:

[Gambas-user] Set timeout for Webview?

2016-05-02 Thread T Lee Davidson
I am trying to fetch a web page through a private SOCKS5 proxy using Basic Authentication with: Try hWebView.Url = sUrl If Error Then Message.Error("Error retrieving page", "OK") If the proxy is nonresponsive, the application just hangs, apparently doing nothing. Sometimes it will timeout

Re: [Gambas-user] Embedding the Linux console

2016-04-28 Thread T Lee Davidson
On 04/28/2016 11:31 AM, Jorge Carrión wrote: > Hi, > > I like to embbed a system console, like gnome-terminal or similar, in a > form. We are doing a computer control sistem in the job, and have done a > microsoft-tree-domain inteface. i like implement the feature of open a > ssh-terminal of the

Re: [Gambas-user] Setting path in Dialog

2016-04-27 Thread T Lee Davidson
I believe the tilde does not work as a shortcut for user's home directory. You should probably use: Dialog.Path = User.Home &/ "Documents/ED/NEC Antenna Files/" On 04/27/2016 08:34 PM, Ed & Clare Kelm wrote: > I have the same problem as Rolf. (2016-01-19 17:11:18) > > Setting dialog.path does

Re: [Gambas-user] String[] in Sub, what is going wrong

2016-04-27 Thread T Lee Davidson
On 04/27/2016 12:02 PM, Rolf-Werner Eilert wrote: > This is the code: > > Public Sub setFontNameList(fontliste As String[]) > Dim i As Integer > > fntexc.Clear > > For i = 0 To fontliste.count - 1 > fntexc.Add(fontliste[i]) > Next > > End > > It didn't run, so I set a Wait to the

[Gambas-user] How to set HttpClient Accept headers?

2016-04-26 Thread T Lee Davidson
I know that the ACCEPT_ENCODING client header can be set using HttpClient.Encoding per the wiki. And, I believe HttpClient.Headers are only the server response headers. Is it possible to also set the ACCEPT and ACCEPT_LANGUAGE client headers for HttpClient? -- Lee __ "Artificial

Re: [Gambas-user] Create a Form like Panel on Desktop

2016-04-19 Thread T Lee Davidson
You shouldn't need to do anything special in Gambas to accomplish that. Your window manager should be able to do that. For example, in KDE, you would click the application icon at the very top-left in the title bar, choose "More Actions" and then "Keep Above Others". I don't know about other

Re: [Gambas-user] TrayIcon question (Plasma)

2016-04-15 Thread T Lee Davidson
On 04/14/2016 02:01 PM, Benoît Minisini wrote: > Le 14/04/2016 19:46, Gianluigi a écrit : >> Excuse me Lee, >> I did not believe that I created a monster, with so few lines of code. >> Ciao >> Gianluigi >> > > What make Plasma crashes is setting the menu. I will investigate why > exactly... I

Re: [Gambas-user] TrayIcon question

2016-04-14 Thread T Lee Davidson
I cannot help you understand it, GianLuigi, because I don't understand it either. But, I can say that it didn't play nice with my KDE Plasma v5.5.5 on Qt v5.5.1. It kept repeatedly crashing Plasma in a loop until I killed it. On 04/14/2016 11:29 AM, Gianluigi wrote: I can not understand how

Re: [Gambas-user] Repository of GAMBAS programs

2016-04-10 Thread T Lee Davidson
Yes: http://gambaswiki.org/wiki/app But, some of the apps are a bit outdated. The new repository is the Gambas Farm which is accessible from within the Gambas IDE in versions, I think, greater than 3.8.X. (Someone please correct or confirm the version number.) On 04/10/2016 10:01 PM, Pino

Re: [Gambas-user] Gambas mime type

2016-04-06 Thread T Lee Davidson
"~/.local/share/applications/gbr3.desktop", was created and the mimetype database updated automatically. On 04/05/2016 09:47 PM, T Lee Davidson wrote: > On 04/05/2016 03:17 PM, Matti wrote: >> Unfortunately, I have to set up my system (openSUSE 42.1) completely new. >

Re: [Gambas-user] Gambas mime type

2016-04-05 Thread T Lee Davidson
On 04/05/2016 03:17 PM, Matti wrote: > Unfortunately, I have to set up my system (openSUSE 42.1) completely new. > I installed Gambas 3.8.4 > fromhttp://download.opensuse.org/repositories/Education/openSUSE_Leap_42.1/, > and it runs ok as it did before. > > But the packager seems to have made a

Re: [Gambas-user] How to sort a TableView?

2016-04-05 Thread T Lee Davidson
Oops. Good catch. Thank you for pointing that out. Fixed. On 04/05/2016 04:46 PM, Gianluigi wrote: > Lee look what you made a mistake: > (no TableView1 but GridView1) > ValueSorted.Sort(IIf(GridView1.Columns.Ascending, gb.Ascent, gb.Descent)) > > Ciao > Gianluigi -- Lee __

Re: [Gambas-user] How to sort a TableView?

2016-04-05 Thread T Lee Davidson
Yes, I agree since the Mode for String[].Sort is integer and GridView.Columns.Ascending is boolean. But, how about this? ValueSorted.Sort(IIf(TableView1.Columns.Ascending, gb.Ascent, gb.Descent)) On 04/05/2016 10:17 AM, Gianluigi wrote: > Hello Lee, > Milio propose this change to avoid the

Re: [Gambas-user] How to sort a TableView?

2016-03-31 Thread T Lee Davidson
That's exactly what I needed, Gianluigi. Thank you. It works well even preserving distinct rows with duplicate key values. I added a few comments to your code and added it as an example to http://gambaswiki.org/wiki/comp/gb.qt4/gridview/sorted. (I hope that's okay with you. If not, please let

Re: [Gambas-user] How to sort a TableView?

2016-03-31 Thread T Lee Davidson
Thank you, Frank. That is an interesting example. It uses an array of variant arrays as the underlying data-store similar to what I had done in the past with objects. And, they extend Object[] with a custom sort routine. Neat. On 03/31/2016 02:55 AM, Frank wrote: > Hi TLD, I found something

Re: [Gambas-user] How to sort a TableView?

2016-03-30 Thread T Lee Davidson
quot; >sMySql &= " ORDER BY surname ASC," >sMySql &= " name ASC" >sMySql &= ";" > Else >sMySql = "SELECT *" >sMySql &= " FROM customers" >sMySql &= " ORDER BY surname DESC,&quo

[Gambas-user] How to sort a TableView?

2016-03-30 Thread T Lee Davidson
The documentation for TableView shows a Sorted property which says, "Sorting the data is not done automatically. It must be done by user code." But, the page does not give any clues regarding how to accomplish that. Though, obviously, sorting should be done in the Sort event handler. In the

Re: [Gambas-user] How to register and login to the Wiki?

2016-03-24 Thread T Lee Davidson
On 03/24/2016 12:56 AM, Benoît Minisini wrote: > Le 24/03/2016 05:18, T Lee Davidson a écrit : >> On 03/16/2016 08:53 PM, T Lee Davidson wrote: >>> >>> >>> On 03/16/2016 07:58 PM, Tobias Boege wrote: >>>> On Wed, 16 Mar 2016, T Lee Davidson wrot

Re: [Gambas-user] How to register and login to the Wiki?

2016-03-23 Thread T Lee Davidson
On 03/16/2016 08:53 PM, T Lee Davidson wrote: > > > On 03/16/2016 07:58 PM, Tobias Boege wrote: >> On Wed, 16 Mar 2016, T Lee Davidson wrote: >>> >I used to be able to login to the Wiki (http://gambaswiki.org/). This was >>> >prior to it receiving its n

Re: [Gambas-user] How to register and login to the Wiki?

2016-03-19 Thread T Lee Davidson
On 03/16/2016 07:58 PM, Tobias Boege wrote: > On Wed, 16 Mar 2016, T Lee Davidson wrote: >> >I used to be able to login to the Wiki (http://gambaswiki.org/). This was >> >prior to it receiving its new face. >> > >> >Now, I cannot login apparently. W

[Gambas-user] How to register and login to the Wiki?

2016-03-19 Thread T Lee Davidson
I used to be able to login to the Wiki (http://gambaswiki.org/). This was prior to it receiving its new face. Now, I cannot login apparently. When I enter my login credentials, I see no evidence of being logged in and still see the "Login" button. There is also no recover password, nor

Re: [Gambas-user] [Gambas Bug Tracker] Bug #901: Problem with Gambas upgrade when systems upgrades from qt4 to qt5 (on Debian)

2016-03-06 Thread T Lee Davidson
On 03/06/2016 08:00 AM, T Lee Davidson wrote: > On 03/05/2016 08:43 PM, bugtrac...@gambaswiki.org wrote: >> This is done because qt4 will no longer be used in stretch (so to make sure >> the qt5 packages are used instead) >> Gambas3 (3.5.4) is packaged to use qt4. This seems

Re: [Gambas-user] [Gambas Bug Tracker] Bug #901: Problem with Gambas upgrade when systems upgrades from qt4 to qt5 (on Debian)

2016-03-06 Thread T Lee Davidson
On 03/05/2016 08:43 PM, bugtrac...@gambaswiki.org wrote: > This is done because qt4 will no longer be used in stretch (so to make sure > the qt5 packages are used instead) > Gambas3 (3.5.4) is packaged to use qt4. This seems to cause the problem with > upgrading 3.5.4 to 3.8.4 > > So, what is a

Re: [Gambas-user] Problem reading attributes from XML file

2016-02-27 Thread T Lee Davidson
Hi Markus, I created a quick command-line version with your procedures. It works fine on v3.6.2. I get a collection returned with length of one and a value of "http://exist.sourceforge.net/NS/exist;. Perhaps something has happened to your gb.xml component? On 02/27/2016 04:35 PM, Markus

Re: [Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-25 Thread T Lee Davidson
On 02/25/2016 04:29 PM, Fabien Bodard wrote: > The code below work well. It seem that the code in table view interact > after the activate event on the editor. So the workaround > is to do the selection after the event. That is what my code do > > > > ' Gambas class file > > Private hEditor As

[Gambas-user] How to automatically select all text when first entering editable TableView cell?

2016-02-24 Thread T Lee Davidson
I have a project with a TableView that has the cells of certain columns defined as editable since the content can change. The problem is when the user is editing a row and uses either ENTER or an arrow key to move to the next editable cell, any existing text in the cell gets in the way and

[Gambas-user] Solved: Incorrect: Re: 'Single instance' app cannot reuse DBus.Name

2016-02-20 Thread T Lee Davidson
On 02/20/2016 01:13 PM, T Lee Davidson wrote: > On 02/20/2016 07:32 AM, T Lee Davidson wrote: >> >> >> Problem solved! :-) >> >> > > Well I *thought* the problem was solved. Apparently I spoke to soon from > behind bleary eyes. > So here I t

Re: [Gambas-user] 'Single instance' app cannot reuse DBus.Name

2016-02-20 Thread T Lee Davidson
On 02/20/2016 07:32 AM, T Lee Davidson wrote: > > > Problem solved! :-) > > > Well I *thought* the problem was solved. Apparently I spoke to soon from behind bleary eyes. Lee __ "Artificial Intelligence is no matc

[Gambas-user] 'Single instance' app cannot reuse DBus.Name

2016-02-20 Thread T Lee Davidson
A single instance application is one in which only one instance is allowed to be running at the same time. Checking for an existing instance is quite regularly done simply with some sort of lock file or socket. If a lock is found, then just quit the app. But suppose you want to pass the

[Gambas-user] DBus.IsRegistered --> Unknown symbol

2016-02-20 Thread T Lee Davidson
I am developing an application that conditionally registers an object on the DBus session bus. I have to use the Form_Close event to, if it was registered, unregister the object or the form will close but the application will not stop. Based on

Re: [Gambas-user] Sharing libraries across projects

2016-01-25 Thread T Lee Davidson
On 01/25/2016 07:31 PM, Benoît Minisini wrote: > 4) When creating a package of a library, the library executable will be > installed in '/usr/lib/gambas3/' ('/usr/lib/gambas3' is for > components). Maybe '/usr/share/gambas3/lib/' should be better, > to mimic 2). After all, Gambas libraries are not

Re: [Gambas-user] smtp does codified the attachment but does not show in mail reader

2016-01-15 Thread T Lee Davidson
On 01/15/2016 08:35 AM, PICCORO McKAY Lenz wrote: > i tested and see that the documentation said someting about > SmtpClient.alternative option.. > > what does mean with: "are actually different alternatives of the same > data"?? I think that means different *formats* of the same data. For

Re: [Gambas-user] why this code not working

2015-07-14 Thread T Lee Davidson
On 07/14/2015 12:31 PM, tsukuba GIMP user wrote: Public Sub PictureBox1_MouseDown() Dim dicer As Integer Dim dbclick As Integer dicer = Int(Rnd(1, 5)) dbclick = +1 ---Problem code If dbclick = 8 Then --- i click 8 time but it's don't run this

Re: [Gambas-user] : : why this code not working

2015-07-14 Thread T Lee Davidson
On 07/14/2015 03:14 PM, tsukuba GIMP user wrote: No i make a mistay Mistakes not $dbclick += 1 still not working is I think it may actually be working. You just cannot see that it is, because the code after the just_keep_moveing label is resetting the value of TextBox1.text. After performing

Re: [Gambas-user] : why this code not working

2015-07-14 Thread T Lee Davidson
On 07/14/2015 02:37 PM, tsukuba GIMP user wrote: i added the private var and in print number is working but when number is 8 it's still forget the if $dbclick = 8 then '$ is private var What is the content of your function's code now? Lee __

Re: [Gambas-user] Question on preserving Windows EOL

2015-05-17 Thread T Lee Davidson
On 05/17/2015 10:18 AM, Willy@develop wrote: Hi All, I've been struggling with something I would like to implement. A user asked me if it would be possible to preserve Windows EOL (CRLF) for files originating from Windows, but opened and modified in gbEdit (Gambas written texteditor).

Re: [Gambas-user] Create Login Session

2015-02-27 Thread T Lee Davidson
Not sure exactly what you are trying to do, but attached is an example submitted by a mail list user a while ago. A cursory search of the list archive (http://sourceforge.net/p/gambas/mailman/gambas-user/) did not turn up what I could determine as the relevant thread. And, I don't recall who

Re: [Gambas-user] A couple of questions about building web / cgi applications

2015-02-13 Thread T Lee Davidson
Bruce, Named pipes do indeed require a node on the file system. You might need to look into shared memory; or maybe DBUS might suit your needs. Lee __ Artificial Intelligence is no match for natural stupidity. On 02/13/2015 03:35 PM, Bruce Cunningham wrote: I was considering

Re: [Gambas-user] pls remove my email address from your list

2015-02-10 Thread T Lee Davidson
Just go to the list address that is at the bottom of every mail sent from the list, use the Unsubscribe button and remove yourself. https://lists.sourceforge.net/lists/listinfo/gambas-user Lee __ Artificial Intelligence is no match for natural stupidity. On 02/10/2015 10:05 PM,

Re: [Gambas-user] Feature Request

2015-02-06 Thread T Lee Davidson
Hey Ian, Unless I'm missing something, you're talking about an Inline IF. And, there already is one. http://gambaswiki.org/wiki/lang/iif Print IIf(True, Yes, No) ' - Yes Print IIf(False, Yes, No) ' - No Lee __ On 02/06/2015 08:51 PM, Ian wrote: Would it be possible to have a Gambas

Re: [Gambas-user] DEB packager

2015-02-03 Thread T Lee Davidson
The environment variable for the user's home folder is not $home, but $HOME. Maybe also try ~/.myprogram. Lee __ Artificial Intelligence is no match for natural stupidity. On 02/03/2015 07:30 PM, martin p cristia wrote: In the 8th tab of the Make Installation package, you can add

Re: [Gambas-user] Embed a specific SQLite version

2015-02-01 Thread T Lee Davidson
Hi Christian, To use SQLite 3.8.3, you'll probably just need to install it on your system; either by compiling and installing, or by building a .deb package to install. I don't use any flavor of Ubuntu, so I can't help with that. Nor can I help with your deployment question. Lee __

Re: [Gambas-user] How to include a .so library in the .deb package?

2015-01-31 Thread T Lee Davidson
I haven't actually done this, so I hope someone will correct me if I am wrong. But, I believe you would list your .so file in the Extra Files (step #8) section of the Make installation package process. Lee __ Artificial Intelligence is no match for natural stupidity. On 01/31/2015

Re: [Gambas-user] Explictly sized array parameters in method signatures?

2015-01-27 Thread T Lee Davidson
This may be over-simplified, but couldn't you define a DateRange structure? Or would that not provide the constraints you need? Lee __ Artificial Intelligence is no match for natural stupidity. On 01/27/2015 08:02 PM, adamn...@gmail.com wrote: Hmm, I've never tried this before.

Re: [Gambas-user] Data Base Example

2015-01-26 Thread T Lee Davidson
Good work, Lewis. Lee __ Artificial Intelligence is no match for natural stupidity. On 01/26/2015 09:28 AM, Lewis Balentine wrote: Following a thread from last week regarding refreshing DataControl I have developed a small GUI project to demonstrate the use of DataSource and

Re: [Gambas-user] Software Farm, Unable to get password.

2015-01-25 Thread T Lee Davidson
Could be a problem with the keyring on your desktop. On KDE, the default keyring is 'kwallet'. Not sure what it would be on Linux Mint 17 with Mate. Perhaps 'mate-keyring', or, more likely, 'gnome-keyring'. If you have it disabled or it is having issues, Gambas would/could have difficulty

Re: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a

2015-01-20 Thread T Lee Davidson
Martin, I must apologize for slightly misleading you. The .Update method is the more appropriate one to use to reload the data in the event of a canceled edit. The .Update method can be applied to the DataSource and it will update all bound children. And, yes, logically, if you create a record

Re: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a

2015-01-20 Thread T Lee Davidson
. DataSource.Cancel: Cancel any current edition of child controls. Simple sample attached. Lee __ Artificial Intelligence is no match for natural stupidity. On 01/20/2015 01:55 PM, T Lee Davidson wrote: Martin, I must apologize for slightly misleading you. The .Update method is the more

Re: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols

2015-01-20 Thread T Lee Davidson
' or DataControl.Modified' properties to true. The operation was the same in version 3.6.2 and 3.6.9. Then again maybe I am doing something(s) wrong :-\ Regards, Lewis Balentine On 01/19/2015 07:42 PM, T Lee Davidson wrote: Hello Martin, If you are working with only one record at a time, you don't

  1   2   3   >