Re: [Gambas-user] Editing still blocked

2017-05-17 Thread Benoît Minisini
Le 17/05/2017 à 22:30, Fabien Bodard a écrit :
> So the problem come from the drawingarea.
> 

I have changed something related to events in revision #8132, so it must 
me that.

But everything works correctly on my system...

I will investigate, but not before next week.

Regards,

-- 
Benoît Minisini

--
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
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-17 Thread Tobias Boege
On Thu, 18 May 2017, Cristiano Guadagnino wrote:
> If your complaint is due to the fact that the only native implementation
> for Gambas is the Mysql one, you have to understand that Mysql (usually in
> the form of MariaDB) is available on all linux distributions and it is
> free.
> One other free DBMS available for all linuxes is Postgresql, but this is
> not even nearly as widely used as Mysql. I would not be very surprised if,
> in fact, the great majority of Gambas developers were using Mysql. What's
> wrong with that?
> 

(Just a quick interjection: Gambas does have a native PostgreSQL driver.)

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

--
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
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-17 Thread Cristiano Guadagnino
Hi PICCORO, I am a professional DBA working daily with IBM DB/2, Microsoft
SQL Server, Mysql.

First of all, let me tell you that a big effort is needed to read you
messages, because of your poor english and your writing style. I'm sorry if
I'm a bit blunt, but please... a little effort from you would be very
appreciated.
Anyway, if your native language is spanish I would appreciate if, when
speaking to me, you could add the spanish translation of your sentences...
it would help me understand better. I am italian but I know spanish quite
well.

That said, I fail to see why you're complaining about Mysql. I also fail to
see what mysql has to do with your failed efforts with ODBC. ODBC is a
protocol that tries to help developers by allowing them to "speak" the same
language to any underlying DBMS. ODBC then "translates" to their native
language. That's why ODBC cannot support (or badly supports) features that
are specific to a single DBMS system. Using a native driver, when
available, is absolutely preferred.
If your complaint is due to the fact that the only native implementation
for Gambas is the Mysql one, you have to understand that Mysql (usually in
the form of MariaDB) is available on all linux distributions and it is
free.
One other free DBMS available for all linuxes is Postgresql, but this is
not even nearly as widely used as Mysql. I would not be very surprised if,
in fact, the great majority of Gambas developers were using Mysql. What's
wrong with that?

Finally, a word about your "counting" problem. You never show the query you
need to do on your DBMS, but if you need a record count why don't you
simply issue a "SELECT COUNT(*) ..." on the db? Iterating over all the
records just to get a count doesn't seem like the best move... unless you
also need to do something on each record, obviously. Or am I missing
something?

Best regards
Cris


On Wed, May 17, 2017 at 6:54 PM, PICCORO McKAY Lenz 
wrote:

> tobias, i answered few seconds, yeah the if was in wrong place.. thanks for
> the corrections..
>
> and u dont know that ODBC module in gambas does not implement or have same
> behaviour of the others like sqlite or mysql..
>
> count does not retunrs nothing, max neither so i must implement my own
> count..
>
> seems that mayority gambas develpoers only used mysql? nobody performs on
> mayor scalar DBMS ? oracle, sybase, postgresql?
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-17 12:32 GMT-04:00 Tobias Boege :
>
> > On Wed, 17 May 2017, PICCORO McKAY Lenz wrote:
> > > i try to filla gridview at demand, so due ODBC limitations i cannot
> count
> > > so inside my bean-like object i count and tehen return properties..
> > >
> > > the problem goes when i try to move to the fitrs record, i implement
> the
> > > code in wrong way? :
> > >
> > > Try resulobj = $conexionodbc.Exec(exisqueryrequest)
> > >
> > >   While (resulobj.Available)
> > >
> > > If resulobj.MoveNext() Then
> > >   resulhowmany = resulhowmany + 1
> > > Else
> > >   Break
> > > Endif
> > >
> > >   Wend
> > >
> > >   resulobj.MoveFirst ' <--- here said that its foward only, that's true
> > if
> > > comes from a simple select ?
> > >
> >
> > I don't understand your last question (and I have no idea about bean-like
> > objects outside of gardening) but according to the Result.MoveNext()
> > documentation [1]:
> >
> >   Returns TRUE if the result is void or if there is no next record.
> >
> > You seem to increment your counter when the move *fails*, which will give
> > you a wrong count. I usually do something like:
> >
> >   ' Modifies the internal Result record pointer!
> >   Private Sub CountResult(hRes As Result) As Integer
> > Dim iCount As Integer
> >
> > If hRes.MoveFirst() Then Return 0
> > iCount = 1
> > While Not hRes.MoveNext()
> >   Inc iCount
> > Wend
> > Return iCount
> >   End
> >
> > Regards,
> > Tobi
> >
> > [1] http://gambaswiki.org/wiki/comp/gb.db/result/movenext
> >
> > --
> > "There's an old saying: Don't change anything... ever!" -- Mr. Monk
> >
> > 
> > --
> > 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
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> --
> 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
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one 

