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

2015-01-19 Thread T Lee Davidson
Hello Martin, If you are working with only one record at a time, you don't need to use transactions. Transactions are used when multiple records need to be modified in an all-or-none scenario, such as when a record, that is the one in a one-to-many relationship, needs to be deleted. In such a

Re: [Gambas-user] How do I directly access the child controls in a panel container.

2015-01-10 Thread T Lee Davidson
On 01/10/2015 11:08 AM, Jørn Erik Mørne wrote: Hello, One can address a control on another form with fMain.txtHello.Text. This syntax also works for other container objects. I have a form with a panel control. There are several controls within the panel. To avoid naming conflicts I want

Re: [Gambas-user] How do I directly access the child controls in a panel container.

2015-01-10 Thread T Lee Davidson
On 01/10/2015 01:37 PM, Tobias Boege wrote: On Sat, 10 Jan 2015, T Lee Davidson wrote: On 01/10/2015 11:08 AM, J?rn Erik M?rne wrote: Hello, One can address a control on another form with fMain.txtHello.Text. This syntax also works for other container objects. I have a form with a panel

Re: [Gambas-user] How do I directly access the child controls in a panel container.

2015-01-10 Thread T Lee Davidson
On 01/10/2015 03:33 PM, Tobias Boege wrote: On Sat, 10 Jan 2015, T Lee Davidson wrote: If Panel1's containing Form is FForm, then you can do FForm.Controls[TextBox1] [snip] Thanks for the elucidation, Tobi. But, I must be missing something. FForm.Controls[TextBox1] returns a Control

Re: [Gambas-user] Array.Sort

2015-01-08 Thread T Lee Davidson
The empty set of parentheses is REQUIRED when sort is used as a function to return an array without the optional mode parameter I don't know. Wouldn't it be more accurate to say that the parentheses are required to be able to use the function call as the object which it returns; as opposed to

Re: [Gambas-user] Array.Sort

2015-01-08 Thread T Lee Davidson
On 01/08/2015 07:12 PM, Benoît Minisini wrote: Le 09/01/2015 01:09, T Lee Davidson a écrit : The empty set of parentheses is REQUIRED when sort is used as a function to return an array without the optional mode parameter I don't know. Wouldn't it be more accurate to say that the parentheses

Re: [Gambas-user] Array.Sort

2015-01-07 Thread T Lee Davidson
Hi Lewis, You're forgetting, like I often do, the parentheses for the method [.Sort()]. ... XXX = TestFunction().Sort() DoPrint(XXX.Sort()) DoPrint(TestFunction().Sort()) For Each S In XXX.Sort() Print S Next Print --- For Each S In TestFunction().Sort()

Re: [Gambas-user] Cannot log in to the Wiki

2015-01-06 Thread T Lee Davidson
On 01/06/2015 01:20 PM, Benoît Minisini wrote: Le 06/01/2015 18:51, T Lee Davidson a écrit : On 01/06/2015 12:24 PM, Tobias Boege wrote: On Tue, 06 Jan 2015, T Lee Davidson wrote: Submitting the login form only clears the fields and does not log me in. Knowing that Opera sometimes has

[Gambas-user] Cannot log in to the Wiki

2015-01-06 Thread T Lee Davidson
Submitting the login form only clears the fields and does not log me in. Knowing that Opera sometimes has issues with cookies, I tried also with Firefox -- same result. An attempt to re-register shows that my login, 'tldavidson', is already in use. Have Wiki passwords been reset? -- Lee

Re: [Gambas-user] Cannot log in to the Wiki

2015-01-06 Thread T Lee Davidson
On 01/06/2015 12:24 PM, Tobias Boege wrote: On Tue, 06 Jan 2015, T Lee Davidson wrote: Submitting the login form only clears the fields and does not log me in. Knowing that Opera sometimes has issues with cookies, I tried also with Firefox -- same result. An attempt to re-register shows

Re: [Gambas-user] Connecting DataControl to DataSource

2015-01-05 Thread T Lee Davidson
I think our mails crossed in transit. Anyway... The SQL query used to obtain the Result should essentially be: SELECT * FROM DataSource.Table WHERE DataSource.Filter So, it can actually be determined by calculation, or maybe more correctly stated, by concatenation. The data control would

Re: [Gambas-user] Connecting DataControl to DataSource

