[Gambas-user] Where is the mistake?

2019-04-08 Thread Hans Lehmann
Hello! Where is the mistake? Print "Time-Part:  "; Round(Frac(Now()), -8); " ▸ "; Format$(Time(Frac(Now())), "hh:nn:ss"); Format$(Time(Frac(Now())), "(t)") Print "Time-Part:  "; Round(Frac(Now()), -8); " ▸ "; Format$(Time(Now()), "hh:nn:ss"); Format$(Time(Now()), "(t)") Output: Time-Part: 

Re: [Gambas-user] open-ssl example

2018-09-27 Thread Hans Lehmann
Hi, look here: https://www.gambas-buch.de/doku.php?id=k28:k28.3:start Hans ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user

[Gambas-user] DBus - How are signal data converted to Gambas data?

2018-01-26 Thread Hans Lehmann
Hello, in a project for the Gambas book on 'D-Bus with gb.dbus' I have the problem to read the arguments of a particular signal. In the text of the XML document (Inspection) I found the number of expected arguments, their names and the signatures. Through the output of the console program, I

[Gambas-user] The classes XmlRpc and RpcType are identical?

2017-09-21 Thread Hans Lehmann
Hello, is it correct that the XmlRpc and RpcType classes of the gb.xml.rpc component have the same methods and constants? Sincerely Hans -- Check out the vibrant tech community on one of the world's most engaging tech

Re: [Gambas-user] git wiki points!

2017-09-05 Thread Hans Lehmann
Am 05.09.2017 um 15:20 schrieb Tyrone Lucero: IT'S better join effors for better results... O.K. Installation of * stable * version of Gambas -- The installation was tested for MINT 17.1 (1) Installing the git program if the program is not already

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

2017-09-02 Thread Hans Lehmann
Hello, that would be OK: gambas4all Hans -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___

Re: [Gambas-user] TerminalView1.Exec(...)

2017-09-01 Thread Hans Lehmann
Am 01.09.2017 um 15:05 schrieb Tony Morehen: If you're using a recent commit, you can use hTerminalView.Input("somecommand\n") to run it automatically or don't include "\n" and press ENTER. Hello Tony, [System] Gambas=3.10.90 5bb80e5 (master) OperatingSystem=Linux Kernel=3.19.0-32-generic

[Gambas-user] TerminalView1.Exec(...)

2017-09-01 Thread Hans Lehmann
Hello, I currently test the component gb.form.terminal with the class TerminalView. The class works as expected with TerminalView1.Exec (["bash"]) or with TerminalView1.Exec (["sudo", "apt-get", "install", "libxml2-utils"]. Is there a way for TerminalView1.Exec (["bash"]) to pass a command

Re: [Gambas-user] Switching to GitLab

2017-08-17 Thread Hans Lehmann
Hello, After the many discussions and suggestions I would have as a simple user of Gambas as a result a working description (commands and meaningful comments) how to (1) completely deletes an old Gambas version and (2) installed a new * stable * Gambas version. This would have a real

[Gambas-user] XML - Display structure

2017-08-11 Thread Hans Lehmann
Hello, I am unable to read and display the structure of the following XML file /xml.xml/: AnnaText1 PaulText2 Note: Indents for the display - for example, in a textarea - can be safely read from the Node.Depth property. The result should look like this: COMMENT

[Gambas-user] Read XML document directly ...

2017-08-08 Thread Hans Lehmann
Hello, Question: Is there any way to access the nodes in an XML document by accessing the nodes and their attributes instead of sequentially iterating over the XML document?If YES, I would like a small example, if your time allows. Best regards Hans

[Gambas-user] Difference DateDiff(...) ?

2017-08-06 Thread Hans Lehmann
Hello, Why are two different results: Public Sub Main() Dim a, b As Long a = DateDiff("01/01/1900", "01/01/1935", gb.Second) b = DateDiff("01/01/1935", "01/01/1970 ", gb.Second) Print a + b Print DateDiff("01/01/1900", "01/01/1935", gb.Second) + DateDiff("01/01/1935", "01/01/1970

[Gambas-user] UDP-Socket-Client

2017-08-04 Thread Hans Lehmann
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. Sincerely Hans

[Gambas-user] Serialization Database query result

2017-07-29 Thread Hans Lehmann
Hello. What is the possibility to serialize the result of a database query (data type result)? Every idea and approach is welcome. Sincerely Hans -- Check out the vibrant tech community on one of the world's most

Re: [Gambas-user] how to determine if array its empty

2017-07-01 Thread Hans Lehmann
Case 1: Dim myArray As String[] --> Array not exist. Case 2: Dim myArray As New String[] --> Array ist empty. Case 3: Dim myArray As New String[] --> Array is not empty! myArray.Add("Value") If Not IsNull(myArray) Then If myArray.Count = 0 Then Print "Array ist empty."

Re: [Gambas-user] how to determine if array its empty

2017-07-01 Thread Hans Lehmann
Correct? If (Not IsNull(myArray) And myArray.Count = 0) Then Print "Array is empty" Hans -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot

Re: [Gambas-user] how to determine if array its empty

2017-07-01 Thread Hans Lehmann
Hallo, my idea: Dim myArray As New String[] ' Existiert das Array und ist die Anzahl der Elemente gleich Null, dann ist das Array leer If Not IsNull(myArray) And If myArray.Count = 0 Then Print "Array is empty" Hans

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

2017-06-27 Thread Hans Lehmann
Hello, look here: 8<- Public Function RemoveMultiple(aStringListe As String[]) As String[] Dim iCount As Integer Dim iIndex As Integer Dim sElement As String iIndex = 0 ' Initialisierung NICHT

[Gambas-user] Class HtmlDocument

2017-06-05 Thread Hans Lehmann
Hello, why creates the following source text: Public Sub btnCreateHTMLDocument_Click() Dim hHtmlDocument As HtmlDocument hHtmlDocument = New HtmlDocument *hHtmlDocument.Html5 = False** * Print hHtmlDocument.ToString(True) hHtmlDocument.Save(Application.Path &/ "test.html", True) End

Re: [Gambas-user] XMLRPC-Server

2017-05-25 Thread Hans Lehmann
Hello Lee, Hi Gerhard (PICOORO), I have now installed a PHP XMLRPC server (version 3) on my local Lighttpd web server - it is just a PHP file and two necessary PHPXMLRPC libraries - and call the defined service with a Gambas XMLRPC client. It works well. Sincerely Hans

Re: [Gambas-user] XMLRPC-Server

2017-05-24 Thread Hans Lehmann
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. Thanks for the hint. The source code for the XMLRPC

[Gambas-user] XMLRPC-Server

2017-05-23 Thread Hans Lehmann
Hello, I'm currently experimenting with the gb.xml.rpc component. An XMLRPC client works well (see archive attached). Now I would like to offer on the installed Web server Lighttpd (under Mint 17.1) a webservice (XMLRPC server) and via the XMLRPC client call. The following source code for

[Gambas-user] Help Class XmlDocument

2017-04-02 Thread Hans Lehmann
Hello, I want to use the XmlDocument class for a project for our Gambas online book (www.gambas-buch.de) to write an XML file and implement this headnote from the documentation: 'This API can be used to read as well as write an XML document'. The following shall be the content of the file

Re: [Gambas-user] Monitoring DBus-Signal ?

2016-11-20 Thread Hans Lehmann
Am 19.11.2016 um 17:14 schrieb Hans Lehmann: I want to see the signal 'VolumeChanged' sent by the application 'org.gtk.Private.MTPVolumeMonitor' with the interface 'org.gtk.Private.RemoteVolumeMonitor'. The dbus-monitor program shows: signal sender=:1.10 -> dest=(null destination) serial=

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

2016-11-20 Thread Hans Lehmann
Am 18.11.2016 um 18:16 schrieb Benoît Minisini: > Thus: > > DBus[$sDBusService].Raise($hDBusObject, "GetGBVersion", ["3.9.1"]) > > is replaced by: > > DBus[$sDBusService].Raise($hDBusObject, > "org.gambas.signaltx2.nameversion.GetGBVersion", ["3.9.1"]) Hello, This change has the disadvantage

[Gambas-user] Monitoring DBus-Signal ?

2016-11-19 Thread Hans Lehmann
Hello, I want to see the signal 'VolumeChanged' sent by the application 'org.gtk.Private.MTPVolumeMonitor' with the interface 'org.gtk.Private.RemoteVolumeMonitor'. The dbus-monitor program shows: signal sender=:1.10 -> dest=(null destination) serial=319

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

2016-11-18 Thread Hans Lehmann
Am 17.11.2016 um 02:20 schrieb zainudin ahmad: Hi Hans, I hope this work for you:) (project attach) Yes, that has solved it! The new code in the attached project 'signalsend-0.1.82.tar.gz' is correct. It works fine. Hans -- Author of the german Gambas book gambas-buch.de/dw/doku.php

[Gambas-user] DBusSignal Error (Send)

2016-11-14 Thread Hans Lehmann
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 someone help? Project attached. Sincerely Hans -- Author of