Re: [Gambas-user] Gambas2 IDE preferences & System Language

2010-11-20 Thread Fabien Bodard
2010/11/20 Phạm Quang Dương : > Hi, > > My system language is English. I change the system language (re-login) to > test my program GUI (but keep all my user's folders name (Desktop, Music > ...) in English), and I lost Gambas2 IDE preferences (like color, font ... > of the IDE editor). But when I

Re: [Gambas-user] Edit XML

2010-11-20 Thread Mauricio Baeza
El sáb, 20-11-2010 a las 13:54 +0100, Caveat escribió: > Hi Mauricio > > Sorry for the late reply, I was doing a lot of thinking. :-) > > Perhaps you might like something along these lines: > > XMLRewriter is a class in a little project I've been working on. The > idea of XMLRewriter is that i

[Gambas-user] ODBC and MS SQL 2000 table existence test issue

2010-11-20 Thread Ian Roper
Greetings all, I'm asking this question on behalf of a member of http://www.gambasforum.com who can't access this mailing list as it's blocked in his country for some reason ? The issue he is trying to resolve is: Using an ODBC connection to a MS SQL 2000 instance. He can connect. He can list t

[Gambas-user] Gambas2 IDE preferences & System Language

2010-11-20 Thread Phạm Quang Dương
Hi, My system language is English. I change the system language (re-login) to test my program GUI (but keep all my user's folders name (Desktop, Music ...) in English), and I lost Gambas2 IDE preferences (like color, font ... of the IDE editor). But when I change system language back to English, e

Re: [Gambas-user] WAIT command questions.

2010-11-20 Thread Demosthenes Koptsis
> > The SUBs event_read() such "PUBLIC SUB MySerialPort_Read()" in example > > are raised recursively again and again if WAIT is called from them > > because they are part of event loop or because event loop call them > > again and again? > How do they work what? > i speak about read events the

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Demosthenes Koptsis
Great! it's easy! Thanks very much! On Sat, 2010-11-20 at 18:30 +0200, Jussi Lahtinen wrote: > because lsr processes 32 bits of the short -9 and not 64 bits of the > > long binary number? > > > > Yes, -9 is considered as short. > Try: > ? bin(lsr(clng(-9),1), 64) > 01

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
because lsr processes 32 bits of the short -9 and not 64 bits of the > long binary number? > Yes, -9 is considered as short. Try: ? bin(lsr(clng(-9),1), 64) 0011 Jussi -

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Demosthenes Koptsis
but why a shift to right of ? bin(-9, 64) 0111 is not 0011 and it is ? bin(lsr(-9,1), 64) 0011

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Demosthenes Koptsis
hm, ok... ? bin(-9, 64) 0111 ? bin(lsr(-9,1), 64) 0011 On Sat, 2010-11-20 at 17:58 +0200, Jussi Lahtinen wrote: > ? bin(Lsr(-9,1),32) -- Regards, Demosthenes Koptsis. --

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
Argh... no. Try this: ? bin(Lsr(-9,1),32) 0011 Jussi On Sat, Nov 20, 2010 at 17:55, Jussi Lahtinen wrote: > > PRINT "Bin(-9):"; Bin(-9) >> PRINT "Bin(Lsl(-9, 1)):"; Bin(Lsl(-9, 1)) >> PRINT "Bin(Lsr(-9, 1)):"; Bin(Lsr(-9, 1)) >> >> Bin(-9) >> :111

Re: [Gambas-user] Bit manipulation functions

2010-11-20 Thread Jussi Lahtinen
> PRINT "Bin(-9):"; Bin(-9) > PRINT "Bin(Lsl(-9, 1)):"; Bin(Lsl(-9, 1)) > PRINT "Bin(Lsr(-9, 1)):"; Bin(Lsr(-9, 1)) > > Bin(-9) > :0111 > > Bin(Lsl(-9,1)):11101110 > Bin(L

[Gambas-user] Bit manipulation functions

2010-11-20 Thread Demosthenes Koptsis
Good evening to all, i test Lsr with a negative short and i get i thing wrong results. PRINT "Bin(-9):"; Bin(-9) PRINT "Bin(Lsl(-9, 1)):"; Bin(Lsl(-9, 1)) PRINT "Bin(Lsr(-9, 1)):"; Bin(Lsr(-9, 1)) Bin(-9) :0111 Bin(L

Re: [Gambas-user] About help and arrays and variables

2010-11-20 Thread Demosthenes Koptsis
hi, i have gambas2-2.21 rev3300 > Now my examples tell me if i am right... > > Dynamic arrays - > 'locale scope in a SUB > DIM aInt2 AS Integer[3]'this is a dynamic array > DIM aInt2 AS Integer[] = [1, 2, 3] 'another dynamic array > > 'global scope in

Re: [Gambas-user] Edit XML

2010-11-20 Thread Caveat
Hi Mauricio Sorry for the late reply, I was doing a lot of thinking. :-) Perhaps you might like something along these lines: DIM rewriter AS NEW XMLRewriter ' Read the original input XML (See http://pastebin.com/aR11N5uc) rewriter.parseInput(User.home &/ "Heroes.xml") ' All existing Text