Re: [Gambas-user] Editing still blocked

2017-05-17 Thread Fabien Bodard
So the problem come from the drawingarea.

2017-05-17 20:18 GMT+02:00 William Cabrera :
> I've tried with this project, I can write in TextBox1 and in TextArea1 but
> not in TextEditor1
>
>
> --
> William Cabrera
> https://blog.willicab.com.ve
>
> 2017-05-17 13:48 GMT-04:00 William Cabrera :
>
>> Hi, i have the same problem, the code editor does not work, although I
>> can use the key combination Ctrl+C, Ctrl+X and Ctrl+V, for example.
>>
>> I'm using the svn version, I have recompiled, I deleted the conf folder
>> but the problem persists
>>
>> [System]
>> Gambas=3.9.90 r8134
>> OperatingSystem=Linux
>> Kernel=4.9.0-2-amd64
>> Architecture=x86_64
>> Distribution=debian 9.0
>> Desktop=MATE
>> Theme=Gtk
>> Language=es_VE.UTF-8
>> Memory=7882M
>>
>> [Libraries]
>> Cairo=libcairo.so.2.11400.8
>> Curl=libcurl.so.4.4.0
>> DBus=libdbus-1.so.3.14.11
>> GStreamer=libgstreamer-0.10.so.0.30.0
>> GStreamer=libgstreamer-1.0.so.0.1004.0
>> GTK+2=libgtk-x11-2.0.so.0.2400.31
>> GTK+3=libgtk-3.so.0.2200.11
>> OpenGL=libGL.so.1.2.0
>> Poppler=libpoppler.so.46.0.0
>> Poppler=libpoppler.so.57.0.0
>> Poppler=libpoppler.so.64.0.0
>> QT4=libQtCore.so.4.8.7
>> QT5=libQt5Core.so.5.7.1
>> SDL=libSDL-1.2.so.0.11.4
>> SQLite=libsqlite3.so.0.8.6
>>
>> [Environment]
>> CLUTTER_BACKEND=x11
>> COLORTERM=truecolor
>> COMP_WORDBREAKS=
>> "'><;|&(:
>> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
>> DESKTOP_SESSION=mate
>> DISPLAY=:0
>> DYLD_LIBRARY_PATH=/apps/distro/install/lib:/
>> apps/distro/install/lib:/apps/distro/install/lib:
>> FTP_PROXY=http://proxy.vit.gob.ve:3128/
>> GB_GUI=gb.qt4
>> GDMSESSION=mate
>> GDM_LANG=es_VE.UTF-8
>> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
>> GTK_MODULES=gail:atk-bridge:canberra-gtk-module
>> GTK_OVERLAY_SCROLLING=0
>> HOME=
>> HTTPS_PROXY=http://proxy.vit.gob.ve:3128/
>> HTTPS_PROXY_REQUEST_FULLURI=0
>> HTTP_PROXY=http://proxy.vit.gob.ve:3128/
>> HTTP_PROXY_REQUEST_FULLURI=0
>> JOURNAL_STREAM=8:25812
>> LANG=es_VE.UTF-8
>> LD_LIBRARY_PATH=/apps/distro/install/lib:
>> LOGNAME=
>> LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=
>> 01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=
>> 30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;
>> 31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=
>> 01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.
>> txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.
>> Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=
>> 01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=
>> 01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.
>> rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:
>> *.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;
>> 31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=
>> 01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.
>> pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:
>> *.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=
>> 01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.
>> mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;
>> 35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=
>> 01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=
>> 01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.
>> flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.
>> yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:
>> *.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:
>> *.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=
>> 00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=
>> 00;36:*.xspf=00;36:
>> LUA_CPATH=/apps/distro/install/lib/?.so;/.
>> luarocks/lib/lua/5.1/?.so;/apps/distro/install/lib/
>> lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/
>> local/lib/lua/5.1/loadall.so
>> LUA_PATH=/.luarocks/share/lua/5.1/?.lua;/.
>> luarocks/share/lua/5.1/?/init.lua;/apps/distro/
>> install/share/lua/5.1/?.lua;/apps/distro/install/
>> share/lua/5.1/?/init.lua;./?.lua;/apps/distro/
>> install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/
>> lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua
>> MATE_DESKTOP_SESSION_ID=this-is-deprecated
>> NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
>> NO_PROXY=localhost,127.0.0.0/8,::1,192.168.10.13
>> OLDPWD=
>> OUT_DIR_COMMON_BASE=/android/out
>> PATH=/apps/distro/install/bin:/.composer/
>> vendor/bin:/apps/distro/install/bin:/apps/
>> distro/install/bin:/usr/local/sbin:/usr/sbin:/sbin:/
>> bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/
>> games:/usr/local/share/bennugd/bin
>> PWD=/.config
>> QT_ACCESSIBILITY=1
>> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
>> QT_X11_NO_MITSHM=1
>> SESSION_MANAGER=local/:@/tmp/.ICE-unix/
>> 1868,unix/:/tmp/.ICE-unix/1868
>> SHELL=/bin/bash
>> SHLVL=1
>> SSH_AGENT_PID=2094
>> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
>> TERM=xterm
>> TZ=:/etc/localtime
>> USER=
>> USERNAME=
>> USE_CCACHE=1
>> VTE_VERSION=4601
>> WINDOWID=31465201
>> WINDOWPATH=2
>> XAUTHORITY=/run/use

