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:
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
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
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
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
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
___
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
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
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
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
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
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
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
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
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."
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
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
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
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
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
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
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
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
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=
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
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
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
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
28 matches
Mail list logo