gambas-user Mailing List for Gambas (Page 6)
Brought to you by:
gambas
This list is closed, nobody may subscribe to it.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(24) |
Aug
(23) |
Sep
(15) |
Oct
(6) |
Nov
(52) |
Dec
(48) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(169) |
Feb
(110) |
Mar
(90) |
Apr
(123) |
May
(254) |
Jun
(243) |
Jul
(190) |
Aug
(339) |
Sep
(142) |
Oct
(72) |
Nov
(300) |
Dec
(142) |
| 2004 |
Jan
(285) |
Feb
(548) |
Mar
(442) |
Apr
(424) |
May
(338) |
Jun
(324) |
Jul
(393) |
Aug
(442) |
Sep
(460) |
Oct
(249) |
Nov
(285) |
Dec
(370) |
| 2005 |
Jan
(520) |
Feb
(316) |
Mar
(524) |
Apr
(228) |
May
(217) |
Jun
(355) |
Jul
(300) |
Aug
(331) |
Sep
(264) |
Oct
(252) |
Nov
(264) |
Dec
(297) |
| 2006 |
Jan
(430) |
Feb
(288) |
Mar
(436) |
Apr
(248) |
May
(270) |
Jun
(188) |
Jul
(369) |
Aug
(574) |
Sep
(267) |
Oct
(353) |
Nov
(171) |
Dec
(127) |
| 2007 |
Jan
(144) |
Feb
(103) |
Mar
(172) |
Apr
(244) |
May
(299) |
Jun
(145) |
Jul
(237) |
Aug
(269) |
Sep
(232) |
Oct
(341) |
Nov
(314) |
Dec
(264) |
| 2008 |
Jan
(767) |
Feb
(369) |
Mar
(678) |
Apr
(403) |
May
(379) |
Jun
(334) |
Jul
(301) |
Aug
(258) |
Sep
(476) |
Oct
(345) |
Nov
(412) |
Dec
(381) |
| 2009 |
Jan
(365) |
Feb
(327) |
Mar
(331) |
Apr
(468) |
May
(389) |
Jun
(376) |
Jul
(441) |
Aug
(719) |
Sep
(456) |
Oct
(410) |
Nov
(621) |
Dec
(509) |
| 2010 |
Jan
(552) |
Feb
(306) |
Mar
(336) |
Apr
(389) |
May
(273) |
Jun
(172) |
Jul
(181) |
Aug
(225) |
Sep
(490) |
Oct
(219) |
Nov
(468) |
Dec
(470) |
| 2011 |
Jan
(513) |
Feb
(306) |
Mar
(404) |
Apr
(437) |
May
(357) |
Jun
(364) |
Jul
(350) |
Aug
(440) |
Sep
(466) |
Oct
(352) |
Nov
(284) |
Dec
(339) |
| 2012 |
Jan
(558) |
Feb
(406) |
Mar
(477) |
Apr
(488) |
May
(525) |
Jun
(457) |
Jul
(602) |
Aug
(722) |
Sep
(471) |
Oct
(502) |
Nov
(484) |
Dec
(338) |
| 2013 |
Jan
(286) |
Feb
(346) |
Mar
(222) |
Apr
(275) |
May
(277) |
Jun
(172) |
Jul
(325) |
Aug
(373) |
Sep
(295) |
Oct
(531) |
Nov
(437) |
Dec
(455) |
| 2014 |
Jan
(496) |
Feb
(383) |
Mar
(198) |
Apr
(213) |
May
(443) |
Jun
(417) |
Jul
(416) |
Aug
(226) |
Sep
(509) |
Oct
(476) |
Nov
(469) |
Dec
(412) |
| 2015 |
Jan
(465) |
Feb
(309) |
Mar
(430) |
Apr
(176) |
May
(224) |
Jun
(291) |
Jul
(224) |
Aug
(412) |
Sep
(1038) |
Oct
(621) |
Nov
(302) |
Dec
(526) |
| 2016 |
Jan
(196) |
Feb
(226) |
Mar
(238) |
Apr
(272) |
May
(309) |
Jun
(202) |
Jul
(210) |
Aug
(306) |
Sep
(272) |
Oct
(243) |
Nov
(232) |
Dec
(167) |
| 2017 |
Jan
(247) |
Feb
(185) |
Mar
(166) |
Apr
(127) |
May
(385) |
Jun
(356) |
Jul
(340) |
Aug
(485) |
Sep
(484) |
Oct
(85) |
Nov
(13) |
Dec
(13) |
| 2018 |
Jan
(16) |
Feb
(4) |
Mar
(9) |
Apr
(2) |
May
(38) |
Jun
(12) |
Jul
(17) |
Aug
|
Sep
(7) |
Oct
(11) |
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(5) |
Mar
|
Apr
(7) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
|
From: Benoît M. <g4...@gm...> - 2018-02-05 14:01:22
|
Le 05/02/2018 à 12:33, Johny Provoost a écrit : > Hallo, > > In gb.report2 I want to change the name and path when I save the file as > pdf through a variable, but I can't seem to find out how or if it's > possible. > > Can someone please show me the way? > > > Thanks, > > Johny > Please post to the new mailing-list at http://lists.gambas-basic.org. This mailing-list is now deprecated. Thanks. -- Benoît Minisini |
|
From: Johny P. <joh...@sk...> - 2018-02-05 11:33:57
|
Hallo, In gb.report2 I want to change the name and path when I save the file as pdf through a variable, but I can't seem to find out how or if it's possible. Can someone please show me the way? Thanks, Johny |
|
From: <na...@no...> - 2018-01-29 06:23:54
|
For TheCounter = 0 To 100 TheArray[TheCounter] = New Class1 <--- you need to create a new object at each element TheArray[TheCounter].I = TheCounter <---- Your error because no object at the element exists. You only created the array. -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: Phan Damily via Gambas-user <gam...@li...> To: "gam...@li..." <gam...@li...> Cc: Phan Damily <pha...@ya...> Sent: Mon, 29 Jan 2018 04:53:41 +0000 (UTC) Subject: [Gambas-user] Class array - Null Object > Hello everyone. I'm new to Gambas and new to the mailing list. I'm using v3.10.0 > on Linux.I programmed extensively with VB6 back in the day. So Gambas is pretty > straight-forward and I'm excited about switching over from Xamarin's C#. > > But I've ran into a situation with Gambas I can't resolve. I've been testing > code ideas, trying to create a working one-dimensional class array. But keep > getting "Null object" errors when trying to assign values to fields. ' Class1.class > Public I As Integer > Public S As String > ' FMain.class Public TheArray As New Class1[] > > Public Sub cmdTest_Click() > Dim TheCounter As Integer > TheArray = New Class1[] > TheArray.Resize(100) For TheCounter = 0 To 100 > TheArray[TheCounter].I = TheCounter <---- > Null object in FMain TheArray[TheCounter].S = CStr(TheCounter) > Next For TheCounter = 0 To 100 Print > TheArray[TheCounter].I, TheArray[TheCounter].S NextEnd > > I'm sure the solution is pretty simple. But I haven't been able to find an > answer or a working code example for this particular situation. Thanks for reading. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- |
|
From: Benoît M. <g4...@gm...> - 2018-01-29 06:05:51
|
Le 29/01/2018 à 05:53, Phan Damily via Gambas-user a écrit : > Hello everyone. I'm new to Gambas and new to the mailing list. I'm using v3.10.0 on Linux.I programmed extensively with VB6 back in the day. So Gambas is pretty straight-forward and I'm excited about switching over from Xamarin's C#. > > But I've ran into a situation with Gambas I can't resolve. I've been testing code ideas, trying to create a working one-dimensional class array. But keep getting "Null object" errors when trying to assign values to fields. > ' Class1.class > Public I As Integer > Public S As String > ' FMain.class Public TheArray As New Class1[] > > Public Sub cmdTest_Click() > Dim TheCounter As Integer > TheArray = New Class1[] > TheArray.Resize(100) For TheCounter = 0 To 100 > TheArray[TheCounter].I = TheCounter <---- Null object in FMain > TheArray[TheCounter].S = CStr(TheCounter) > Next > For TheCounter = 0 To 100 > Print TheArray[TheCounter].I, TheArray[TheCounter].S > NextEnd > > I'm sure the solution is pretty simple. But I haven't been able to find an answer or a working code example for this particular situation. Thanks for reading. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > Please post to the new mailing-list at http://lists.gambas-basic.org. This mailing-list is now deprecated. Thanks. -- Benoît Minisini |
|
From: Phan D. <pha...@ya...> - 2018-01-29 04:53:58
|
Hello everyone. I'm new to Gambas and new to the mailing list. I'm using v3.10.0 on Linux.I programmed extensively with VB6 back in the day. So Gambas is pretty straight-forward and I'm excited about switching over from Xamarin's C#. But I've ran into a situation with Gambas I can't resolve. I've been testing code ideas, trying to create a working one-dimensional class array. But keep getting "Null object" errors when trying to assign values to fields. ' Class1.class Public I As Integer Public S As String ' FMain.class Public TheArray As New Class1[] Public Sub cmdTest_Click() Dim TheCounter As Integer TheArray = New Class1[] TheArray.Resize(100) For TheCounter = 0 To 100 TheArray[TheCounter].I = TheCounter <---- Null object in FMain TheArray[TheCounter].S = CStr(TheCounter) Next For TheCounter = 0 To 100 Print TheArray[TheCounter].I, TheArray[TheCounter].S NextEnd I'm sure the solution is pretty simple. But I haven't been able to find an answer or a working code example for this particular situation. Thanks for reading. |
|
From: Benoît M. <g4...@gm...> - 2018-01-26 13:29:00
|
Le 26/01/2018 à 14:25, Martin Cristia a écrit : > Hi, does anyone tried to run gambas3 in it? > > https://onion.io/store/omega2p/ > Please post to the new mailing-list at http://lists.gambas-basic.org. This mailing-list is deprecated. Thanks. -- Benoît Minisini |
|
From: Martin C. <ter...@ho...> - 2018-01-26 13:25:13
|
Hi, does anyone tried to run gambas3 in it? https://onion.io/store/omega2p/ -- Saludos Ing. Martin P Cristia |
|
From: Benoît M. <g4...@gm...> - 2018-01-26 12:30:10
|
Le 26/01/2018 à 09:54, Hans Lehmann a écrit :
> 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 knew all the values of the three arguments.
>
> Cutout Introspection-XML-Document:
> --------------------------------------------------
>
> ...
> <signal name="VolumeAdded">
> <arg type="s" name="dbus_name"/>
> <arg type="s" name="id"/>
> <arg type="(ssssssbbssa{ss}sa{sv})" name="volume"/>
> </signal>
> ...
>
> Output of 'dbus-monitor' after inserting the USB stick with label '2_GB_P':
> -------------------------------------------------------------------------------------------------
>
>
> ...
> signal sender=:1.10 -> dest=(null destination) serial=173
> path=/org/gtk/Private/RemoteVolumeMonitor;
> interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeAdded
> string "org.gtk.Private.UDisks2VolumeMonitor"
> string "0x1449bd0"
> struct {
> string "0x1449bd0"
> string "2_GB_P"
> string ". GThemedIcon drive-removable-media-usb
> drive-removable-media drive-removable drive"
> string ". GThemedIcon drive-removable-media-usb-symbolic ...
> drive-symbolic drive-removable-media-usb drive-removable-media
> drive-removable drive"
> string ""
> string ""
> boolean true
> boolean true
> string "0x14af500"
> string ""
> array [
> dict entry(
> string "class"
> string "device"
> )
> dict entry(
> string "unix-device"
> string "/dev/sdd1"
> )
> dict entry(
> string "label"
> string "2_GB_P"
> )
> dict entry(
> string "uuid"
> string "38ea6e0b-a161-401d-a673-11c06cf1229e"
> )
> ]
> string "gvfs.time_detected_usec.1516884992931147"
> array [
> ]
> }
> ...
>
> With the following source code I can read the arguments 0 and 1, since
> they have simple data types. From argument 2, I can only read the values
> with simple data types.
>
> *Therefore, my question: Which way do I have to go - certainly about the
> class DBusValues, whose documentation I do not understand - in order to
> read out the values of all arguments safely and to map them to Gambas
> types?*
>
> Gambas-Code-Cutout
> ------------------
>
> Public Sub theDBusSignal_Signal(Signal As String, Arguments As Variant[])
>
> Dim vElement As Variant
> Dim i As Integer
> Dim aDBusArray As New BusValue
>
> If Signal = "VolumeAdded" Or Signal = "VolumeRemoved" Then
>
> txaResults.Insert("Number of Arguments from 'Arguments' = " &
> Arguments.Count & gb.NewLine)
> txaResults.Insert("Arguments[0] = " & Arguments[0] & gb.NewLine)
> txaResults.Insert("Arguments[1] = " & Arguments[1] & gb.NewLine)
> txaResults.Insert("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
> & gb.NewLine)
>
> For i = 0 To Arguments[2].Max
> ' txaResults.Insert("[2][" & Str(i) & "]" & " -> " &
> Arguments[2][i] & gb.NewLine)
> txaResults.Insert(TypeOf(Arguments[2][i]) & gb.NewLine)
> Next
>
> Print "Number of Arguments from 'Arguments' = "; Arguments.Count
>
> Print "Argument[0] = "; Arguments[0]
> Print "Arguments[1] = "; Arguments[1]; " | Typ = ";
> TypeOf(Arguments[1])
> Print "Arguments[2] = "; Arguments[2]; " | Typ = ";
> TypeOf(Arguments[2])
>
> For Each vElement In Arguments
> Print vElement
> Next
>
> For i = 0 To Arguments[2].Max
> Print "[2]["; i; "]"; " -> "; Arguments[2][i]
> Next
>
> Endif
>
> End
>
> Cutout Console:
> ---------------------
>
> Number of Arguments from 'Arguments' = 3
> ---------------------------------------------------------
> Argument[0] = org.gtk.Private.UDisks2VolumeMonitor
> Arguments[1] = 0x1449bd0 | Typ = 9
> Arguments[2] = (Variant[] 0x16ac228) | Typ = 16
> ---------------------------------------------------------
> org.gtk.Private.UDisks2VolumeMonitor
> 0x1449bd0
> (Variant[] 0x16ac228)
> ---------------------------------------------------------
> [2][0] -> 0x1449bd0
> [2][1] -> 2_GB_P
> [2][2] -> . GThemedIcon drive-removable-media-usb ... drive-removable drive
> [2][3] -> . GThemedIcon drive-removable-media-usb-symbolic
> ...drive-removable-media-usb
> [2][4] ->
> [2][5] ->
> [2][6] -> True
> [2][7] -> True
> [2][8] ->
> [2][9] ->
> [2][10] -> (Collection 0x16ac048)
> [2][11] -> gvfs.time_detected_usec.1516884992931147
> [2][12] -> (Collection 0x16ac188)
>
> With kind regards
>
> Hans
>
> ------------------------------------------------------------------------------
>
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gam...@li...
> https://lists.sourceforge.net/lists/listinfo/gambas-user
Please post to the new mailing-list at http://lists.gambas-basic.org.
This mailing-list is deprecated.
Thanks.
--
Benoît Minisini
|
|
From: Hans L. <ha...@ga...> - 2018-01-26 09:16:49
|
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 knew all the values of the three arguments.
Cutout Introspection-XML-Document:
--------------------------------------------------
...
<signal name="VolumeAdded">
<arg type="s" name="dbus_name"/>
<arg type="s" name="id"/>
<arg type="(ssssssbbssa{ss}sa{sv})" name="volume"/>
</signal>
...
Output of 'dbus-monitor' after inserting the USB stick with label '2_GB_P':
-------------------------------------------------------------------------------------------------
...
signal sender=:1.10 -> dest=(null destination) serial=173
path=/org/gtk/Private/RemoteVolumeMonitor;
interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeAdded
string "org.gtk.Private.UDisks2VolumeMonitor"
string "0x1449bd0"
struct {
string "0x1449bd0"
string "2_GB_P"
string ". GThemedIcon drive-removable-media-usb
drive-removable-media drive-removable drive"
string ". GThemedIcon drive-removable-media-usb-symbolic ...
drive-symbolic drive-removable-media-usb drive-removable-media
drive-removable drive"
string ""
string ""
boolean true
boolean true
string "0x14af500"
string ""
array [
dict entry(
string "class"
string "device"
)
dict entry(
string "unix-device"
string "/dev/sdd1"
)
dict entry(
string "label"
string "2_GB_P"
)
dict entry(
string "uuid"
string "38ea6e0b-a161-401d-a673-11c06cf1229e"
)
]
string "gvfs.time_detected_usec.1516884992931147"
array [
]
}
...
With the following source code I can read the arguments 0 and 1, since
they have simple data types. From argument 2, I can only read the values
with simple data types.
*Therefore, my question: Which way do I have to go - certainly about the
class DBusValues, whose documentation I do not understand - in order to
read out the values of all arguments safely and to map them to Gambas
types?*
Gambas-Code-Cutout
------------------
Public Sub theDBusSignal_Signal(Signal As String, Arguments As Variant[])
Dim vElement As Variant
Dim i As Integer
Dim aDBusArray As New BusValue
If Signal = "VolumeAdded" Or Signal = "VolumeRemoved" Then
txaResults.Insert("Number of Arguments from 'Arguments' = " &
Arguments.Count & gb.NewLine)
txaResults.Insert("Arguments[0] = " & Arguments[0] & gb.NewLine)
txaResults.Insert("Arguments[1] = " & Arguments[1] & gb.NewLine)
txaResults.Insert("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
& gb.NewLine)
For i = 0 To Arguments[2].Max
' txaResults.Insert("[2][" & Str(i) & "]" & " -> " &
Arguments[2][i] & gb.NewLine)
txaResults.Insert(TypeOf(Arguments[2][i]) & gb.NewLine)
Next
Print "Number of Arguments from 'Arguments' = "; Arguments.Count
Print "Argument[0] = "; Arguments[0]
Print "Arguments[1] = "; Arguments[1]; " | Typ = ";
TypeOf(Arguments[1])
Print "Arguments[2] = "; Arguments[2]; " | Typ = ";
TypeOf(Arguments[2])
For Each vElement In Arguments
Print vElement
Next
For i = 0 To Arguments[2].Max
Print "[2]["; i; "]"; " -> "; Arguments[2][i]
Next
Endif
End
Cutout Console:
---------------------
Number of Arguments from 'Arguments' = 3
---------------------------------------------------------
Argument[0] = org.gtk.Private.UDisks2VolumeMonitor
Arguments[1] = 0x1449bd0 | Typ = 9
Arguments[2] = (Variant[] 0x16ac228) | Typ = 16
---------------------------------------------------------
org.gtk.Private.UDisks2VolumeMonitor
0x1449bd0
(Variant[] 0x16ac228)
---------------------------------------------------------
[2][0] -> 0x1449bd0
[2][1] -> 2_GB_P
[2][2] -> . GThemedIcon drive-removable-media-usb ... drive-removable drive
[2][3] -> . GThemedIcon drive-removable-media-usb-symbolic
...drive-removable-media-usb
[2][4] ->
[2][5] ->
[2][6] -> True
[2][7] -> True
[2][8] ->
[2][9] ->
[2][10] -> (Collection 0x16ac048)
[2][11] -> gvfs.time_detected_usec.1516884992931147
[2][12] -> (Collection 0x16ac188)
With kind regards
Hans
|
|
From: Benoît M. <g4...@gm...> - 2018-01-25 13:45:43
|
Le 25/01/2018 à 13:22, Mayost Sharon a écrit : > Hello > > gambas: 3.10.0 > > > Hello > > Is there a possibility to cancel EVENT of a control > I need this for the controls of WebForm > > In my example I do it > But it's complicated > I want not to run the WebTextBox1 event when I press WebButton1 > > If there was such a possibility > WebTextBox.IgnoreEvent = True > This will cause a WebTextBox > events disable > > or should give an event filter > WebTextBox.IgnoreEvent = "Change;Clear" > Only Disable Events "Change" and "Clear" > > > Thanks > > ' Gambas class file > > Export > Private ignore_event As Boolean > > Public Sub WebTextBox1_Change() > If ignore_event = False Then > WebLabel1.Text = WebTextBox1.Text > Endif > End > > Public Sub WebButton1_Click() > ignore_event = True > WebTextBox1.Text = "sharon" > ignore_event = False > End > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > Please post to the new mailing-list at http://lists.gambas-basic.org. This mailing-list is deprecated. Thanks. -- Benoît Minisini |
|
From: Mayost S. <sh...@45...> - 2018-01-25 12:22:59
|
Hello
gambas: 3.10.0
Hello
Is there a possibility to cancel EVENT of a control
I need this for the controls of WebForm
In my example I do it
But it's complicated
I want not to run the WebTextBox1 event when I press WebButton1
If there was such a possibility
WebTextBox.IgnoreEvent = True
This will cause a WebTextBox
events disable
or should give an event filter
WebTextBox.IgnoreEvent = "Change;Clear"
Only Disable Events "Change" and "Clear"
Thanks
' Gambas class file
Export
Private ignore_event As Boolean
Public Sub WebTextBox1_Change()
If ignore_event = False Then
WebLabel1.Text = WebTextBox1.Text
Endif
End
Public Sub WebButton1_Click()
ignore_event = True
WebTextBox1.Text = "sharon"
ignore_event = False
End
|
|
From: Mayost S. <sh...@45...> - 2018-01-18 18:14:45
|
Hello gambas: 3.10.0 I want to compile my WebForm And I want to run it with an "HTTPD server" NOT with "gambas embedded HTTP" The reason is that when I run with an "gambas embedded HTTP" If there are "Multiple clients" When a client first clicks a button and it enters the event and executes "SLEEP 30" It stops the all clients For example, if the WebForm displays a "CLOCK" It stops everybody's clients Is there a solution to this problem Export Public Sub WebTimer1_Timer() WebLabel1.Text = Now() End Public Sub WebButton2_Click() Sleep 20 End |
|
From: Benoît M. <g4...@gm...> - 2018-01-18 10:50:01
|
Le 18/01/2018 à 11:22, מיוסט שרון a écrit : > Hello > > gambas: 3.10.0 > > If within the event WebTimer1_Timer() > WebTimer1.Stop Or WebTimer1.Enable = False > > It stops the WebTimer1 > > But when i do again which Start > > It does not work > > Export > > Public Sub WebButton1_Click() > WebTimer1.Start() > End > > Public Sub WebTimer1_Timer() > WebLabel1.Text = Now() > WebTimer1.Stop() > End > > Public Sub WebButton2_Click() > WebTimer1.Stop() > End > Please subscribe to the new mailing-list at http://lists.gambas-basic.org, and post your question again. This mailing-list is deprecated. Thanks. -- Benoît Minisini |
|
From:
<sh...@45...> - 2018-01-18 10:22:15
|
Hello gambas: 3.10.0 If within the event WebTimer1_Timer() WebTimer1.Stop Or WebTimer1.Enable = False It stops the WebTimer1 But when i do again which Start It does not work Export Public Sub WebButton1_Click() WebTimer1.Start() End Public Sub WebTimer1_Timer() WebLabel1.Text = Now() WebTimer1.Stop() End Public Sub WebButton2_Click() WebTimer1.Stop() End |
|
From: Benoît M. <g4...@gm...> - 2018-01-16 15:16:11
|
Le 16/01/2018 à 15:48, מיוסט שרון a écrit : > Hello > > gambas: 3.10.0 > > When I click Sort on one of the table columns > It entered the event WebTable_Data > How can I tell which column is pressed on it SORT > You can't directly. Clicking on a column header updates the SortColumn and SortOrder properties. SortColumn returns the column that the table must be sorted with (or -1 for no sort), and SortOrder returns gb.Ascent or gb.Descent according to the requested sort order. Then, inside the WebTable_Data event handler, you must take the SortColumn and SortOrder properties into account when returning the data. Regards, -- Benoît Minisini |
|
From:
<sh...@45...> - 2018-01-16 14:48:45
|
Hello gambas: 3.10.0 When I click Sort on one of the table columns It entered the event WebTable_Data How can I tell which column is pressed on it SORT |
|
From: Benoît M. <g4...@gm...> - 2018-01-16 10:05:16
|
Le 16/01/2018 à 10:08, מיוסט שרון a écrit :
> hello
>
> OS: Fedora 27 64BIT
> Gambas: 3.10.0
>
>
> I have WebForm1
> I put on the WebForm1 3 controls of WebButton1 WebComboBox1 WebLabel1
>
>
> When I press the WebButton1 it fills the combo box at "1" and "2"
>
> When I select from the WebComboBox1 this should put the value within the WebLabel1 value
> that I selected
>
> It does work
> But if I click again on WebComboBox1 it does not work
>
> But if I cancel the line: "WebComboBox1.Clear" It does work
>
> This is not good because it continues to add to the combo box
>
> Thank you
>
> ' Gambas class file
>
> Export
>
> Public Sub WebButton1_Click()
> WebComboBox1.Clear
> WebComboBox1.Add("1")
> WebComboBox1.Add("2")
> End
>
> Public Sub WebComboBox1_Click()
> WebLabel1.Text = WebComboBox1.Text
> End
>
Please subscribe to the new mailing-list at
http://lists.gambas-basic.org, and post your question again. This
mailing-list is deprecated.
Thanks.
--
Benoît Minisini
|
|
From:
<sh...@45...> - 2018-01-16 09:26:03
|
hello
OS: Fedora 27 64BIT
Gambas: 3.10.0
I have WebForm1
I put on the WebForm1 3 controls of WebButton1 WebComboBox1 WebLabel1
When I press the WebButton1 it fills the combo box at "1" and "2"
When I select from the WebComboBox1 this should put the value within the WebLabel1 value
that I selected
It does work
But if I click again on WebComboBox1 it does not work
But if I cancel the line: "WebComboBox1.Clear" It does work
This is not good because it continues to add to the combo box
Thank you
' Gambas class file
Export
Public Sub WebButton1_Click()
WebComboBox1.Clear
WebComboBox1.Add("1")
WebComboBox1.Add("2")
End
Public Sub WebComboBox1_Click()
WebLabel1.Text = WebComboBox1.Text
End
|
|
From: T L. D. <t.l...@gm...> - 2017-12-30 16:45:23
|
Hi Doug, I think someone may have inadvertently confused you. <us...@li...> is where you *should* have started the thread, and not on this one. This list, <gam...@li...>, is deprecated. You were correct to begin with. -- Lee On 12/30/2017 12:43 AM, Doug Hutcheson wrote: > Hi everyone. This is carried over from the thread I should not have > started at <us...@li...>, for which I apologise. |
|
From: Doug H. <owl...@gm...> - 2017-12-30 07:40:10
|
Hi everyone. I have solved it. The problem was that cutting and pasting from the wiki brought across some unwanted non-printing character(s). When I typed the assignment line in by hand, there was no syntax error. Many thanks who replied on the other thread, as I have learned something in the process. Kind regards, Doug On Sat, 2017-12-30 at 15:43 +1000, Doug Hutcheson wrote: > Hi everyone. This is carried over from the thread I should not have > started at <us...@li...>, for which I apologise. > > Many thanks for the suggestions put forward. > > I think I need to clarify a little. I am trying to establish a > connection to a PostgreSQL database. > > At http://gambaswiki.org/wiki/howto/database?ht=database-manager, > point 6, I read the following example of a query: > Dim $Query As String > $Query = “SELECT * FROM Friends WHERE Name = '” > & TBXName.Text & “'” > > However, no matter how I try, I always get a syntax error on > the assignment line. Obviously I am missing something . What I mean by > a syntax error is that the Basic IDE underlines in red everything from > the first double quote and any attempt to run the code throws "Syntax > error in MODmain module at line 26". > > I also tried with this line: > $Query = “SELECT * FROM abpa.tblParameters" > which bypasses any string conversions as above. I have tried inserting > a semicolon at the end of the statement within the double quotes. I > have tried putting the table name within single quotes. I have run out > of ideas. > > So the question really is: is there an error in the code posted on the > Wiki, or is it my use of the code which is in error? Right now, > following the code example, I still cannot connect to my database. > > Kind regards, > Doug > |
|
From: Doug H. <owl...@gm...> - 2017-12-30 05:43:51
|
Hi everyone. This is carried over from the thread I should not have started at <us...@li...>, for which I apologise. Many thanks for the suggestions put forward. I think I need to clarify a little. I am trying to establish a connection to a PostgreSQL database. At http://gambaswiki.org/wiki/howto/database?ht=database-manager, point 6, I read the following example of a query: Dim $Query As String $Query = “SELECT * FROM Friends WHERE Name = '” & TBXName.Text & “'” However, no matter how I try, I always get a syntax error on the assignment line. Obviously I am missing something . What I mean by a syntax error is that the Basic IDE underlines in red everything from the first double quote and any attempt to run the code throws "Syntax error in MODmain module at line 26". I also tried with this line: $Query = “SELECT * FROM abpa.tblParameters" which bypasses any string conversions as above. I have tried inserting a semicolon at the end of the statement within the double quotes. I have tried putting the table name within single quotes. I have run out of ideas. So the question really is: is there an error in the code posted on the Wiki, or is it my use of the code which is in error? Right now, following the code example, I still cannot connect to my database. Kind regards, Doug |
|
From: Benoît M. <g4...@gm...> - 2017-12-16 18:07:16
|
Le 16/12/2017 à 18:25, bk...@ma... a écrit : > Hi > > I have a form with a DataControl. I want to write text (comments) into the control. Unfortunately the Enter key has no effect in this control. I cannot break the line. I can onlyt get one line of text, and if long enough, it will extend out of the visible part. Also, when I type, the text does not come on the upper part of the control, but on the middle. > > Strangely, I have an other form where the DataControl works OK. > > Help is apreciated > > Greetings, > > Bjørn Please subscribe to the new mailing-list at http://lists.gambas-basic.org, and post your question again. This mailing-list is deprecated. Thanks. -- Benoît Minisini |
|
From: <bk...@ma...> - 2017-12-16 17:25:17
|
Hi I have a form with a DataControl. I want to write text (comments) into the control. Unfortunately the Enter key has no effect in this control. I cannot break the line. I can onlyt get one line of text, and if long enough, it will extend out of the visible part. Also, when I type, the text does not come on the upper part of the control, but on the middle. Strangely, I have an other form where the DataControl works OK. Help is apreciated Greetings, Bjørn |
|
From: John R. <joh...@gm...> - 2017-12-15 16:07:52
|
Thanks, Charlie. John -------- Forwarded Message -------- Subject: Re: [Gambas-user] How to specify a string constant in an Exec statement Date: Fri, 15 Dec 2017 14:42:14 +0000 From: Charlie Ogier <ch...@co...> To: John Rose <joh...@gm...> On 14/12/17 17:33, John Rose wrote: > I want to have a command containing double quotes characters in an > Exec statement: > get-iplayer ".*" --force --type=TV > > My code for the above is: > Exec ["get_iplayer", "\".*\" --force", "--type=TV] To sOutput > where sOutput is a string. > > However, this does not work. I've tried omitting the 2 lots of \" but > that doesn't help. My code used to be (which worked): > Exec ["get_iplayer", " --force", "--type=TV] To sOutput > Hi John, I downloaded get_iplayer but on testing got the details below at http://www.bbc.co.uk/bbcalba/programmes/schedules/last_week.xml. The code below is what I tried: - *Public Sub Main()** **Dim sTemp, sOutput As String** ** **sTemp = Shell$(".*")** **Exec ["get_iplayer", sTemp, "--force", "--type=TV"] To sOutput ** ** **End* Charlie Maintenance mode From April 18, 2017, the BBC is no longer able to offer XML, RDF and iCalendar (.ics) views of programme metadata from this location. Work is underway in some areas of the BBC with a view to providing a durable successor to the decommissioned data views, and when the shape of this work is known, suitable communications will be put in place to direct the wider technology community towards that successor. Until that time, it is possible to offer JSON views of many metadata aggregations from 'http://www.bbc.co.uk/programmes', but these views cannot, unfortunately, include those of TV channel and radio station schedules, or A-Z or genre and format listings for a channel or station. The remaining JSON feeds will remain in operation until May 1, 2018. To expend new development effort on maintaining the decommissioned views would significantly threaten the future existence of the BBC's responsive web offering for programme websites. This includes the responsive web views of schedules for all of the BBC’s broadcast services (listed at http://www.bbc.co.uk/programmes#services), which continue to be available. Additionally - and this won't concern all users of data views, but may need some clarity - we would like to point out that no provision of metadata feeds from the BBC constitutes an implicit or explicit licence to download rights-controlled digital media content for indefinite retention by the downloader. The Charter under which the BBC operates has, for many years, required it to commission a proportion of its content from commercial suppliers. Additionally, it engages independent performers and other contributors to certain programmes (including those produced by the BBC itself), according to commercial terms. All of the resulting agreements set limitations on the availability of the programmes online. It is not possible for the BBC to selectively ignore or to abrogate these obligations. |
|
From: Benoît M. <g4...@gm...> - 2017-12-14 22:27:06
|
Le 14/12/2017 à 23:05, Jussi Lahtinen a écrit : > OK... weird. I wonder if "announcement only" means what it sounds like. > https://sourceforge.net/p/forge/documentation/Mailing%20Lists/#making-an-announcements-only-list > > > Jussi > Mmmm... Maybe, I will look at it. -- Benoît Minisini |