[Gambas-user] XML string = UTF-8?

2015-12-18 Thread Rolf-Werner Eilert
Is an XML file like the ones which are produced by File.Save and
RichTextArea a UTF-8 file?

Do I have to handle the string with the String class, or is it plain
ASCII and has to be handled with ordinary Mid, Left, InStr?

Regards
Rolf


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XML string = UTF-8?

2015-12-18 Thread Fabien Bodard
you can ensure you are in plain text by using convertion functions:


http://gambaswiki.org/wiki/lang/conv

2015-12-18 10:34 GMT+01:00 Rolf-Werner Eilert :
>
> Am 18.12.2015 10:24, schrieb Tobias Boege:
>> On Fri, 18 Dec 2015, Rolf-Werner Eilert wrote:
>>> Is an XML file like the ones which are produced by File.Save and
>>> RichTextArea a UTF-8 file?
>>>
>>> Do I have to handle the string with the String class, or is it plain
>>> ASCII and has to be handled with ordinary Mid, Left, InStr?
>>>
>> It is possible that a random XML file contains UTF-8 characters: try opening
>> LibreOffice, typing some umlauts and saving the file. Use unzip on the .odt
>> to get the content.xml file. Then
>>
>>$ file -i content.xml
>>
>> shows that it is UTF-8 encoded XML. So you are on the safe side with the
>> String class.
>>
>> Regards,
>> Tobi
>>
> "On the safe side" - that is what I wanted to know. Thank you! :)
>
> Rolf
>
>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XML string = UTF-8?

2015-12-18 Thread Tobias Boege
On Fri, 18 Dec 2015, Rolf-Werner Eilert wrote:
> Is an XML file like the ones which are produced by File.Save and
> RichTextArea a UTF-8 file?
> 
> Do I have to handle the string with the String class, or is it plain
> ASCII and has to be handled with ordinary Mid, Left, InStr?
> 

It is possible that a random XML file contains UTF-8 characters: try opening
LibreOffice, typing some umlauts and saving the file. Use unzip on the .odt
to get the content.xml file. Then

  $ file -i content.xml

shows that it is UTF-8 encoded XML. So you are on the safe side with the
String class.

Regards,
Tobi

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

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] XML string = UTF-8?

2015-12-18 Thread Rolf-Werner Eilert

Am 18.12.2015 10:24, schrieb Tobias Boege:
> On Fri, 18 Dec 2015, Rolf-Werner Eilert wrote:
>> Is an XML file like the ones which are produced by File.Save and
>> RichTextArea a UTF-8 file?
>>
>> Do I have to handle the string with the String class, or is it plain
>> ASCII and has to be handled with ordinary Mid, Left, InStr?
>>
> It is possible that a random XML file contains UTF-8 characters: try opening
> LibreOffice, typing some umlauts and saving the file. Use unzip on the .odt
> to get the content.xml file. Then
>
>$ file -i content.xml
>
> shows that it is UTF-8 encoded XML. So you are on the safe side with the
> String class.
>
> Regards,
> Tobi
>
"On the safe side" - that is what I wanted to know. Thank you! :)

Rolf


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.876=L21haW4-

PICCORO LENZ MCKAY reported a new bug.

Summary
---

please return the edit menu to root (cut, copy, paste)

Type : Request
Priority : High
Gambas version   : 3.8
Product  : Development Environment


Description
---

currently in editor the editing menu to cut, copy or paste a portion of text 
are in a submenu..

please can return these items to the root menu event in a sub menu?

for fast-development are more satisfactory! especial for users of other 
languages!


System information
--

[System]
Gambas=3.8.3
OperatingSystem=Linux
Kernel=4.2.0-0.bpo.1-686-pae
Architecture=x86
Distribution=debian 8.2
Desktop=MATE
Theme=Gtk
Language=es_VE.UTF-8
Memory=1688M

