Re: [Gambas-user] decode json string in standard application

2016-12-10 Thread Julio Sanchez
Piccoro Mackay Lenz:

"or only works with a web type application?"


Desktop application example:

http://jsbsan.blogspot.com.es/2015/04/gambas3-ejemplo-de-json-y-extraer-datos.html



"You can use the gb.util.web component everywhere you want "


You can even extract the component code, the json class, and use it in
projects, so you do not have to have gb.util.web installed.
I use it for earlier versions of Gambas, where that component did not
exist, but I do need to use the json class.

Regards

Jsbsan


2016-12-10 7:51 GMT+01:00 Fabien Bodard :

> You can use the gb.util.web component everywhere you want :-)
>
> 2016-12-09 20:45 GMT+01:00 PICCORO McKAY Lenz :
> > i made a pos systemas in gambas but i want get info of clients by an api
> > decoding string results by url gets..
> >
> > the url retuns a json string, and i can see that gambas hav methods for
> > json decoding
> >
> > http://gambaswiki.org/wiki/comp/gb.web/json/decode
> >
> > the question are: i can use that also in a standard project application?
> or
> > only works with a web type application?
> >
> > i want to decode the json string to get info of the clients in the pos
> > system, so then my database does not need store client data, only client
> id
> >
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> > 
> --
> > 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
>
>
>
> --
> Fabien Bodard
>
> 
> --
> 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


[Gambas-user] An editor side bar like the kate one

2016-12-10 Thread Fabien Bodard
This is a try to give to the gambas editor a preview side bar like the
one i like on kate.

It display Bookmarks and modified lines too and separators.


Feel free to give me your opinions



-- 
Fabien Bodard


gb.form.editor-3.9.90.tar.gz
Description: GNU Zip compressed data
--
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] An editor side bar like the kate one

2016-12-10 Thread Gianluigi
Hello Fabien,
I doing something wrong? I get an error, in my computer this path does not
exist.
See attached image

Regards
Gianluigi

2016-12-10 18:19 GMT+01:00 Fabien Bodard :

> This is a try to give to the gambas editor a preview side bar like the
> one i like on kate.
>
> It display Bookmarks and modified lines too and separators.
>
>
> Feel free to give me your opinions
>
>
>
> --
> Fabien Bodard
>
> 
> --
> 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


[Gambas-user] [Gambas Bug Tracker] Bug #1049: reader.Node.Attributes.Value --> Segmentation Fault(11)

2016-12-10 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1049&from=L21haW4-

Francisco GARCÍA-LUENGO MANCHADO reported a new bug.

Summary
---

reader.Node.Attributes.Value --> Segmentation Fault(11)

Type : Bug
Priority : Medium
Gambas version   : 3.9
Product  : Unknown


Description
---

Public Sub LeerArchivo()
  
  Dim i As Integer
  Dim reader As XmlReader
  
  reader = New XmlReader

' trvProyecto any valid treeview
' DocumentoPrueba.xml any valid xml file 


  Try reader.Open("DocumentoPrueba.xml")
  If Error Then 
Message.Error("No se pudo abrir el archivo")
Return 
  Endif
  
  i = 0
  Do While True
Try reader.Read()
If reader.Eof Then Break
Try FMain.trvProyecto.Add(i, i & ": " & reader.Node.Depth & "-" & 
reader.Node.Type & "-" & reader.Node.Name & "-" & reader.Node.Value, 
PicLibreria)
i = i + 1
For Each reader.Node.Attributes
  Try Print "-" & reader.Node.Attributes.Name '& "-" & 
reader.Node.Attributes.Value  '' < Error
Next
'Print reader.Node.Type & "-" & reader.Node.Name & "-" & reader.Node.Value
  Loop 
  reader.Close()
End


System information
--

[System]
Gambas=3.9.1
OperatingSystem=Linux
Kernel=4.4.0-53-generic
Architecture=x86_64
Distribution=Linux Mint 18 Sarah
Desktop=CINNAMON
Theme=Gtk
Language=es_ES.UTF-8
Memory=3950M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-0.10.so.0.30.0
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]
CINNAMON_VERSION=3.0.7
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-PtFS8POBrs,guid=1408fb7c6c68c77fe25e2d68584c2735
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=cinnamon
GDM_XSERVER_LOCATION=local
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=4636
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
GTK_OVERLAY_SCROLLING=1
HOME=
LANG=es_ES.UTF-8
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
MDMSESSION=cinnamon
MDM_LANG=es_ES.UTF-8
MDM_XSERVER_LOCATION=local
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=
QT_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_STYLE_OVERRIDE=gtk
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1210,unix/:/tmp/.ICE-unix/1210
SHELL=/bin/bash
SSH_AGENT_PID=1559
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=
USERNAME=
WINDOWPATH=8
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=2a5d5f96ef9147c0b35535562b32d0ff-1481385777.767581-1058287532
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c1
XDG_VTNR=8



--
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] An editor side bar like the kate one

2016-12-10 Thread Moviga Technologies
Edit FTestEditor -> Reload(), change the path to some class file on your 
drive.


It looks pretty cool Fabien! Good job!


Den 10. des. 2016 19:42, skrev Gianluigi:
> Hello Fabien,
> I doing something wrong? I get an error, in my computer this path does not
> exist.
> See attached image
>
> Regards
> Gianluigi
>
> 2016-12-10 18:19 GMT+01:00 Fabien Bodard :
>
>> This is a try to give to the gambas editor a preview side bar like the
>> one i like on kate.
>>
>> It display Bookmarks and modified lines too and separators.
>>
>>
>> Feel free to give me your opinions
>>
>>
>>
>> --
>> Fabien Bodard
>>
>> 
>> --
>> 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

--
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] An editor side bar like the kate one

2016-12-10 Thread Gianluigi
OK thanks 👍

Regards
Gianluigi

2016-12-10 20:22 GMT+01:00 Moviga Technologies :

> Edit FTestEditor -> Reload(), change the path to some class file on your
> drive.
>
>
> It looks pretty cool Fabien! Good job!
>
>
> Den 10. des. 2016 19:42, skrev Gianluigi:
> > Hello Fabien,
> > I doing something wrong? I get an error, in my computer this path does
> not
> > exist.
> > See attached image
> >
> > Regards
> > Gianluigi
> >
> > 2016-12-10 18:19 GMT+01:00 Fabien Bodard :
> >
> >> This is a try to give to the gambas editor a preview side bar like the
> >> one i like on kate.
> >>
> >> It display Bookmarks and modified lines too and separators.
> >>
> >>
> >> Feel free to give me your opinions
> >>
> >>
> >>
> >> --
> >> Fabien Bodard
> >>
> >> 
> >> --
> >> 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
>
> 
> --
> 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