Re: [Gambas-user] Editing still blocked

2017-05-17 Thread William Cabrera
I've tried with this project, I can write in TextBox1 and in TextArea1 but
not in TextEditor1


--
William Cabrera
https://blog.willicab.com.ve

2017-05-17 13:48 GMT-04:00 William Cabrera :

> Hi, i have the same problem, the code editor does not work, although I
> can use the key combination Ctrl+C, Ctrl+X and Ctrl+V, for example.
>
> I'm using the svn version, I have recompiled, I deleted the conf folder
> but the problem persists
>
> [System]
> Gambas=3.9.90 r8134
> OperatingSystem=Linux
> Kernel=4.9.0-2-amd64
> Architecture=x86_64
> Distribution=debian 9.0
> Desktop=MATE
> Theme=Gtk
> Language=es_VE.UTF-8
> Memory=7882M
>
> [Libraries]
> Cairo=libcairo.so.2.11400.8
> Curl=libcurl.so.4.4.0
> DBus=libdbus-1.so.3.14.11
> GStreamer=libgstreamer-0.10.so.0.30.0
> GStreamer=libgstreamer-1.0.so.0.1004.0
> GTK+2=libgtk-x11-2.0.so.0.2400.31
> GTK+3=libgtk-3.so.0.2200.11
> OpenGL=libGL.so.1.2.0
> Poppler=libpoppler.so.46.0.0
> Poppler=libpoppler.so.57.0.0
> Poppler=libpoppler.so.64.0.0
> QT4=libQtCore.so.4.8.7
> QT5=libQt5Core.so.5.7.1
> SDL=libSDL-1.2.so.0.11.4
> SQLite=libsqlite3.so.0.8.6
>
> [Environment]
> CLUTTER_BACKEND=x11
> COLORTERM=truecolor
> COMP_WORDBREAKS=
> "'><;|&(:
> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
> DESKTOP_SESSION=mate
> DISPLAY=:0
> DYLD_LIBRARY_PATH=/apps/distro/install/lib:/
> apps/distro/install/lib:/apps/distro/install/lib:
> FTP_PROXY=http://proxy.vit.gob.ve:3128/
> GB_GUI=gb.qt4
> GDMSESSION=mate
> GDM_LANG=es_VE.UTF-8
> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
> GTK_MODULES=gail:atk-bridge:canberra-gtk-module
> GTK_OVERLAY_SCROLLING=0
> HOME=
> HTTPS_PROXY=http://proxy.vit.gob.ve:3128/
> HTTPS_PROXY_REQUEST_FULLURI=0
> HTTP_PROXY=http://proxy.vit.gob.ve:3128/
> HTTP_PROXY_REQUEST_FULLURI=0
> JOURNAL_STREAM=8:25812
> LANG=es_VE.UTF-8
> LD_LIBRARY_PATH=/apps/distro/install/lib:
> LOGNAME=
> LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=
> 01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=
> 30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;
> 31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=
> 01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.
> txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.
> Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=
> 01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=
> 01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.
> rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:
> *.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;
> 31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=
> 01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.
> pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:
> *.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=
> 01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.
> mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;
> 35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=
> 01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=
> 01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.
> flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.
> yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:
> *.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:
> *.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=
> 00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=
> 00;36:*.xspf=00;36:
> LUA_CPATH=/apps/distro/install/lib/?.so;/.
> luarocks/lib/lua/5.1/?.so;/apps/distro/install/lib/
> lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/
> local/lib/lua/5.1/loadall.so
> LUA_PATH=/.luarocks/share/lua/5.1/?.lua;/.
> luarocks/share/lua/5.1/?/init.lua;/apps/distro/
> install/share/lua/5.1/?.lua;/apps/distro/install/
> share/lua/5.1/?/init.lua;./?.lua;/apps/distro/
> install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/
> lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua
> MATE_DESKTOP_SESSION_ID=this-is-deprecated
> NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
> NO_PROXY=localhost,127.0.0.0/8,::1,192.168.10.13
> OLDPWD=
> OUT_DIR_COMMON_BASE=/android/out
> PATH=/apps/distro/install/bin:/.composer/
> vendor/bin:/apps/distro/install/bin:/apps/
> distro/install/bin:/usr/local/sbin:/usr/sbin:/sbin:/
> bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/
> games:/usr/local/share/bennugd/bin
> PWD=/.config
> QT_ACCESSIBILITY=1
> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
> QT_X11_NO_MITSHM=1
> SESSION_MANAGER=local/:@/tmp/.ICE-unix/
> 1868,unix/:/tmp/.ICE-unix/1868
> SHELL=/bin/bash
> SHLVL=1
> SSH_AGENT_PID=2094
> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
> TERM=xterm
> TZ=:/etc/localtime
> USER=
> USERNAME=
> USE_CCACHE=1
> VTE_VERSION=4601
> WINDOWID=31465201
> WINDOWPATH=2
> XAUTHORITY=/run/user/1000/gdm/Xauthority
> XDG_CURRENT_DESKTOP=MATE
> XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
> XDG_RUNTIME_DIR=/run/user/1000
> XDG_SEAT=seat0
> XDG_SESSION_DESKTOP=mate
> XDG_SESSION_ID=2
> XDG_SESSION_TYPE=x11

Re: [Gambas-user] Editing still blocked

2017-05-17 Thread William Cabrera
Hi, i have the same problem, the code editor does not work, although I can
use the key combination Ctrl+C, Ctrl+X and Ctrl+V, for example.

I'm using the svn version, I have recompiled, I deleted the conf folder but
the problem persists

[System]
Gambas=3.9.90 r8134
OperatingSystem=Linux
Kernel=4.9.0-2-amd64
Architecture=x86_64
Distribution=debian 9.0
Desktop=MATE
Theme=Gtk
Language=es_VE.UTF-8
Memory=7882M

[Libraries]
Cairo=libcairo.so.2.11400.8
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.11
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.1004.0
GTK+2=libgtk-x11-2.0.so.0.2400.31
GTK+3=libgtk-3.so.0.2200.11
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.46.0.0
Poppler=libpoppler.so.57.0.0
Poppler=libpoppler.so.64.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.7.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
CLUTTER_BACKEND=x11
COLORTERM=truecolor
COMP_WORDBREAKS=
"'><;|&(:
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=mate
DISPLAY=:0
DYLD_LIBRARY_PATH=/apps/distro/install/lib:/apps/distro/install/lib:/apps/distro/install/lib:
FTP_PROXY=http://proxy.vit.gob.ve:3128/
GB_GUI=gb.qt4
GDMSESSION=mate
GDM_LANG=es_VE.UTF-8
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge:canberra-gtk-module
GTK_OVERLAY_SCROLLING=0
HOME=
HTTPS_PROXY=http://proxy.vit.gob.ve:3128/
HTTPS_PROXY_REQUEST_FULLURI=0
HTTP_PROXY=http://proxy.vit.gob.ve:3128/
HTTP_PROXY_REQUEST_FULLURI=0
JOURNAL_STREAM=8:25812
LANG=es_VE.UTF-8
LD_LIBRARY_PATH=/apps/distro/install/lib:
LOGNAME=
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LUA_CPATH=/apps/distro/install/lib/?.so;/.luarocks/lib/lua/5.1/?.so;/apps/distro/install/lib/lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so
LUA_PATH=/.luarocks/share/lua/5.1/?.lua;/.luarocks/share/lua/5.1/?/init.lua;/apps/distro/install/share/lua/5.1/?.lua;/apps/distro/install/share/lua/5.1/?/init.lua;./?.lua;/apps/distro/install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua
MATE_DESKTOP_SESSION_ID=this-is-deprecated
NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
NO_PROXY=localhost,127.0.0.0/8,::1,192.168.10.13
OLDPWD=
OUT_DIR_COMMON_BASE=/android/out
PATH=/apps/distro/install/bin:/.composer/vendor/bin:/apps/distro/install/bin:/apps/distro/install/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/share/bennugd/bin
PWD=/.config
QT_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_X11_NO_MITSHM=1
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1868,unix/:/tmp/.ICE-unix/1868
SHELL=/bin/bash
SHLVL=1
SSH_AGENT_PID=2094
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=xterm
TZ=:/etc/localtime
USER=
USERNAME=
USE_CCACHE=1
VTE_VERSION=4601
WINDOWID=31465201
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=2
XDG_SESSION_TYPE=x11
XDG_VTNR=2
_=/usr/bin/gambas3
ftp_proxy=http://proxy.vit.gob.ve:3128/
http_proxy=http://proxy.vit.gob.ve:3128/
https_proxy=http://proxy.vit.gob.ve:3128/
no_proxy=localhost,127.0.0.0/8,::1,192.168.10.13