2015-01-05 Thread T Lee Davidson
On 01/05/2015 04:35 PM, Lewis Balentine wrote: ' Console Window Output: [snip] - - - - - - - - - - - - - - - - - - - - - ' FMain.Form_Open.37: DataView1 Parent: FMain Lewis, This is why you are not getting the results you expect. DataView1.Parent.Name should be DataSource1. [Sorry for the

Re: [Gambas-user] Connecting DataControl to DataSource

2015-01-05 Thread T Lee Davidson
On 01/05/2015 04:35 PM, Lewis Balentine wrote: I must be missing something very basic in the use of form database controls. I can not seem to get a data control populated ... It appears to me that the data control is not linked to the DataSource. What am I missing ??? Two additional

Re: [Gambas-user] Before Delete Event

2014-12-30 Thread T Lee Davidson
On 12/30/2014 11:50 PM, Christian e Ana Luiza Britto wrote: Hi Folks, First I would like to wish to you all a Happy New Year! After that, I would like to know how to use the DataSource Before Delete event to verify if a record can be deleted or not. If not the record cannot be deleted the

Re: [Gambas-user] Gridview sort function

2014-12-29 Thread T Lee Davidson
Bill, my message asking if it helped was delivered after yours due to the mailing list issue. Glad it helped :-) Thanks to Bruce for clearing that up. Lee __ Artificial Intelligence is no match for natural stupidity. On 12/25/2014 04:04 AM, bill-lancaster wrote: Bruno and Lee, thank

Re: [Gambas-user] Gridview sort function

2014-12-28 Thread T Lee Davidson
On 12/24/2014 05:40 PM, B Bruen wrote: On Wed, 24 Dec 2014 11:57:11 -0500 T Lee Davidson t.lee.david...@gmail.com wrote: Apparently I didn't take enough time, Bill. I only tested that the text of the TextBox changed appropriately for a column_click, I did not test clicking Button1. You

Re: [Gambas-user] Gridview sort function

2014-12-24 Thread T Lee Davidson
Apparently I didn't take enough time, Bill. I only tested that the text of the TextBox changed appropriately for a column_click, I did not test clicking Button1. You are right. The value of TableView.Columns.Ascending within the Column_Click event does not agree with the value outside of the

Re: [Gambas-user] Gridview sort function

2014-12-23 Thread T Lee Davidson
A column-click changes the state of TableView.Columns.Sort. But that value appears to be one click behind which the following code shows: Public Sub TableView1_ColumnClick(Column As Integer) Print Column, TableView1.Columns.Sort End Lee __ Artificial Intelligence is no match for

Re: [Gambas-user] Gridview sort function

2014-12-23 Thread T Lee Davidson
This code: Public Sub TableView1_ColumnClick(Column As Integer) TextBox1.Text = column = Column sort = If TableView1.Columns.Sort Then TextBox1.Text = Asc Else TextBox1.Text = Desc Endif End uses the wrong property. TableView1.Columns.Sort

Re: [Gambas-user] How to compute Eastern Day

2014-12-19 Thread T Lee Davidson
When I execute that, I get Syntax error. The first argument is not a valid identifier on line Public Sub Eastern(Year As Integer) As Date. Year is a function. And did you mean Easter Day? Lee __ Artificial Intelligence is no match for natural stupidity. On 12/19/2014 08:35 AM,

Re: [Gambas-user] How to compute Eastern Day

2014-12-19 Thread T Lee Davidson
On 12/19/2014 11:47 AM, Tobias Boege wrote: On Fri, 19 Dec 2014, T Lee Davidson wrote: On 12/19/2014 08:35 AM, Beno??t Minisini wrote: Hi, Here is a little X-Mas gift, a function to compute Eastern Day: ---8 Public Sub

Re: [Gambas-user] How to compute Eastern Day

2014-12-19 Thread T Lee Davidson
On 12/19/2014 02:48 PM, Benoît Minisini wrote: Le 19/12/2014 16:57, T Lee Davidson a écrit : When I execute that, I get Syntax error. The first argument is not a valid identifier on line Public Sub Eastern(Year As Integer) As Date. Year is a function. And did you mean Easter Day? Yes

Re: [Gambas-user] Progress Bar

2014-12-17 Thread T Lee Davidson
Try: For X = 1 To 100 Step 1 ProgressBar1.Value = X / 100 ProgressBar1.Refresh Wait 0.1 Next Lee __ Artificial Intelligence is no match for natural stupidity. On 12/17/2014 03:33 PM, Christian e Ana Luiza Britto wrote: Hi I'm trying to build a form with a progress bar.

Re: [Gambas-user] DataBrowser Help Again

2014-12-15 Thread T Lee Davidson
Hello Christian, I did not have any success getting the IDE to give me any options for the Connection property. (The list was always blank.) So, I set it programmatically. With your app, on the form, make sure the DataSource control is the parent of the DataBrowser. Sample project

Re: [Gambas-user] Two Databases at the same time...

2014-12-15 Thread T Lee Davidson
Hi Christian, You really should have most of what you need to figure this out for yourself at: http://gambaswiki.org/wiki/comp/gb.db/connection http://gambaswiki.org/wiki/comp/gb.db/connection/open http://gambaswiki.org/wiki/comp/gb.db/connection/exec