[Libraries]
Cairo=libcairo.so.2.11400.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.8.13
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.404.0
GTK+2=libgtk-x11-2.0.so.0.2400.25
GTK+3=libgtk-3.so.0.1400.5
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.46.0.0
QT4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-U8DbCgTacQ,guid=29801e1e7e816be3b9ee8baa567184bd
DESKTOP_SESSION=mate
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=mate
GDM_LANG=es_VE.utf8
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=2850
GPG_AGENT_INFO=/run/user/1001/keyring/gpg:0:1
HOME=
LANG=es_VE.UTF-8
LANGUAGE=es_VE:es
LOGNAME=
MATE_DESKTOP_SESSION_ID=this-is-deprecated
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1098,unix/:/tmp/.ICE-unix/1098
SHELL=/bin/bash
SSH_AGENT_PID=1121
SSH_AUTH_SOCK=/run/user/1001/keyring/ssh
TZ=:/etc/localtime
USER=
XAUTHORITY=/.Xauthority
XDG_CURRENT_DESKTOP=MATE
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/
XDG_RUNTIME_DIR=/run/user/1001
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_ID=4
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_VTNR=7



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.876=L21haW4-

Comment #1 by Moviga TECHNOLOGIES:

If you want to be fast, why do you not use Ctrl+C/V/X?



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread ML
Gerardo,

You may use the "standard" keyboard shortcuts instead:

*COPY -> Ctrl-C**
**PASTE -> Ctrl-V**
**CUT -> Ctrl-X*

Or the "more international" shortcuts (because they do not depend on
specific letters); I use these since the old QuickBasic 4.5 (DOS) days:

*COPY -> Ctrl-Ins**
**PASTE -> Shift-Ins**
**CUT -> Shift-Del*

If I remember correctly, they work in both, code and form editors in
Gambas. I hardly use the Ctrl-X/C/V combinations, ever!

Regards,

*On 2015-12-18 10:26, bugtrac...@gambaswiki.org wrote:*
> http://gambaswiki.org/bugtracker/edit?object=BUG.876=L21haW4-
>
> PICCORO LENZ MCKAY reported a new bug.
>
> Summary
> ---
> please return the edit menu to root (cut, copy, paste)
> Type : Request
> Priority : High
> Gambas version   : 3.8
> Product  : Development Environment
>
>
> Description
> ---
> currently in editor the editing menu to cut, copy or paste a portion
> of text are in a submenu..
> please can return these items to the root menu event in a sub menu?
> for fast-development are more satisfactory! especial for users of
> other languages!
>
> System information
> --
> [System]
> Gambas=3.8.3
> OperatingSystem=Linux
> Kernel=4.2.0-0.bpo.1-686-pae
> Architecture=x86
> Distribution=debian 8.2
> Desktop=MATE
> Theme=Gtk
> Language=es_VE.UTF-8
> Memory=1688M
>
> [Libraries]
> Cairo=libcairo.so.2.11400.0
> Curl=libcurl.so.4.3.0
> DBus=libdbus-1.so.3.8.13
> GStreamer=libgstreamer-0.10.so.0.30.0
> GStreamer=libgstreamer-1.0.so.0.404.0
> GTK+2=libgtk-x11-2.0.so.0.2400.25
> GTK+3=libgtk-3.so.0.1400.5
> OpenGL=libGL.so.1.2.0
> Poppler=libpoppler.so.46.0.0
> QT4=libQtCore.so.4.8.6
> SDL=libSDL-1.2.so.0.11.4
>
> [Environment]
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-U8DbCgTacQ,guid=29801e1e7e816be3b9ee8baa567184bd
> DESKTOP_SESSION=mate
> DISPLAY=:0.0
> GB_GUI=gb.qt4
> GDMSESSION=mate
> GDM_LANG=es_VE.utf8
> GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
> GIO_LAUNCHED_DESKTOP_FILE_PID=2850
> GPG_AGENT_INFO=/run/user/1001/keyring/gpg:0:1
> HOME=
> LANG=es_VE.UTF-8
> LANGUAGE=es_VE:es
> LOGNAME=
> MATE_DESKTOP_SESSION_ID=this-is-deprecated
> PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
> PWD=
> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1098,unix/:/tmp/.ICE-unix/1098
> SHELL=/bin/bash
> SSH_AGENT_PID=1121
> SSH_AUTH_SOCK=/run/user/1001/keyring/ssh
> TZ=:/etc/localtime
> USER=
> XAUTHORITY=/.Xauthority
> XDG_CURRENT_DESKTOP=MATE
> XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/
> XDG_RUNTIME_DIR=/run/user/1001
> XDG_SEAT=seat0
> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> XDG_SESSION_ID=4
> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> XDG_VTNR=7
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #855: [gb.report2] blank report, use more than 90% resource CPU

2015-12-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.855=L21haW4-

Comment #8 by Shane POWELL:

Just checked only a problem when running in ide



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Question on editing database tables

2015-12-18 Thread zainudin ahmad
This trick(0=0) worked for sqlite

"0=0 ORDER BY Code, Date, Amount"

May be any better idea ?

On Wed, Dec 16, 2015 at 10:24 PM,  wrote:

> Hi all,
>
>
> I have used editing on tables multiple times like this for example:
>
> rResultEdit = $hConn.Edit("KasAanvullingen", "KassaCode = &1 AND Time =
> &2 AND Date = &3", sKasAanvulCode, rResultAanvul!Time,
> rResultAanvul!Date)
>
> Now I'm facing a harder one:
> I have this table and it needs to be edited, but for that records need
> to be ordered based on code, date and amount
> I tried this:
>
> rResultFact = $hConn.Edit("ICDagResFactNee", "ORDER BY Code, Date,
> Amount")
>
> but that results in an empty result. Guess the second argument only
> replaces a WHERE
>
> Now, this order is very important in this case as the proper records
> need to be edited and the default order of the table is not the desired
> one and will lead to data integrity problems when editing as is.
> Can one use DB.Edit so the result is ordered in a certain desired
> manner?
>
>
> Thanks,
>
> gbWilly
>
>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #855: [gb.report2] blank report, use more than 90% resource CPU

2015-12-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.855=L21haW4-

Comment #9 by PICCORO LENZ MCKAY:

any tried with a version of qt4 different from 4.8.X, maybe with 4.7.X series 
or older?

some of the epoted bugs of some components i cannot reproduce (mean works for 
me) using qt4 4.7.X or 4.6.3+ in my own compilation of gambas 3.6



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread adamn...@gmail.com
On Fri, 18 Dec 2015 23:25:00 -0430
PICCORO McKAY Lenz  wrote:

> due in the DEL XPS touchscreen are more practice the hand over he
> keyboard.. (not the mose... i not have mouse either keyboard in this
> good laptop)
> 
> my keyboard are 100% in the screen and key combination are tedious!
> 
> 

Give me strength! 

Nope.

Piccoro,
Fair crack of the whip, sunshine. Youse are gunna really have to come to a 
better grip of this Engrish.
I been spiklka de leng for about 60+ years, but that one has really got me 
buggered.

As far as I know, If you marinade your mose in Calvados for a few days it may 
become a bit more tender.


(and by the way, may you and yours have a great festive season, no matter which 
deity ... 
-- 
B Bruen 

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.876=L21haW4-

Comment #2 by PICCORO LENZ MCKAY:

due in the DEL XPS touchscreen are more practice the hand over he
keyboard.. (not the mose... i not have mouse either keyboard in this
good laptop)

my keyboard are 100% in the screen and key combination are tedious!



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread PICCORO McKAY Lenz
due in the DEL XPS touchscreen are more practice the hand over he
keyboard.. (not the mose... i not have mouse either keyboard in this
good laptop)

my keyboard are 100% in the screen and key combination are tedious!



2015-12-18 9:39 GMT-04:30, bugtrac...@gambaswiki.org
:
> http://gambaswiki.org/bugtracker/edit?object=BUG.876=L21haW4-
>
> Comment #1 by Moviga TECHNOLOGIES:
>
> If you want to be fast, why do you not use Ctrl+C/V/X?
>
>
>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


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

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Gambas Bug Tracker] Bug #876: please return the edit menu to root (cut, copy, paste)

2015-12-18 Thread Fabien Bodard
Just modify the editor toolbar to have the needed buttons accessibles. All
the toolbar are customizable by users just by right click on it.
Le 19 déc. 2015 05:44, "adamn...@gmail.com"  a écrit :

> On Fri, 18 Dec 2015 23:25:00 -0430
> PICCORO McKAY Lenz  wrote:
>
> > due in the DEL XPS touchscreen are more practice the hand over he
> > keyboard.. (not the mose... i not have mouse either keyboard in this
> > good laptop)
> >
> > my keyboard are 100% in the screen and key combination are tedious!
> >
> >
>
> Give me strength!
>
> Nope.
>
> Piccoro,
> Fair crack of the whip, sunshine. Youse are gunna really have to come to a
> better grip of this Engrish.
> I been spiklka de leng for about 60+ years, but that one has really got me
> buggered.
>
> As far as I know, If you marinade your mose in Calvados for a few days it
> may become a bit more tender.
>
>
> (and by the way, may you and yours have a great festive season, no matter
> which deity ...
> --
> B Bruen 
>
>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user