--
William Cabrera
https://blog.willicab.com.ve

2017-05-08 13:42 GMT-04:00 Benoît Minisini :

> Le 08/05/2017 à 19:38, Fernando Cabral a écrit :
> >  >Can you send a tar.gz archive of your project directory?
> >
> > I am sending one. Do you need them all?
> > (tar compressed)
> >
> >

Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-17 Thread PICCORO McKAY Lenz
tobias, i answered few seconds, yeah the if was in wrong place.. thanks for
the corrections..

and u dont know that ODBC module in gambas does not implement or have same
behaviour of the others like sqlite or mysql..

count does not retunrs nothing, max neither so i must implement my own
count..

seems that mayority gambas develpoers only used mysql? nobody performs on
mayor scalar DBMS ? oracle, sybase, postgresql?

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-17 12:32 GMT-04:00 Tobias Boege :

> On Wed, 17 May 2017, PICCORO McKAY Lenz wrote:
> > i try to filla gridview at demand, so due ODBC limitations i cannot count
> > so inside my bean-like object i count and tehen return properties..
> >
> > the problem goes when i try to move to the fitrs record, i implement the
> > code in wrong way? :
> >
> > Try resulobj = $conexionodbc.Exec(exisqueryrequest)
> >
> >   While (resulobj.Available)
> >
> > If resulobj.MoveNext() Then
> >   resulhowmany = resulhowmany + 1
> > Else
> >   Break
> > Endif
> >
> >   Wend
> >
> >   resulobj.MoveFirst ' <--- here said that its foward only, that's true
> if
> > comes from a simple select ?
> >
>
> I don't understand your last question (and I have no idea about bean-like
> objects outside of gardening) but according to the Result.MoveNext()
> documentation [1]:
>
>   Returns TRUE if the result is void or if there is no next record.
>
> You seem to increment your counter when the move *fails*, which will give
> you a wrong count. I usually do something like:
>
>   ' Modifies the internal Result record pointer!
>   Private Sub CountResult(hRes As Result) As Integer
> Dim iCount As Integer
>
> If hRes.MoveFirst() Then Return 0
> iCount = 1
> While Not hRes.MoveNext()
>   Inc iCount
> Wend
> Return iCount
>   End
>
> Regards,
> Tobi
>
> [1] http://gambaswiki.org/wiki/comp/gb.db/result/movenext
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> 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
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
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
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-17 Thread Tobias Boege
On Wed, 17 May 2017, PICCORO McKAY Lenz wrote:
> i try to filla gridview at demand, so due ODBC limitations i cannot count
> so inside my bean-like object i count and tehen return properties..
> 
> the problem goes when i try to move to the fitrs record, i implement the
> code in wrong way? :
> 
> Try resulobj = $conexionodbc.Exec(exisqueryrequest)
> 
>   While (resulobj.Available)
> 
> If resulobj.MoveNext() Then
>   resulhowmany = resulhowmany + 1
> Else
>   Break
> Endif
> 
>   Wend
> 
>   resulobj.MoveFirst ' <--- here said that its foward only, that's true if
> comes from a simple select ?
> 

I don't understand your last question (and I have no idea about bean-like
objects outside of gardening) but according to the Result.MoveNext()
documentation [1]:

  Returns TRUE if the result is void or if there is no next record.

You seem to increment your counter when the move *fails*, which will give
you a wrong count. I usually do something like:

  ' Modifies the internal Result record pointer!
  Private Sub CountResult(hRes As Result) As Integer
Dim iCount As Integer

If hRes.MoveFirst() Then Return 0
iCount = 1
While Not hRes.MoveNext()
  Inc iCount
Wend
Return iCount
  End

Regards,
Tobi

[1] http://gambaswiki.org/wiki/comp/gb.db/result/movenext

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

--
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
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-17 Thread PICCORO McKAY Lenz
sorry was bad implementation, fixed code:


resulhowmany = resulhowmany + 1
If resulobj.MoveNext() Then
  Break
Endif

documentation said that when no records are available retuns true.. very
confused but well..


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-05-17 12:13 GMT-04:00 PICCORO McKAY Lenz :

> i try to filla gridview at demand, so due ODBC limitations i cannot count
> so inside my bean-like object i count and tehen return properties..
>
> the problem goes when i try to move to the fitrs record, i implement the
> code in wrong way? :
>
> Try resulobj = $conexionodbc.Exec(exisqueryrequest)
>
>   While (resulobj.Available)
>
> If resulobj.MoveNext() Then
>   resulhowmany = resulhowmany + 1
> Else
>   Break
> Endif
>
>   Wend
>
>   resulobj.MoveFirst ' <--- here said that its foward only, that's true if
> comes from a simple select ?
>
>
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
--
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
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] result from select can be movefirts from ODBC?

2017-05-17 Thread PICCORO McKAY Lenz
i try to filla gridview at demand, so due ODBC limitations i cannot count
so inside my bean-like object i count and tehen return properties..

the problem goes when i try to move to the fitrs record, i implement the
code in wrong way? :

Try resulobj = $conexionodbc.Exec(exisqueryrequest)

  While (resulobj.Available)

If resulobj.MoveNext() Then
  resulhowmany = resulhowmany + 1
Else
  Break
Endif

  Wend

  resulobj.MoveFirst ' <--- here said that its foward only, that's true if
comes from a simple select ?



Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
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
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] why not a forum event a complicates instruction on list and mail list

2017-05-17 Thread T Lee Davidson
Hello Tyrone,

There is no forum. It is just a mailing list.

You use it by posting a message to the mailing list address: 
gambas-user@lists.sourceforge.net

And, you can see previous messages sent to the list by visiting:
https://sourceforge.net/p/gambas/mailman/gambas-user/


On 05/16/2017 05:11 PM, Tyrone Lucero wrote:
> Hello, I was inscribe here,  but  I don' t see  any forum... there are
> one way to know about use this list?
> 
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

---
Lee
__


--
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
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ?

2017-05-17 Thread ingo
Hi Fabien,
thankx for the answer and the very fast implementation.

I found a workaround in the meantime. Using the draw event of the MapView
let me draw lines with Paint.
But I will check the new gb.map class.

Salut
Ingo




--
View this message in context: 
http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p59017.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
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
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user