Re: [Gambas-user] variable in WebForm not remember
Le 16/01/2017 à 01:20, מיוסט שרון a écrit : >>> hello >>> >>> I have WebForm1 >>> I put on the WebForm1 two controls of WebButton1 WebButton2 >>> I have a variable of type String named my_A >>> I would like when I press the WebButton1 the my_A = "sharon" and when I >>> click on >>> WebButton2 I want to get the value found in my_A >>> >>> >>> The problem that when I click on WebButton2 >>> The value of the variable my_A is empty "" >>> >>> It's what's inside that WebForm1.class >>> >>> ' Gambas class file >>> >>> Export >>> Private my_A As String >>> >>> Public Sub WebButton1_Click() >>> >>> my_A = "sharon" >>> >>> End >>> >>> Public Sub WebButton2_Click() >>> >>> WebButton2.Text = my_A >>> >>> End >>> >> >> Yes, this is the main difference between a "normal" application (one >> process that runs continuously) and a "webform" application (one process >> by request). >> >> With a web application, the only way to keep things persistent is using >> the Session object. >> >> With a WebForm, you can store permanent things by using it like an >> array, which use internally the Session object of course. >> >> So you can write: >> >> Export >> >> Public Sub WebButton1_Click() >> >>Me["my_A"] = "sharon" >> >> End >> >> Public Sub WebButton2_Click() >> >>WebButton2.Text = Me["my_A"] >> >> End >> >> So, never forget that your application is a web application that is not >> persistent between two events (the request is mostly the full handling >> of one event coming from the web browser. The response is the refresh of >> the web browser contents). >> >> Regards, >> >> -- >> Benoît Minisini > > > Thank you it works > > > > I have another question that code: > > ' Gambas class file > > Export > > Public Sub WebButton1_Click() > Dim hWeb As WebButton > > WebButton1.Text = "btn1_text" > WebButton1.Tag = "btn1_tag" > Me["my_A"] = WebButton1 > > hweb = Me["my_A"] > WebTextBox1.Text = hWeb.Text > WebTextBox2.Text = hWeb.Tag > End > > Public Sub WebButton2_Click() > Dim hWeb As WebButton > > hWeb = Me["my_A"] > WebTextBox1.Text = hWeb.Text > WebTextBox2.Text = hWeb.Tag > End > > > WebButton1 the event of a hWeb this is fine value of WebButton1 > But the event of WebButton2 value of hWeb get "NULL" > Not everything can be stored in the session. Especially object references (as they are valid only in the same process). You can put in a "WebForm variable" (i.e. Me[xxx]) : booleans, numbers, strings, dates, variant, arrays and collections. I hope I will be able to start writing the documentation of the gb.web.form component soon. Regards, -- Benoît Minisini -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] variable in WebForm not remember
> > hello > > > > I have WebForm1 > > I put on the WebForm1 two controls of WebButton1 WebButton2 > > I have a variable of type String named my_A > > I would like when I press the WebButton1 the my_A = "sharon" and when I > > click on > > WebButton2 I want to get the value found in my_A > > > > > > The problem that when I click on WebButton2 > > The value of the variable my_A is empty "" > > > > It's what's inside that WebForm1.class > > > > ' Gambas class file > > > > Export > > Private my_A As String > > > > Public Sub WebButton1_Click() > > > > my_A = "sharon" > > > > End > > > > Public Sub WebButton2_Click() > > > > WebButton2.Text = my_A > > > > End > > > > Yes, this is the main difference between a "normal" application (one > process that runs continuously) and a "webform" application (one process > by request). > > With a web application, the only way to keep things persistent is using > the Session object. > > With a WebForm, you can store permanent things by using it like an > array, which use internally the Session object of course. > > So you can write: > > Export > > Public Sub WebButton1_Click() > >Me["my_A"] = "sharon" > > End > > Public Sub WebButton2_Click() > >WebButton2.Text = Me["my_A"] > > End > > So, never forget that your application is a web application that is not > persistent between two events (the request is mostly the full handling > of one event coming from the web browser. The response is the refresh of > the web browser contents). > > Regards, > > -- > Benoît Minisini Thank you it works I have another question that code: ' Gambas class file Export Public Sub WebButton1_Click() Dim hWeb As WebButton WebButton1.Text = "btn1_text" WebButton1.Tag = "btn1_tag" Me["my_A"] = WebButton1 hweb = Me["my_A"] WebTextBox1.Text = hWeb.Text WebTextBox2.Text = hWeb.Tag End Public Sub WebButton2_Click() Dim hWeb As WebButton hWeb = Me["my_A"] WebTextBox1.Text = hWeb.Text WebTextBox2.Text = hWeb.Tag End WebButton1 the event of a hWeb this is fine value of WebButton1 But the event of WebButton2 value of hWeb get "NULL" -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Beware to revision #7983!
> Internal date are always stored in GMT. The confusion comes when you > transform them into a string or from a string. > This is exactly what I meant. I think it should be more clear in the documentation that output of CDate() is in GMT (same as UTC?) and input is assumed to be local date, instead of GMT. Jussi -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] variable in WebForm not remember
Le 15/01/2017 à 18:31, מיוסט שרון a écrit : > hello > > I have WebForm1 > I put on the WebForm1 two controls of WebButton1 WebButton2 > I have a variable of type String named my_A > I would like when I press the WebButton1 the my_A = "sharon" and when I click > on > WebButton2 I want to get the value found in my_A > > > The problem that when I click on WebButton2 > The value of the variable my_A is empty "" > > It's what's inside that WebForm1.class > > ' Gambas class file > > Export > Private my_A As String > > Public Sub WebButton1_Click() > > my_A = "sharon" > > End > > Public Sub WebButton2_Click() > > WebButton2.Text = my_A > > End > Yes, this is the main difference between a "normal" application (one process that runs continuously) and a "webform" application (one process by request). With a web application, the only way to keep things persistent is using the Session object. With a WebForm, you can store permanent things by using it like an array, which use internally the Session object of course. So you can write: Export Public Sub WebButton1_Click() Me["my_A"] = "sharon" End Public Sub WebButton2_Click() WebButton2.Text = Me["my_A"] End So, never forget that your application is a web application that is not persistent between two events (the request is mostly the full handling of one event coming from the web browser. The response is the refresh of the web browser contents). Regards, -- Benoît Minisini -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Beware to revision #7983!
Le 15/01/2017 à 16:58, Jussi Lahtinen a écrit : > Benoit is it possible add this timezone conversion suggestion to CDate()? > > Date = CDate ( Expression AS Variant [, InputTimeZone AS Integer, > OutputTimeZone AS Integer ] ) AS Date > > This way you could tell CDate what is the timezone you are using and in > what timezone you need the answer. I think it would decrease the confusion > and add new functionality. > > What do you think? > > > Jussi > Actually there is no confusion anymore, as this is the old behaviour that was illogical (i.e. CDate(CStr(x)) was not equal to x is some cases). Internal date are always stored in GMT. The confusion comes when you transform them into a string or from a string. The rule now is: - CStr & CDate always use GMT. - Str & Val always use the current locale timezone. But I agree with you that conversion functions with explicit time zone would be useful. Alas CDate() and CStr() cannot be modified (they must take one argument only), so another one should be created. I will think about that. -- Benoît Minisini -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] variable in WebForm not remember
hello I have WebForm1 I put on the WebForm1 two controls of WebButton1 WebButton2 I have a variable of type String named my_A I would like when I press the WebButton1 the my_A = "sharon" and when I click on WebButton2 I want to get the value found in my_A The problem that when I click on WebButton2 The value of the variable my_A is empty "" It's what's inside that WebForm1.class ' Gambas class file Export Private my_A As String Public Sub WebButton1_Click() my_A = "sharon" End Public Sub WebButton2_Click() WebButton2.Text = my_A End -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year
http://gambaswiki.org/bugtracker/edit?object=BUG.1068=L21haW4- Gianluigi GRADASCHI changed the state of the bug to: Opened. -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year
http://gambaswiki.org/bugtracker/edit?object=BUG.1068=L21haW4- Gianluigi GRADASCHI changed the state of the bug to: Rejected. -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year
http://gambaswiki.org/bugtracker/edit?object=BUG.1068=L21haW4- Gianluigi GRADASCHI changed the state of the bug to: Rejected. -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year
OK if in Trunk I write: Public Sub Main() Print CDate(Val("1/1/2017")) ' > 01/01/2017 00:00:00 End Sorry but I do not know, because the rev.7983 is earlier the 3.9.2. Regards Gianluigi 2017-01-15 16:41 GMT+01:00 Jussi Lahtinen: > Sorry, the date bug was fixed in revision 7983. So 3.9.2 still has the bug. > If your string is in local time, then convert it to date using val(). > CDate() assumes UTF and your timezone is UTF+1, thus you see the > difference. > > > Jussi > > On Sun, Jan 15, 2017 at 4:41 PM, Gianluigi wrote: > > > I forgotten: Yes with exactli same program: > > > > Public Sub Main() > > > > Print CDate("1/1/2017") > > > > End > > > > 2017-01-15 14:52 GMT+01:00 Gianluigi : > > > > > No Jussi seems all the same. > > > > > > My computer: > > > > > > LANG=it_IT.UTF-8 > > > LANGUAGE=it > > > LC_CTYPE="it_IT.UTF-8" > > > LC_NUMERIC="it_IT.UTF-8" > > > LC_TIME="it_IT.UTF-8" > > > LC_COLLATE="it_IT.UTF-8" > > > LC_MONETARY="it_IT.UTF-8" > > > LC_MESSAGES="it_IT.UTF-8" > > > LC_PAPER="it_IT.UTF-8" > > > LC_NAME="it_IT.UTF-8" > > > LC_ADDRESS="it_IT.UTF-8" > > > LC_TELEPHONE="it_IT.UTF-8" > > > LC_MEASUREMENT="it_IT.UTF-8" > > > LC_IDENTIFICATION="it_IT.UTF-8" > > > LC_ALL= > > > > > > > > > Wife computer: > > > > > > LANG=it_IT.UTF-8 > > > LANGUAGE=it > > > LC_CTYPE="it_IT.UTF-8" > > > LC_NUMERIC="it_IT.UTF-8" > > > LC_TIME="it_IT.UTF-8" > > > LC_COLLATE="it_IT.UTF-8" > > > LC_MONETARY="it_IT.UTF-8" > > > LC_MESSAGES="it_IT.UTF-8" > > > LC_PAPER="it_IT.UTF-8" > > > LC_NAME="it_IT.UTF-8" > > > LC_ADDRESS="it_IT.UTF-8" > > > LC_TELEPHONE="it_IT.UTF-8" > > > LC_MEASUREMENT="it_IT.UTF-8" > > > LC_IDENTIFICATION="it_IT.UTF-8" > > > LC_ALL= > > > > > > [System] > > > Gambas=3.9.2 > > > OperatingSystem=Linux > > > Kernel=4.4.0-59-generic > > > Architecture=x86 > > > Distribution=Ubuntu 16.04.1 LTS > > > Desktop=XFCE > > > Theme=Cleanlooks > > > Language=it_IT.UTF-8 > > > Memory=3018M > > > > > > [Libraries] > > > Cairo=libcairo.so.2.11400.6 > > > Curl=libcurl.so.4.4.0 > > > DBus=libdbus-1.so.3.14.6 > > > GStreamer=libgstreamer-1.0.so.0.802.0 > > > GTK+2=libgtk-x11-2.0.so.0.2400.30 > > > GTK+3=libgtk-3.so.0.1800.9 > > > OpenGL=libGL.so.1.2.0 > > > Poppler=libpoppler.so.58.0.0 > > > QT4=libQtCore.so.4.8.7 > > > QT5=libQt5Core.so.5.5.1 > > > SDL=libSDL-1.2.so.0.11.4 > > > SQLite=libsqlite3.so.0.8.6 > > > > > > [Environment] > > > CLUTTER_BACKEND=x11 > > > CLUTTER_IM_MODULE= > > > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dw2oWgNV16 > > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path > > > DESKTOP_SESSION=xubuntu > > > DISPLAY=:0.0 > > > GB_GUI=gb.qt4 > > > GDMSESSION=xubuntu > > > GDM_LANG=it > > > GLADE_CATALOG_PATH=: > > > GLADE_MODULE_PATH=: > > > GLADE_PIXMAP_PATH=: > > > GNOME_KEYRING_CONTROL= > > > GNOME_KEYRING_PID= > > > GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 > > > GTK_IM_MODULE= > > > GTK_OVERLAY_SCROLLING=0 > > > HOME=/home/ > > > IM_CONFIG_PHASE=1 > > > INSTANCE= > > > JOB=dbus > > > LANG=it_IT.UTF-8 > > > LANGUAGE=it > > > LOGNAME= > > > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path > > > PATH=/home//bin:/home//.local/bin:/ > > > usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: > > > /usr/games:/usr/local/games:/snap/bin > > > PWD=/home/ > > > QT4_IM_MODULE= > > > QT_ACCESSIBILITY=1 > > > QT_IM_MODULE= > > > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > > > QT_STYLE_OVERRIDE=gtk > > > SESSION=xubuntu > > > SESSIONTYPE= > > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > > > 1203,unix/:/tmp/.ICE-unix/1203 > > > SHELL=/bin/bash > > > SHLVL=0 > > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > > TZ=:/etc/localtime > > > UPSTART_EVENTS=started xsession > > > UPSTART_INSTANCE= > > > UPSTART_JOB=startxfce4 > > > UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1042 > > > USER= > > > XAUTHORITY=/home//.Xauthority > > > XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/ > > > xdg:/etc/xdg:/etc/xdg > > > XDG_CURRENT_DESKTOP=XFCE > > > XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/ > > > local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share > > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > > > XDG_MENU_PREFIX=xfce- > > > XDG_RUNTIME_DIR=/run/user/1000 > > > XDG_SEAT=seat0 > > > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > > > XDG_SESSION_DESKTOP=xubuntu > > > XDG_SESSION_ID=c1 > > > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > > > XDG_SESSION_TYPE=x11 > > > XDG_VTNR=7 > > > XMODIFIERS= > > > > > > > > > > > > Regards > > > > > > Gianluigi > > > > > > > > > 2017-01-15 0:24 GMT+01:00 Jussi Lahtinen : > > > > > >> With the exactly same program? Then maybe the computers have different > > >> localization settings. Try command "locale" on terminal to see if > there > > >> are > > >> differences. > > >> > > >> > > >> Jussi > > >> > > >> On Sat, Jan 14, 2017 at 9:28 PM, Gianluigi > wrote: > > >> > > >> >
Re: [Gambas-user] Beware to revision #7983!
Benoit is it possible add this timezone conversion suggestion to CDate()? Date = CDate ( Expression AS Variant [, InputTimeZone AS Integer, OutputTimeZone AS Integer ] ) AS Date This way you could tell CDate what is the timezone you are using and in what timezone you need the answer. I think it would decrease the confusion and add new functionality. What do you think? Jussi On Tue, Dec 20, 2016 at 2:53 AM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Le 20/12/2016 à 01:23, Jussi Lahtinen a écrit : > > Or additional requirement for the string, examples "10/01/2016 GMT" or > > "10/01/2016 Local". > > > > > > Jussi > > > > On Tue, Dec 20, 2016 at 2:16 AM, Jussi Lahtinen < > jussi.lahti...@gmail.com> > > wrote: > > > >> That is bit confusing. Would it be better if Date() function would > accept > >> one more argument "TimeZone". > >> Example: > >> > >> Date("10/01/2016", gb.GMT) > >> > >> or > >> > >> Date("10/01/2016", gb.Local) > >> > >> > >> What you think? > >> > >> > >> Jussi > >> > > I think that you misuse the Date() function too. > > Date() is not a string to date conversion function. > > You must use: > > - CDate() for an UTC date conversion. > > - Val() for a local time conversion. > > Regards, > > -- > Benoît Minisini > > > -- > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today.http://sdm.link/intel > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year
Sorry, the date bug was fixed in revision 7983. So 3.9.2 still has the bug. If your string is in local time, then convert it to date using val(). CDate() assumes UTF and your timezone is UTF+1, thus you see the difference. Jussi On Sun, Jan 15, 2017 at 4:41 PM, Gianluigiwrote: > I forgotten: Yes with exactli same program: > > Public Sub Main() > > Print CDate("1/1/2017") > > End > > 2017-01-15 14:52 GMT+01:00 Gianluigi : > > > No Jussi seems all the same. > > > > My computer: > > > > LANG=it_IT.UTF-8 > > LANGUAGE=it > > LC_CTYPE="it_IT.UTF-8" > > LC_NUMERIC="it_IT.UTF-8" > > LC_TIME="it_IT.UTF-8" > > LC_COLLATE="it_IT.UTF-8" > > LC_MONETARY="it_IT.UTF-8" > > LC_MESSAGES="it_IT.UTF-8" > > LC_PAPER="it_IT.UTF-8" > > LC_NAME="it_IT.UTF-8" > > LC_ADDRESS="it_IT.UTF-8" > > LC_TELEPHONE="it_IT.UTF-8" > > LC_MEASUREMENT="it_IT.UTF-8" > > LC_IDENTIFICATION="it_IT.UTF-8" > > LC_ALL= > > > > > > Wife computer: > > > > LANG=it_IT.UTF-8 > > LANGUAGE=it > > LC_CTYPE="it_IT.UTF-8" > > LC_NUMERIC="it_IT.UTF-8" > > LC_TIME="it_IT.UTF-8" > > LC_COLLATE="it_IT.UTF-8" > > LC_MONETARY="it_IT.UTF-8" > > LC_MESSAGES="it_IT.UTF-8" > > LC_PAPER="it_IT.UTF-8" > > LC_NAME="it_IT.UTF-8" > > LC_ADDRESS="it_IT.UTF-8" > > LC_TELEPHONE="it_IT.UTF-8" > > LC_MEASUREMENT="it_IT.UTF-8" > > LC_IDENTIFICATION="it_IT.UTF-8" > > LC_ALL= > > > > [System] > > Gambas=3.9.2 > > OperatingSystem=Linux > > Kernel=4.4.0-59-generic > > Architecture=x86 > > Distribution=Ubuntu 16.04.1 LTS > > Desktop=XFCE > > Theme=Cleanlooks > > Language=it_IT.UTF-8 > > Memory=3018M > > > > [Libraries] > > Cairo=libcairo.so.2.11400.6 > > Curl=libcurl.so.4.4.0 > > DBus=libdbus-1.so.3.14.6 > > GStreamer=libgstreamer-1.0.so.0.802.0 > > GTK+2=libgtk-x11-2.0.so.0.2400.30 > > GTK+3=libgtk-3.so.0.1800.9 > > OpenGL=libGL.so.1.2.0 > > Poppler=libpoppler.so.58.0.0 > > QT4=libQtCore.so.4.8.7 > > QT5=libQt5Core.so.5.5.1 > > SDL=libSDL-1.2.so.0.11.4 > > SQLite=libsqlite3.so.0.8.6 > > > > [Environment] > > CLUTTER_BACKEND=x11 > > CLUTTER_IM_MODULE= > > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dw2oWgNV16 > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path > > DESKTOP_SESSION=xubuntu > > DISPLAY=:0.0 > > GB_GUI=gb.qt4 > > GDMSESSION=xubuntu > > GDM_LANG=it > > GLADE_CATALOG_PATH=: > > GLADE_MODULE_PATH=: > > GLADE_PIXMAP_PATH=: > > GNOME_KEYRING_CONTROL= > > GNOME_KEYRING_PID= > > GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 > > GTK_IM_MODULE= > > GTK_OVERLAY_SCROLLING=0 > > HOME=/home/ > > IM_CONFIG_PHASE=1 > > INSTANCE= > > JOB=dbus > > LANG=it_IT.UTF-8 > > LANGUAGE=it > > LOGNAME= > > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path > > PATH=/home//bin:/home//.local/bin:/ > > usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: > > /usr/games:/usr/local/games:/snap/bin > > PWD=/home/ > > QT4_IM_MODULE= > > QT_ACCESSIBILITY=1 > > QT_IM_MODULE= > > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > > QT_STYLE_OVERRIDE=gtk > > SESSION=xubuntu > > SESSIONTYPE= > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > > 1203,unix/:/tmp/.ICE-unix/1203 > > SHELL=/bin/bash > > SHLVL=0 > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > TZ=:/etc/localtime > > UPSTART_EVENTS=started xsession > > UPSTART_INSTANCE= > > UPSTART_JOB=startxfce4 > > UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1042 > > USER= > > XAUTHORITY=/home//.Xauthority > > XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/ > > xdg:/etc/xdg:/etc/xdg > > XDG_CURRENT_DESKTOP=XFCE > > XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/ > > local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > > XDG_MENU_PREFIX=xfce- > > XDG_RUNTIME_DIR=/run/user/1000 > > XDG_SEAT=seat0 > > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > > XDG_SESSION_DESKTOP=xubuntu > > XDG_SESSION_ID=c1 > > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > > XDG_SESSION_TYPE=x11 > > XDG_VTNR=7 > > XMODIFIERS= > > > > > > > > Regards > > > > Gianluigi > > > > > > 2017-01-15 0:24 GMT+01:00 Jussi Lahtinen : > > > >> With the exactly same program? Then maybe the computers have different > >> localization settings. Try command "locale" on terminal to see if there > >> are > >> differences. > >> > >> > >> Jussi > >> > >> On Sat, Jan 14, 2017 at 9:28 PM, Gianluigi wrote: > >> > >> > But in another computer with 3.9.2 the result is 01/01/2017 00:00:00 > >> > > >> > 2017-01-14 20:13 GMT+01:00 Jussi Lahtinen : > >> > > >> > > It's because of timezone conversion. Not a bug. > >> > > > >> > > > >> > > Jussi > >> > > > >> > > On Sat, Jan 14, 2017 at 8:42 PM, wrote: > >> > > > >> > > > http://gambaswiki.org/bugtracker/edit?object=BUG. > 1068=L21haW4- > >> > > > > >> > > > Gianluigi GRADASCHI added an attachment: > >> > > > > >> > > > CDateTest-0.0.1.tar.gz > >> > > > > >> > > > > >> > > > > >> > > >
Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year
I forgotten: Yes with exactli same program: Public Sub Main() Print CDate("1/1/2017") End 2017-01-15 14:52 GMT+01:00 Gianluigi: > No Jussi seems all the same. > > My computer: > > LANG=it_IT.UTF-8 > LANGUAGE=it > LC_CTYPE="it_IT.UTF-8" > LC_NUMERIC="it_IT.UTF-8" > LC_TIME="it_IT.UTF-8" > LC_COLLATE="it_IT.UTF-8" > LC_MONETARY="it_IT.UTF-8" > LC_MESSAGES="it_IT.UTF-8" > LC_PAPER="it_IT.UTF-8" > LC_NAME="it_IT.UTF-8" > LC_ADDRESS="it_IT.UTF-8" > LC_TELEPHONE="it_IT.UTF-8" > LC_MEASUREMENT="it_IT.UTF-8" > LC_IDENTIFICATION="it_IT.UTF-8" > LC_ALL= > > > Wife computer: > > LANG=it_IT.UTF-8 > LANGUAGE=it > LC_CTYPE="it_IT.UTF-8" > LC_NUMERIC="it_IT.UTF-8" > LC_TIME="it_IT.UTF-8" > LC_COLLATE="it_IT.UTF-8" > LC_MONETARY="it_IT.UTF-8" > LC_MESSAGES="it_IT.UTF-8" > LC_PAPER="it_IT.UTF-8" > LC_NAME="it_IT.UTF-8" > LC_ADDRESS="it_IT.UTF-8" > LC_TELEPHONE="it_IT.UTF-8" > LC_MEASUREMENT="it_IT.UTF-8" > LC_IDENTIFICATION="it_IT.UTF-8" > LC_ALL= > > [System] > Gambas=3.9.2 > OperatingSystem=Linux > Kernel=4.4.0-59-generic > Architecture=x86 > Distribution=Ubuntu 16.04.1 LTS > Desktop=XFCE > Theme=Cleanlooks > Language=it_IT.UTF-8 > Memory=3018M > > [Libraries] > Cairo=libcairo.so.2.11400.6 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.6 > GStreamer=libgstreamer-1.0.so.0.802.0 > GTK+2=libgtk-x11-2.0.so.0.2400.30 > GTK+3=libgtk-3.so.0.1800.9 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.58.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.5.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CLUTTER_BACKEND=x11 > CLUTTER_IM_MODULE= > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dw2oWgNV16 > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path > DESKTOP_SESSION=xubuntu > DISPLAY=:0.0 > GB_GUI=gb.qt4 > GDMSESSION=xubuntu > GDM_LANG=it > GLADE_CATALOG_PATH=: > GLADE_MODULE_PATH=: > GLADE_PIXMAP_PATH=: > GNOME_KEYRING_CONTROL= > GNOME_KEYRING_PID= > GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 > GTK_IM_MODULE= > GTK_OVERLAY_SCROLLING=0 > HOME=/home/ > IM_CONFIG_PHASE=1 > INSTANCE= > JOB=dbus > LANG=it_IT.UTF-8 > LANGUAGE=it > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path > PATH=/home//bin:/home//.local/bin:/ > usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: > /usr/games:/usr/local/games:/snap/bin > PWD=/home/ > QT4_IM_MODULE= > QT_ACCESSIBILITY=1 > QT_IM_MODULE= > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_STYLE_OVERRIDE=gtk > SESSION=xubuntu > SESSIONTYPE= > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > 1203,unix/:/tmp/.ICE-unix/1203 > SHELL=/bin/bash > SHLVL=0 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > UPSTART_EVENTS=started xsession > UPSTART_INSTANCE= > UPSTART_JOB=startxfce4 > UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1042 > USER= > XAUTHORITY=/home//.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/ > xdg:/etc/xdg:/etc/xdg > XDG_CURRENT_DESKTOP=XFCE > XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/ > local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_MENU_PREFIX=xfce- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=xubuntu > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > XMODIFIERS= > > > > Regards > > Gianluigi > > > 2017-01-15 0:24 GMT+01:00 Jussi Lahtinen : > >> With the exactly same program? Then maybe the computers have different >> localization settings. Try command "locale" on terminal to see if there >> are >> differences. >> >> >> Jussi >> >> On Sat, Jan 14, 2017 at 9:28 PM, Gianluigi wrote: >> >> > But in another computer with 3.9.2 the result is 01/01/2017 00:00:00 >> > >> > 2017-01-14 20:13 GMT+01:00 Jussi Lahtinen : >> > >> > > It's because of timezone conversion. Not a bug. >> > > >> > > >> > > Jussi >> > > >> > > On Sat, Jan 14, 2017 at 8:42 PM, wrote: >> > > >> > > > http://gambaswiki.org/bugtracker/edit?object=BUG.1068=L21haW4- >> > > > >> > > > Gianluigi GRADASCHI added an attachment: >> > > > >> > > > CDateTest-0.0.1.tar.gz >> > > > >> > > > >> > > > >> > > > >> > > > -- >> > > > Developer Access Program for Intel Xeon Phi Processors >> > > > Access to Intel Xeon Phi processor-based developer platforms. >> > > > With one year of Intel Parallel Studio XE. >> > > > Training and support from Colfax. >> > > > Order your platform today. http://sdm.link/xeonphi >> > > > ___ >> > > > Gambas-user mailing list >> > > > Gambas-user@lists.sourceforge.net >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > > >> > > -- >> > >
[Gambas-user] [Gambas Bug Tracker] Bug #1069: Error by clicking on minus sign at the left of a routine
http://gambaswiki.org/bugtracker/edit?object=BUG.1069=L21haW4- vuott VUOTT reported a new bug. Summary --- Error by clicking on minus sign at the left of a routine Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : Unknown Description --- By clicking on minus sign at the left of a routine, a waning windows appears with this notice: " This application has raised an unexpected error and must abort. [13] Null object. TextEditor.ToggleRow.4112 " System information -- [System] Gambas=3.9.90 r8056 OperatingSystem=Linux Kernel=4.4.0-59-generic Architecture=x86_64 Distribution=Linux Mint 17.3 Rosa Desktop=CINNAMON Theme=Cleanlooks Language=it_IT.UTF-8 Memory=3952M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] [Gambas Bug Tracker] Bug #1068: CDate: strange behavior on first day of year
No Jussi seems all the same. My computer: LANG=it_IT.UTF-8 LANGUAGE=it LC_CTYPE="it_IT.UTF-8" LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL= Wife computer: LANG=it_IT.UTF-8 LANGUAGE=it LC_CTYPE="it_IT.UTF-8" LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL= [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.0-59-generic Architecture=x86 Distribution=Ubuntu 16.04.1 LTS Desktop=XFCE Theme=Cleanlooks Language=it_IT.UTF-8 Memory=3018M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.802.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE= DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dw2oWgNV16 DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GDM_LANG=it GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 GTK_IM_MODULE= GTK_OVERLAY_SCROLLING=0 HOME=/home/ IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=it_IT.UTF-8 LANGUAGE=it LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path PATH=/home//bin:/home//.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD=/home/ QT4_IM_MODULE= QT_ACCESSIBILITY=1 QT_IM_MODULE= QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION=xubuntu SESSIONTYPE= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1203,unix/:/tmp/.ICE-unix/1203 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=startxfce4 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1042 USER= XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=xubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS= Regards Gianluigi 2017-01-15 0:24 GMT+01:00 Jussi Lahtinen: > With the exactly same program? Then maybe the computers have different > localization settings. Try command "locale" on terminal to see if there are > differences. > > > Jussi > > On Sat, Jan 14, 2017 at 9:28 PM, Gianluigi wrote: > > > But in another computer with 3.9.2 the result is 01/01/2017 00:00:00 > > > > 2017-01-14 20:13 GMT+01:00 Jussi Lahtinen : > > > > > It's because of timezone conversion. Not a bug. > > > > > > > > > Jussi > > > > > > On Sat, Jan 14, 2017 at 8:42 PM, wrote: > > > > > > > http://gambaswiki.org/bugtracker/edit?object=BUG.1068=L21haW4- > > > > > > > > Gianluigi GRADASCHI added an attachment: > > > > > > > > CDateTest-0.0.1.tar.gz > > > > > > > > > > > > > > > > > > > > -- > > > > Developer Access Program for Intel Xeon Phi Processors > > > > Access to Intel Xeon Phi processor-based developer platforms. > > > > With one year of Intel Parallel Studio XE. > > > > Training and support from Colfax. > > > > Order your platform today. http://sdm.link/xeonphi > > > > ___ > > > > Gambas-user mailing list > > > > Gambas-user@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > -- > > > Developer Access Program for Intel Xeon Phi Processors > > > Access to Intel Xeon Phi processor-based developer platforms. > > > With one year of Intel Parallel Studio XE. > > > Training and support from Colfax. > > > Order your platform today. http://sdm.link/xeonphi > > > ___ > > > Gambas-user mailing list > > > Gambas-user@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > >