Re: [Gambas-user] gb.Text, gb.case
> Benoit, > > using replace, I used gb.case as per docs, gambas bauked, but gb.text does > work as case insensitive replace. > > ?? > > Regards > > Richard > Both are deprecated. Now you must use gb.IgnoreCase instead. -- Benoît Minisini -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] SHELL command with python does not execute!
Benoît Minisini ha scritto: >> > > Query to Benoit ... is there a way to define 'NOT NULL' entry via > gambas code ? > You have to define the default value. What's the point of having a mandatory field (NOT NULL) without a default value? >>> just say i want something ... but i can't say what because there is >>> not default rules. >>> and then advise the user that he need to say someting by himself >>> >>> for example my age can't be 0 >>> >> A default value does not imply that a value is required, and a "not >> null" clause does not imply a default value. >> >> > > Mmm. You may be right. :-) But that needs some change in the gb.db component > and in all database drivers. > > A general idea could be to add a further optional argument "Flags". Those bit-mask flags could have a name like "db.bNotNull" for flags valid for every database, and names like MySql.bAutoincrement, for example, for flags only valid for certain databases. If, in code, someone uses a feature with the wrong backend, an error is generated by the compiler (unknown symbol). The definition of a field would be, for example: htable.Fields.Add("AFM", MySql.SpecialInteger, 18, db.bNotNull + MySql.bAutoIncrement) Just an idea. Regards, Doriano -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] SHELL command with python does not execute!
> Benoît Minisini ha scritto: > > Query to Benoit ... is there a way to define 'NOT NULL' entry via > > gambas code ? > > You have to define the default value. What's the point of having a > mandatory field (NOT NULL) without a default value? > >>> > >>> just say i want something ... but i can't say what because there is > >>> not default rules. > >>> and then advise the user that he need to say someting by himself > >>> > >>> for example my age can't be 0 > >> > >> A default value does not imply that a value is required, and a "not > >> null" clause does not imply a default value. > > > > Mmm. You may be right. :-) But that needs some change in the gb.db > > component and in all database drivers. > > A general idea could be to add a further optional argument "Flags". > Those bit-mask flags could have a name like "db.bNotNull" for flags > valid for every database, and names like MySql.bAutoincrement, for > example, for flags only valid for certain databases. If, in code, > someone uses a feature with the wrong backend, an error is generated by > the compiler (unknown symbol). The definition of a field would be, for > example: > > htable.Fields.Add("AFM", MySql.SpecialInteger, 18, db.bNotNull + > MySql.bAutoIncrement) > > Just an idea. > Regards, > Doriano > The gb.db interface is database independent, so no database specific flag please. And if there are only one flag (Not Null), auto-increment being just a special integer field, I will add just an extra boolean argument, after the default value. Regards, -- Benoît Minisini -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] How to print Greek
I am using a parallel printer Panasonic KX-P1150 (dot printer). The printer is at /dev/lp0 and prints very well in English. In Greek it only shows some strange characters like "road crossings" and crosses with other symbols. I have tried to use all the font options of the printer that can be adjusted from the front panel: 0.PROGRAM 1.Courier 2.Roman 3.Bold PS 4.Sans Serif The 1st of them is probably for the Program and the other are as described ! All of the options print the strange crossings in Greek and everything OK in English. Is there any solution? Last year I used the same printer with a Visual Basic Program and it didn't print Greek at all (the same road crossings). The printing code is: hPrinter = OPEN "/dev/lp0" FOR OUTPUT hPrinter.EndOfLine = gb.Windows PRINT #hPrinter, "Afixi" & prosorinoAA & " " & tEpitheto.Text -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Help file download and F1
sorry gambas package are more older on ubuntu you are using a source compiled version normally it work 2010/2/11 Fabien Bodard : > installed from packages ? > Yep, compiled the source. as far as i remember everything went well with no errors and no warnings Kim -- View this message in context: http://old.nabble.com/Help-file-download-and-F1-tp27542391p27568747.html Sent from the gambas-user mailing list archive at Nabble.com. -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] PDF example
Hi List, I wondered if anyone was using /maintaining the pdf code from the pdf example, as there are a number of problems with it and missing features. I've emailed the original author, but the info at top of the file is quite old (2007) and Daniel says he is not able to contribute anymore. Any info appreciated. I'd be happy to have a go at maintaining it but would need some help as I'm not that clever with anything but basic stuff. Richard -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] How to print Greek
Vassili, You might have to convert the Greek Unicode characters into ANSI or ASCII (not sure how your printer works I haven't used a parallel printer in a while) in order to see some Greek characters printed out. if you can verify that the printer is setup correctly and an ascii plain text with Greek characters prints out fine from your linux box then it should be just a matter of unicode to ASCII conversion Hope this helps Regards, Dimitris On Fri, Feb 12, 2010 at 12:45 PM, Vassilis K wrote: > I am using a parallel printer Panasonic KX-P1150 (dot printer). > > The printer is at /dev/lp0 and prints very well in English. > > In Greek it only shows some strange characters like "road crossings" and > crosses with other symbols. > I have tried to use all the font options of the printer that can be > adjusted from the front panel: > > 0.PROGRAM > 1.Courier > 2.Roman > 3.Bold PS > 4.Sans Serif > > The 1st of them is probably for the Program and the other are as > described ! > > All of the options print the strange crossings in Greek and everything > OK in English. > Is there any solution? > > Last year I used the same printer with a Visual Basic Program and it > didn't print Greek at all (the same road crossings). > > The printing code is: > > hPrinter = OPEN "/dev/lp0" FOR OUTPUT > hPrinter.EndOfLine = gb.Windows > PRINT #hPrinter, "Afixi" & prosorinoAA & " " & > tEpitheto.Text > > > > > -- > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user