Re: [Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-12-07 Thread T Lee Davidson
On 12/03/2014 04:05 PM, T Lee Davidson wrote: On 08/31/2014 07:54 AM, Willy Raets wrote: Hi all, Lee (also on this mailinglist) did some testing of an application of mine. He reported that when installing the rpm he had script errors. The application did install and had a menu entry

Re: [Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-12-03 Thread T Lee Davidson
On 08/31/2014 07:54 AM, Willy Raets wrote: Hi all, Lee (also on this mailinglist) did some testing of an application of mine. He reported that when installing the rpm he had script errors. The application did install and had a menu entry, but no icon was present for the entry. When I run the

[Gambas-user] HttpClient Example #2 ?

2014-12-03 Thread T Lee Davidson
At http://gambaswiki.org/wiki/comp/gb.net.curl/httpclient, under Example #2, in: Public Sub DownloadAsync(URL As String) sDownloadBuffer = hAsyncClient.URL = URL hAsyncClient.TimeOut = 20 hClient.Async = TRUE hAsyncClient.Get() End Should the line hClient.Async = TRUE be

[Gambas-user] String[].Extract not behaving as expected

2014-12-03 Thread T Lee Davidson
http://gambaswiki.org/wiki/comp/gb/string[]/extract says: [edited-quote] Function Extract (Start As Integer [, Length As Integer ]) As String[] If Length is negative, then Length elements counting backwards from the specified Start are removed. [/edited-quote] But this does not appear to be

Re: [Gambas-user] HttpClient Example #2 ?

2014-12-03 Thread T Lee Davidson
On 12/03/2014 07:59 PM, Benoît Minisini wrote: Le 03/12/2014 23:16, T Lee Davidson a écrit : At http://gambaswiki.org/wiki/comp/gb.net.curl/httpclient, under Example #2, in: Public Sub DownloadAsync(URL As String) sDownloadBuffer = hAsyncClient.URL = URL

Re: [Gambas-user] String[].Extract not behaving as expected

2014-12-03 Thread T Lee Davidson
On 12/03/2014 07:59 PM, Benoît Minisini wrote: Obviously, myStrings.Extract(2, -1) extracted all elements from the specified Start to the end of the array, not just one element from the specified Start. myStrings.Extract(2, -2) gives an Out of bounds error. So, I guess my question should

Re: [Gambas-user] An utility component for Gambas

2014-12-01 Thread T Lee Davidson
On 12/01/2014 08:48 AM, Benoît Minisini wrote: Hi, I'd like to create a 'gb.util' component, written in Gambas, to collect useful non-GUI programming routines that can't go directly into the interpreter because it would make it too heavy. [snip] The difficulty will be to find the best

Re: [Gambas-user] An utility component for Gambas

2014-12-01 Thread T Lee Davidson
On 12/01/2014 02:35 PM, Benoît Minisini wrote: Maybe an Oct$() function inside the interpreter. Octal is normally not needed with Gambas. Do you have any use of that? Perhaps only occasional use, but, yes. Stat.Mode returns the mode of a file as a decimal integer which is not very intuitive

Re: [Gambas-user] An utility component for Gambas

2014-12-01 Thread T Lee Davidson
On 12/01/2014 03:47 PM, Benoît Minisini wrote: Le 01/12/2014 21:37, Tobias Boege a écrit : On Mon, 01 Dec 2014, T Lee Davidson wrote: On 12/01/2014 02:35 PM, Beno??t Minisini wrote: Maybe an Oct$() function inside the interpreter. Octal is normally not needed with Gambas. Do you have any use

[Gambas-user] Cannot download OfflineHelp because Desktop.NetworkAvailable incorrectly returns False

2014-11-28 Thread T Lee Davidson
I couldn't download the offline Help and wanted to know why. I have found that NetworkAvailable_Read() in Desktop.class is relying on '/sbin' being configured in the user's path. On my system, it is not. And, so `ifconfg` and `ip` from a console both produce, command not found. It is

[Gambas-user] UTC conversion Tip for Date class doesn't work as expected

2014-11-28 Thread T Lee Davidson
http://gambaswiki.org/wiki/lang/type/date says, Dates can be converted to numbers. Then the number returned is the number of days stored internally and the fraction of day represented by the number of microseconds. And ,there is a tip box that says: [[ tip As date are internally stored in UTC,

Re: [Gambas-user] UTC conversion Tip for Date class doesn't work as expected

2014-11-28 Thread T Lee Davidson
On 11/28/2014 07:24 PM, Benoît Minisini wrote: You're right, the tip is false, i.e. it works only when System.TimeZone 0, otherwise you have a 24h error. It was written before System.TimeZone exist. So you must do that instead: UTCDate = DateAdd(LocalDate, gb.Second,

Re: [Gambas-user] UTC conversion Tip for Date class doesn't work as expected

2014-11-28 Thread T Lee Davidson
On 11/28/2014 07:33 PM, Benoît Minisini wrote: Le 29/11/2014 01:32, T Lee Davidson a écrit : On 11/28/2014 07:24 PM, Benoît Minisini wrote: You're right, the tip is false, i.e. it works only when System.TimeZone 0, otherwise you have a 24h error. It was written before System.TimeZone exist

Re: [Gambas-user] Environmental Variable

2014-11-28 Thread T Lee Davidson
On 11/28/2014 11:40 PM, Lewis Balentine wrote: Is there a way to read an Environmental Variable other than: Dim HomeEnvStr as String Shell echo $HOME to HomeEnvStr thank you, Lewis Yep. Application.Env (gb) -- Lee __ Artificial Intelligence is no match for natural stupidity.

Re: [Gambas-user] Environmental Variable

2014-11-28 Thread T Lee Davidson
On 11/28/2014 11:50 PM, T Lee Davidson wrote: On 11/28/2014 11:40 PM, Lewis Balentine wrote: Is there a way to read an Environmental Variable other than: Dim HomeEnvStr as String Shell echo $HOME to HomeEnvStr thank you, Lewis Yep. Application.Env (gb) I almost forgot. For $HOME, you

Re: [Gambas-user] Conversion of array value to integer

2014-11-28 Thread T Lee Davidson
On 11/29/2014 12:08 AM, Ian wrote: If you have an array value that is a number - TmpAry[0] = 1 If you try to convert it to an integer with CInt you get an error Not a Function CInt(TmpAry[0]) You get the same error with Val(TmpAry[0]) You DON’T get the same error for CFloat(TmpAry[0]) ?

Re: [Gambas-user] Events not firing in dynamically instantiated forms.

2014-11-27 Thread T Lee Davidson
On 11/27/2014 08:39 AM, Benoît Minisini wrote: Le 27/11/2014 14:29, Stephen a écrit : I'm not consciously overriding the event observer so I'm not clear how to not do it. Obviously I still have much to learn. mhForm1 = New Form1(TabStrip1) As Form1

Re: [Gambas-user] Events not firing in dynamically instantiated forms.

2014-11-27 Thread T Lee Davidson
On 11/27/2014 12:55 PM, Tobias Boege wrote: On Thu, 27 Nov 2014, T Lee Davidson wrote: On 11/27/2014 08:39 AM, Beno?t Minisini wrote: Le 27/11/2014 14:29, Stephen a ?crit : I'm not consciously overriding the event observer so I'm not clear how to not do it. Obviously I still have much

Re: [Gambas-user] Events not firing in dynamically instantiated forms.

2014-11-27 Thread T Lee Davidson
Wow. That is a very good explanation. Thank you, Tobi! I did understand that a form is by default its own event observer. But I guess I did not fully understand exactly what that meant. (And, yes, I have seen code like, Public Sub Form_Open(), and always wondered why it did not say

Re: [Gambas-user] Events not firing in dynamically instantiated forms.

2014-11-27 Thread T Lee Davidson
On 11/27/2014 02:36 PM, T Lee Davidson wrote: Wow. That is a very good explanation. Thank you, Tobi! I did understand that a form is by default its own event observer. But I guess I did not fully understand exactly what that meant. (And, yes, I have seen code like, Public Sub Form_Open

[Gambas-user] Gambas Markdown Syntax - Underlining

2014-11-27 Thread T Lee Davidson
I don't see Underlining in the Gambas Markdown Syntax (http://gambaswiki.org/wiki/doc/markdown). But from looking at the code for various pages, I see that tilde, ~, is for underlining. I'd like to add Underlining to that page. But, to avoid the risk of screwing something up by experimenting

Re: [Gambas-user] Documentation: Events not firing in dynamically instantiated forms.

2014-11-27 Thread T Lee Davidson
On 11/27/2014 04:02 PM, Tobias Boege wrote: Hmm, comp/gb.qt4/form already says the entire truth -- if you know what all the words mean. All comp/gb.qt4/form says about events is: === Event management By default, a form is its own event observer. It means that all the events raised by the Form

Re: [Gambas-user] Documentation: Events not firing in dynamically instantiated forms.

2014-11-27 Thread T Lee Davidson
On 11/27/2014 06:40 PM, Tobias Boege wrote: I see your point. Are you content with what I wrote[0] into the docs? Regards, Tobi [0]http://gambaswiki.org/wiki/lang/new Yes, Tobi, that is clear enough without writing a book about it ;-) Thank you. -- Lee __ Artificial

Re: [Gambas-user] Documentation: Events not firing in dynamically instantiated forms.

2014-11-27 Thread T Lee Davidson
On 11/27/2014 06:52 PM, Benoît Minisini wrote: I have updated the 'Gambas object model' description on the wiki to clarify the special behaviour of the Form objects. http://gambaswiki.org/wiki/doc/object-model If you haven't read that document yet, I strongly suggest that you read it and

Re: [Gambas-user] Documentation: Events not firing in dynamically instantiated forms.

2014-11-27 Thread T Lee Davidson
On 11/27/2014 08:49 PM, Benoît Minisini wrote: B. 3.1. What is inherited: You must use the ME keyword to access the inherited elements from the class inside. I think I understand what that ultimately means but am not exactly sure what the class inside would be. I mean: ...from the class

Re: [Gambas-user] Gambas Software Farm in revision #6676

2014-11-26 Thread T Lee Davidson
On 11/26/2014 12:24 AM, Kevin Fishburne wrote: On 11/26/2014 12:02 AM, T Lee Davidson wrote: Hence, my suggestion that it could be used as a pseudo-marketplace by allowing publishers to make their listing private. The payment and/or transaction details, access credential delivery, and level

Re: [Gambas-user] Gambas Software Farm in revision #6676

2014-11-26 Thread T Lee Davidson
On 11/26/2014 06:22 AM, Benoît Minisini wrote: Le 26/11/2014 12:05, T Lee Davidson a écrit : Oh, I didn't realize Benoît was trying to build a business from the Farm. No, I don't. Did I say that? No, Benoît, to my knowledge you never said that. My statement was only in response to: Any

Re: [Gambas-user] Gambas Software Farm in revision #6676

2014-11-26 Thread T Lee Davidson
On 11/26/2014 09:47 AM, Fabien Bodard wrote: I like the idea of a password, one could also imagine a password dynamic key. That is to say a calculated key and unique provided by the farm at the time of payment. Yes, Fabien, that would be very handy for a marketplace. But, my idea of

Re: [Gambas-user] Problem with EXEC and GB.Desktop

2014-11-26 Thread T Lee Davidson
On 11/26/2014 07:45 AM, Lewis Balentine wrote: /' Gambas module file ' uses: ' gb ' gb.desktop ' gb.desktop.x11(automatically selected by gb.desktop) ' gb.image(automatically selected by gb.desktop) ' gb.qt4 (alternates are: gb.gtk, gb.gtk3, gb.gui) Public Sub Main() Dim S0, S1,

Re: [Gambas-user] Gambas Software Farm in revision #6676

2014-11-26 Thread T Lee Davidson
On 11/26/2014 04:05 PM, Fabien Bodard wrote: I don't want to it to be so complicated... it was just an idea. As the farm can be not only on the wiki place but on private servers too. It was an idea for extends. Okay, Fabien. I understand; and thank you. I just wanted to be clear on the fact

Re: [Gambas-user] Gambas Software Farm in revision #6676

2014-11-25 Thread T Lee Davidson
On 11/25/2014 05:20 AM, B Bruen wrote: On Mon, 24 Nov 2014 14:11:54 +0100 Benoît Minisini gam...@users.sourceforge.net wrote: - Installing is not done. I still maintain that autotools is the way to go. It is, as far as I know, distro independent and complies with the desire to make the

Re: [Gambas-user] Gambas Software Farm in revision #6676

2014-11-25 Thread T Lee Davidson
On 11/25/2014 05:25 PM, Benoît Minisini wrote: Binary packages must be made for all distributions I would ask why must binary packages be made for all distributions (IMHO a huge undertaking), but you have answered that in the paragraph below. The Gambas Farm allows to install any Gambas

Re: [Gambas-user] Gambas Software Farm in revision #6676

2014-11-25 Thread T Lee Davidson
On 11/25/2014 10:38 PM, Kevin Fishburne wrote: Since the farm (as it stands currently) is only for free software (as in GPL), users will be free to circumvent payment by downloading the application from another source, such as someone who paid and then began hosting the source code and/or

[Gambas-user] [SegFault 11] Enumerating HttpClient.Headers with For Each

2014-11-23 Thread T Lee Davidson
Okay, I've done more testing related to the noise I accidentally sent to the list yesterday. Attempting to enumerate through HttpClient.Headers with For Each causes a SegFault 11 under certain conditions. In the attached project, there is a procedure that traverses through a list of three

[Gambas-user] Submitting projects with bug reports?

2014-11-23 Thread T Lee Davidson
On 11/23/2014 01:24 PM, Benoît Minisini wrote: 3) In the future, will you modify your project to be purely command-line (no dialog, no window, no GUI used at all)? Note that if you use a GUI component, you use its event loop, not the one provided by the interpreter. That may change the

[Gambas-user] Roberto, Re: [SegFault 11] Enumerating HttpClient.Headers with For Each

2014-11-23 Thread T Lee Davidson
Roberto, I don't mind you hi-jacking my thread, but I'm sure others do as it disrupts thread integrity and makes email message management more difficult, especially for those who have alot to manage. Plus, you would likely get better response if you started your own thread. To do so, DO NOT

[Gambas-user] Desktop.Open [,Wait], what does it do?

2014-11-22 Thread T Lee Davidson
Hi, Desktop.Open is quite a handy utility. Thank you for that, Benoît. But now can anyone help me understand what Desktop.Open, with Wait=True, does? The Gambas documentation does not say, and the 'xdg-open' documentation gives no mention of it. I thought perhaps it might cause Desktop.Open

Re: [Gambas-user] Desktop.Open [,Wait], what does it do?

2014-11-22 Thread T Lee Davidson
On 11/22/2014 03:04 PM, Tobias Boege wrote: Apparently it waits for the xdg script to terminate. There is no relation to the actually launched application -- the xdg script can a priori terminate before the application window emerges, or it can terminate even after the launched application did

[Gambas-user] [CRASH REPORT] Graphical App Test -- UPDATED

2014-11-22 Thread T Lee Davidson
Hello, Damned, my program crashed Gambas! Updated HttpClient project attached. Notice the command-line printout for the second URL. -- Lee __ Artificial Intelligence is no match for natural stupidity. GraphicalAppTest-0.0.1-crash-141123-022113.tar.bz2 Description:

Re: [Gambas-user] [CRASH REPORT] Graphical App Test -- UPDATED

2014-11-22 Thread T Lee Davidson
Oops, sorry about the noise folks. I meant to send that to Benoît privately. On 11/23/2014 02:23 AM, T Lee Davidson wrote: Hello, Damned, my program crashed Gambas! Updated HttpClient project attached. Notice the command-line printout for the second URL. -- Lee __ Artificial

[Gambas-user] DnsClient not working?

2014-11-21 Thread T Lee Davidson
Greetings, Either I am doing something wrong, my network config is amiss (LAN with DNS server set to router's IP), or DnsClient is not working. Exec [host, Domain] works. But, both DnsClient.GetHostName and DnsClient.GetHostIP return null for a valid, resolvable host. Project attached. By

Re: [Gambas-user] DnsClient not working?

2014-11-21 Thread T Lee Davidson
On 11/21/2014 05:19 PM, Benoît Minisini wrote: Le 21/11/2014 23:06, T Lee Davidson a écrit : Greetings, Either I am doing something wrong, my network config is amiss (LAN with DNS server set to router's IP), or DnsClient is not working. Exec [host, Domain] works. But, both

Re: [Gambas-user] Datasource.Filter does not work

2014-11-08 Thread T Lee Davidson
On 11/08/2014 09:29 AM, Martin McGlensey wrote: Thanks, Bruce. That worked. Suggest they update the documentation to show Datasource.Filter = db.Subst(Field 1, Text) instead of Datasource.Filter = string. That may save someone else a few hours of debugging. Done.

[Gambas-user] Cannot uncheck text decorations in IDE theme preferences

2014-11-01 Thread T Lee Davidson
Hello, In trying to figure out how to change the font color of the line numbers in the IDE, I discovered what seems to be a strange behavior. In Tools-Preferences-Theme-Define (buttons), any text decoration checkboxes (bold, italic, underline) that are checked, either by default or manually,

Re: [Gambas-user] Cannot uncheck text decorations in IDE theme preferences

2014-11-01 Thread T Lee Davidson
On 11/01/2014 03:01 PM, T Lee Davidson wrote: Hello, In trying to figure out how to change the font color of the line numbers in the IDE, I discovered what seems to be a strange behavior. In Tools-Preferences-Theme-Define (buttons), any text decoration checkboxes (bold, italic, underline

Re: [Gambas-user] About SMTP component

2014-10-22 Thread T Lee Davidson
Jorge, I took your code and modified it only enough to use a form to populate the relevant data; all else remained the same. Testing it showed that the attachment was indeed sent as Content-Transfer-Encoding: quoted-printable. But, that does not appear to be a problem; at least with my

Re: [Gambas-user] Import qbasic

2014-10-21 Thread T Lee Davidson
On 10/21/2014 09:57 AM, Barry wrote: Hello I have a package written in qbasic which is run from command line and then controlled by a menu program. I would like to import programs to gambas with the intent of running using the GUI and developing extra capabilities to the package. I know I

Re: [Gambas-user] Attempted build of v3.6.0 RPM fails due to DejaVuSans.ttf require

2014-10-18 Thread T Lee Davidson
On 10/17/2014 06:18 PM, Benoît Minisini wrote: Yes. This font was used as a default font for gb.sdl. It has been replaced by a custom bitmap font integrated inside the gb.sdl sources, to remove this dependency. Regards, -- Benoît Minisini Thank you Benoît and Tobi for your help. After a

Re: [Gambas-user] Paint misbehaves on QT when a ValueBox.value is changed (v3.5.4)

2014-10-18 Thread T Lee Davidson
On 10/18/2014 04:06 PM, Benoît Minisini wrote: Well that's a little disappointing that you weren't able to replicate the issue on your system. On mine, the red line is drawn and then when it comes time for the blue line to be drawn, the red line disappears as if the DrawingArea has been

Re: [Gambas-user] Strange error message

2014-10-18 Thread T Lee Davidson
It looks as thought there might be a special character hidden somewhere in that file. You can check the file encoding to make sure it is not some bastard encoding with the command-line: `file .gtkrc-2.0:1` You can also view special characters in a text file with the VI editor. `vi

Re: [Gambas-user] Paint misbehaves on QT when a ValueBox.value is changed (v3.5.4)

2014-10-18 Thread T Lee Davidson
On 10/18/2014 06:29 PM, Benoît Minisini wrote: Yes, I need your project to test again. And remind me which version of GTK+ exactly you use. Regards, -- Benoît Minisini I have to assume this project uses gtk+2.0. I did not package gb.gtk3 in my RPM build SPEC file since I didn't think of

Re: [Gambas-user] How to update Gambas 3.5.4 to 3.6

2014-10-18 Thread T Lee Davidson
No, it will not upgrade itself automatically. You can find instructions for compilation and installation here: http://gambaswiki.org/wiki/install There is also a section there containing instructions for specific distributions. It is basically a configure-make-install process. I don't follow

[Gambas-user] Attempted build of v3.6.0 RPM fails due to DejaVuSans.ttf require

2014-10-17 Thread T Lee Davidson
I am trying to build a RPM of Gambas 3.6.0 on my Mageia 3 system, because I prefer to use package management instead of the configure-make-install process. I successfully built a v3.5.4 RPM by grabbing the Source RPM from the Mageia development repository (Cauldron). However, v3.6.0 is not yet

Re: [Gambas-user] Attempted build of v3.6.0 RPM fails due to DejaVuSans.ttf require

2014-10-17 Thread T Lee Davidson
On 10/17/2014 02:04 PM, Tobias Boege wrote: There were things done to that file. Quoting the commit logs (in excerpts): --8 Revision: 5933 [GB.SDL] * NEW: Rename the default SDL font file as _default.ttf to prevent

[Gambas-user] Update: Re: Wow, Gambas is twice as fast as (Free) Pascal

2014-10-16 Thread T Lee Davidson
I feel responsible to make a correction. After further research, I have discovered that Gambas, doing the Polynomial benchmark, is not faster than the pre-compiled Free Pascal program. I thought it might be prudent, before adding any Pascal benchmarks to the Wiki, to see if there might be some

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-12 Thread T Lee Davidson
Hey Jussi, I'd like to try figuring out why the Pascal program runs so much slower, relative to Gambas, on my system than on yours. May I ask what version of FPC you are using? On 10/11/2014 08:24 PM, Jussi Lahtinen wrote: $ time gbs3 -c -f polym.gambas [snip] real0m4.172s user

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread T Lee Davidson
I guess I should have included my system information; just didn't think about it being relevant at the time. Obviously, though, it is. System Info: Intel(R) Pentium(R) 4 CPU 2.40GHz, 1G RAM Mageia 3, Kernel 3.10.54 (KDE4) Gambas 3.5.4 Free Pascal Compiler version 2.6.4 [2014/03/07] for i386

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-11 Thread T Lee Davidson
Lee Davidson wrote: I guess I should have included my system information; just didn't think about it being relevant at the time. Obviously, though, it is. System Info: Intel(R) Pentium(R) 4 CPU 2.40GHz, 1G RAM Mageia 3, Kernel 3.10.54 (KDE4) Gambas 3.5.4 Free Pascal Compiler version 2.6.4

Re: [Gambas-user] Paint misbehaves on QT when a ValueBox.value is changed (v3.5.4)

2014-10-10 Thread T Lee Davidson
On 10/09/2014 07:32 PM, Benoît Minisini wrote: Le 10/10/2014 00:04, T Lee Davidson a écrit : If a form's ValueBox.value is modified, subsequent Paint'ing on a cached DrawingArea of the form doesn't produce the draw when the gb.qt4 component is loaded. It does work if, instead, the gb.gtk

Re: [Gambas-user] Wow, Gambas is twice as fast as (Free) Pascal

2014-10-10 Thread T Lee Davidson
On 10/10/2014 08:50 PM, Benoît Minisini wrote: Thank you for trying to explain that to me. But, now I am really confused. As far as I can tell, the Gambas program also uses floating point numbers. The only integers I see used in that program are for an iterator, an array index, and an iterator

[Gambas-user] Paint misbehaves on QT when a ValueBox.value is changed (v3.5.4)

2014-10-09 Thread T Lee Davidson
If a form's ValueBox.value is modified, subsequent Paint'ing on a cached DrawingArea of the form doesn't produce the draw when the gb.qt4 component is loaded. It does work if, instead, the gb.gtk component is manually selected in the project. Trying to set the focus back to the DrawingArea,

Re: [Gambas-user] Paint misbehaves on QT when a ValueBox.value is changed (v3.5.4)

2014-10-09 Thread T Lee Davidson
On 10/09/2014 07:32 PM, Benoît Minisini wrote: Le 10/10/2014 00:04, T Lee Davidson a écrit : If a form's ValueBox.value is modified, subsequent Paint'ing on a cached DrawingArea of the form doesn't produce the draw when the gb.qt4 component is loaded. It does work if, instead, the gb.gtk

Re: [Gambas-user] Possible bug in IDE

2014-10-08 Thread T Lee Davidson
Confirmed with v3.5.4. Except simply opening another project with File-Open_project does not clear the incorrect filters. I have to Quit and re-launch Gambas to clear them. On 10/08/2014 10:53 AM, Willy Raets wrote: Try this at home and see what goes wrong. Both 3.5.4 and 3.5.90 (rev#6521)

Re: [Gambas-user] Locating a function's source code?

2014-09-18 Thread T Lee Davidson
Thank you, Benoît, for pointing me to exactly what I was looking for this time. There are some places to remember: - /gb.*: components written in C/C++ - /comp/src/gb.*: components written in Gambas - /app/src/*: Gambas programs such as the IDE, the wiki and the scripter - /examples:

Re: [Gambas-user] Locating a function's source code?

2014-09-18 Thread T Lee Davidson
Thanks, Jussi. It does indeed work perfectly ... once one knows how to use it. In my case, I did not understand the column heading, File; in that it could also mean a directory of files (in the tree). On 09/18/2014 04:57 PM, Jussi Lahtinen wrote: The Gambas home page

Re: [Gambas-user] Locating a function's source code?

2014-09-18 Thread T Lee Davidson
I have registered an account on the Wiki and now need to get a handle on the wiki syntax, so On 09/18/2014 01:57 PM, Tobias Boege wrote: Everything you find under /lang in the documentation belongs to the language, which means that it's built into the interpreter. There are some places

Re: [Gambas-user] Building /trunk, deprecated documentation

2014-09-17 Thread T Lee Davidson
This again brings up an issue I brought up previously: that every page on the old wiki should have that same notice that is on the home page. THE WIKI IS NOW IN READ-ONLY MODE. THE NEW WIKI IS NOW HOSTED AT http://gambaswiki.org; I asked if that could be done, but I don't see it yet. And, I

Re: [Gambas-user] form grab handles

2014-09-16 Thread T Lee Davidson
Create a *new* message instead of simply replying to a message from a thread that already exists. Creating a new message will create a new thread. On 09/16/2014 08:22 PM, John Leake wrote: IDE - form design. Are the form grab handles supposed to be visible/active when a control is clicked ?

[Gambas-user] How to create a new thread

2014-09-16 Thread T Lee Davidson
You're using Thunderbird, right? In the header section of the message you should see the To field. Hovering over that should show gambas-user@lists.sourceforge.net Right click on that and choose Compose message to HTH, Lee On 09/16/2014 08:36 PM, John Leake wrote: Create a *new* message

[Gambas-user] Responding to a thread

2014-09-16 Thread T Lee Davidson
Not sure, John. In the header section, I have a Reply and a Reply List button. Using either one sends the message to the list address. There is also Reply to List in the Message menu. On 09/16/2014 08:32 PM, John Leake wrote: Responding to a thread --- When

Re: [Gambas-user] Responding to a thread

2014-09-16 Thread T Lee Davidson
statement is likely entirely correct. HTH, Lee On 17/09/14 01:54, T Lee Davidson wrote: Not sure, John. In the header section, I have a Reply and a Reply List button. Using either one sends the message to the list address. There is also Reply to List in the Message menu. On 09/16/2014 08

Re: [Gambas-user] ...And what is planned for Gambas 3.7

2014-09-15 Thread T Lee Davidson
If I recall correctly, this idea has come up before. And, I think it's a great idea. Good to hear there is official support for it with a project in planning. I think Randall's suggestion of a web front end is a good idea. That would expose the software, and Gambas itself, to a larger audience

Re: [Gambas-user] gb.db.form: Program hangs after erasing content in a DataControl and clicking into a DataBrowser

2014-09-11 Thread T Lee Davidson
I get the same behavior: application hangs (with mysqld taking about 20-40% of CPU and gbx3 taking about 7-16%). Upon relaunch of the app, the db table does indeed appear to have been updated. On 09/11/2014 01:57 PM, Tobias Boege wrote: Hi, attached is a project which shows odd behaviour.

[Gambas-user] Editing shortcut keys and valueboxes

2014-08-31 Thread T Lee Davidson
Hi, I am wondering ... is it by design that the edit shortcut keys (Ctrl-x, Ctrl-c, and Ctrl-v) do not work with ValueBoxes whereas the editing options in the right-click menu (at least for the number type) do? The other value types have copy paste issues even with the right-click menu as

Re: [Gambas-user] Bug: Mageia packages made by IDE do not install application icon in distro menu

2014-08-31 Thread T Lee Davidson
I have attached a simple application package that properly installs the icon to /usr/share/icons and also properly displays the icon in the menu entry. On a side note: This project is related to a message I just recently sent to the list about the editing shortcut keys and valueboxes. I am

<    1   2   3   >