Re: [Gambas-user] About financial program in Gambas

2009-12-16 Thread Jean-Yves F. Barbier
Ricardo Díaz Martín a écrit : > Hi to all, > > I'm use gambas to write ERP applications. At the first, I got the same > problem but I decided to use long integer to save currency values. First > rigth two digits are always showed to users as decimal values. > > I'm rewrited all my apps from windo

Re: [Gambas-user] Financial program

2009-12-15 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : >>> A strongness inherited from pascal... I gave a look to many, countless >>> >> hmm, I don't think Pascal can define vars as temperature[-10, +50] >> > What do you mean precisely? Can you define the properties of such variable? means: var name of type = temper

Re: [Gambas-user] Financial program

2009-12-15 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : ... >> > A strongness inherited from pascal... I gave a look to many, countless hmm, I don't think Pascal can define vars as temperature[-10, +50] > languages, and only few met my own requirements - strong typization, > good compiler checks, overloading and, of cou

Re: [Gambas-user] Bambas <---> Python

2009-12-15 Thread Jean-Yves F. Barbier
Pino Zollo a écrit : >> I lost too much time with things like that and now strongly consider >> to interface all calculation to Python and only keep GB as a GUI. > >> This shouldn't add that many things to the system: as of Linux, Python >> is a std install, as of Debian, this will only require a

Re: [Gambas-user] Financial program

2009-12-15 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : >> Don't burry Cobol too fast: for banking *only*, this year will be around >> 5 milliards Cobol written lines (progression is an avg of 14% per year). >> > This is a proof that well designed things get a long life. Ok, cobol was > invented exactly for that purpose -

Re: [Gambas-user] Financial program

2009-12-15 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : ... > while only 2% of them want to use financial capabilities. So, that 2% > must live with a language not very suitable for accounting". "Use long > integers, divide them, use format$()..." is the reply from Benoit. Does > someone remember the Cobol? With a simple de

Re: [Gambas-user] Financial program

2009-12-14 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : ... > I think you are mixing a lot of different things: > > - When storing a amount of money in memory, you store it in a Long integer in > 1/10th of cents. For example, storing 1234,56€ will be stored as 123456 I'm gonna test that, but it implies more load of the DB se

Re: [Gambas-user] Financial program

2009-12-14 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Benoît Minisini a écrit : Fabien Bodard a écrit : > you have Laurux at http://laurux.fr/ > > but the code is not perfect has it was on the start a code learning > programme.. but at the end it's a true accounting program... in french > (Gb2) >>>

Re: [Gambas-user] Financial program

2009-12-14 Thread Jean-Yves F. Barbier
Kari Laine a écrit : > Hi, > > thanks > > On Mon, Dec 14, 2009 at 6:03 PM, Fabien Bodard wrote: >> you have Laurux at http://laurux.fr/ >> >> but the code is not perfect has it was on the start a code learning >> programme.. but at the end it's a true accounting program... in french >> (Gb2) >>

Re: [Gambas-user] Financial program

2009-12-14 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Fabien Bodard a écrit : >>> you have Laurux at http://laurux.fr/ >>> >>> but the code is not perfect has it was on the start a code learning >>> programme.. but at the end it's a true accounting program... in french >>> (Gb2) >> BTW, do you plan to have an equivalent of

Re: [Gambas-user] Financial program

2009-12-14 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > you have Laurux at http://laurux.fr/ > > but the code is not perfect has it was on the start a code learning > programme.. but at the end it's a true accounting program... in french > (Gb2) BTW, do you plan to have an equivalent of postgresql or python decimal(n,n) into

Re: [Gambas-user] SVN

2009-12-11 Thread Jean-Yves F. Barbier
Norarg a écrit : ... > First of all, thanks, that is helpful. > > In fact I am Norwegian, but live here for about a year now - I'll never Hey, welcome to our friends from the land of horny smoked salmons! > go back to Europe to live there - here everything is set back 30-40 > years (country-si

Re: [Gambas-user] Minimum Size of a Form

2009-12-11 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > ok Error from mine :) ... but for one part the min size is fixed at > the desing but only for windows with ToolBox option at true O_o: I checked Toolbox and my CPU climbed up to 100% (gbx2), starting the application but not showing anything!? -- Trouble always comes at

Re: [Gambas-user] SVN

2009-12-11 Thread Jean-Yves F. Barbier
Norarg a écrit : PLS avoid cross-posting: open a new post by adressing to > I would like to try out newer releases of Gambas, fox. 3.0. I had some > problems with other releases in the past - in the end gambas did not > work at all. I have tried to figure it out, but did not found what I am

Re: [Gambas-user] Minimum Size of a Form

2009-12-11 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > ok Error from mine :) ... but for one part the min size is fixed at > the desing but only for windows with ToolBox option at true zarb, it would be a good idea to also have min X,Y (not especially linked to a toolbar) > And in gambas3 with windows.type at Utility -- If

Re: [Gambas-user] Minimum Size of a Form

2009-12-11 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > in gambas 2 the minimum size of a form is set by the size given at the > desing... it's only true if it is a fixed sized, otherwise you can shrink it as you want... -- It's the Magic that counts. -- Larry Wall on Perl's apparent ugliness -

Re: [Gambas-user] qt4 Font question

2009-12-09 Thread Jean-Yves F. Barbier
richard terry a écrit : > more questions about qt4. > > Font sizes seem different to qt3, this may be KDE and nothing to do with qt4, > but dosn't happen like this in qt3. > > When I use a font dialog Arial size 9 is too small for my app. If I go to 10, > then it is too large. > > Under QT3 t

Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-05 Thread Jean-Yves F. Barbier
Ron a écrit : ... > runned valgrind tool for a while. > > And I got a rather strange winner, I got 3 milion calls of _add_char in > gb_error.c > > Some debug code hanging around or something like that? > > See attached valgrind file. May be that's a source for what I noticed (Debian sid, XP2

Re: [Gambas-user] Translated project in Gambas

2009-12-04 Thread Jean-Yves F. Barbier
Alessandro Rinaldi a écrit : > Hello, > I'm new into the ML: my name is Alessandro, I'm 16 and I'm from Italy. > I'm developing a radio automation software for Linux. Its scope is no > to be more powerful than others, but just to be simple and useable by > a human :) > I translated the project usin

Re: [Gambas-user] Gambas Remotly Debug

2009-12-03 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : > > Your new threads are never attached to another non-related thread when I > receive them. Why? I use KMail: do other people see the same thing than me? I use idedove (thunderbird) and see them ok (however he's cross-posting...) -- coitus interruptus, n: A

Re: [Gambas-user] Xview selection cursor info

2009-12-01 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > si : > > PUBLIC SUB OBS_Open() > > ' IF IsNull($sfrmNouveau) THEN Error.Raise("Vous devez définir un > formulaire Nouveau") > ' IF IsNull($sModifier) THEN Error.Raise("Vous devez définir un > formulaire Modifier") > IF IsNull($hGrid.DataField) THEN ERROR.Rais

Re: [Gambas-user] Xview selection cursor info

2009-12-01 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : ... > simple :) > GridView1.Row = 0 > > (it work I've tested it Already tested: don't work not on your code :( -- Repartee is something we think of twenty-four hours too late. -- Mark Twain

Re: [Gambas-user] Xview selection cursor info

2009-12-01 Thread Jean-Yves F. Barbier
as row-into-the-visible-area (indian cursor) > Voila Jean-Yves Thanks Fabien > 2009/11/30 Jean-Yves F. Barbier <12u...@gmail.com>: >> Hi, >> >> On a tableview, I need: >> * Make the selection cursor to appear on 1st line at opening, >> * Selection curs

[Gambas-user] Xview selection cursor info

2009-11-30 Thread Jean-Yves F. Barbier
Hi, On a tableview, I need: * Make the selection cursor to appear on 1st line at opening, * Selection cursor's position (row) into the grid, * 1st & last rows visible into the grid I how could I get that? -- So, is the glass half empty, half full, or just twice as large as it needs to be? ---

Re: [Gambas-user] db retrieve

2009-11-26 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : ... > > You can access result fields by index too: > > resQry[0], reqQry[1], ... Haaa this sounds very good too :) -- Bringing your mate to a convention is like taking a game warden hunting.

[Gambas-user] db retrieve

2009-11-26 Thread Jean-Yves F. Barbier
Hi, How can I retrieve a "field" returned by a stored procedure? SP: CREATE OR REPLACE FUNCTION common.testbytea_sel(Pid OID) RETURNS TEXT AS $$ DECLARE MyPic BYTEA; MyStringTEXT; BEGIN SELECT pic INTO MyPic FROM common.testbytea WHERE id = Pid;

Re: [Gambas-user] pb loading an picture into a string

2009-11-26 Thread Jean-Yves F. Barbier
Charlie Reinl a écrit : ... Thanks Charlie, I'll try it. -- The world really isn't any worse. It's just that the news coverage is so much better. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 3

Re: [Gambas-user] RAD PB

2009-11-26 Thread Jean-Yves F. Barbier
Jean-Yves F. Barbier a écrit : > Hi, > > I've got something strange: when I try to move my cursor with > the mouse pointer it selects text between the current cursor > place and the place I selected (even after a restart of gambas RAD) It has gone (?),

[Gambas-user] RAD PB

2009-11-26 Thread Jean-Yves F. Barbier
Hi, I've got something strange: when I try to move my cursor with the mouse pointer it selects text between the current cursor place and the place I selected (even after a restart of gambas RAD) -- small, adj.: Is it in yet? --

Re: [Gambas-user] pb loading an picture into a string

2009-11-26 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : ... Ok, I found what was wrong: as there is no conversion between a string and a picture, I must write the string to a file and read it as a picture, the string was written as of WRITE #INstream, OUTstring, String.Len(OUTstring) instead of: WRITE #INstre

Re: [Gambas-user] pb loading an picture into a string

2009-11-26 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : ... Of that I'm aware Doriano, THE PB is I need each and every byte of the picture in order to cast it to a Base64 to send it to postgresql. Or just escape some chars, or whatever processing function I'll further need; because I know there are base64 functions in gb.xml

[Gambas-user] pb loading an picture into a string

2009-11-26 Thread Jean-Yves F. Barbier
Hi, Here is a (very big) PB: ... ' Get picture /path/name.ext INfile = FileChooser1.SelectedPath FileSize = Stat(FileChooser1.SelectedPath).Size ' Read file into a string INstream = OPEN INfile FOR INPUT ' READ #INstream, INstring, Lof(INstream) ' NA: Returns 238 bytes RE

Re: [Gambas-user] problem with a file

2009-11-25 Thread Jean-Yves F. Barbier
nospam.nospam.nos...@gmail.com a écrit : > Jean-Yves F. Barbier wrote: > >> Arrgh > > I wish I had a dollar for every time gambas has done that to me. > > Perhaps you might post the stored procedure. why? The string sent is the same as the one retrieved. My PB&#

Re: [Gambas-user] problem with a file

2009-11-25 Thread Jean-Yves F. Barbier
Jean-Yves F. Barbier a écrit : > Jean-Yves F. Barbier a écrit : > ... >> Could somebody tell me why this happens? > > I've the same problem with another file; so now I suspect the String > to be utf-8 and to throw me out before the end of the conversion > because o

Re: [Gambas-user] problem with a file

2009-11-25 Thread Jean-Yves F. Barbier
Jean-Yves F. Barbier a écrit : ... > Could somebody tell me why this happens? I've the same problem with another file; so now I suspect the String to be utf-8 and to throw me out before the end of the conversion because of an odd combination of bytes. O_o SWELL: TextStr = Conv(TextStr

[Gambas-user] problem with a file

2009-11-25 Thread Jean-Yves F. Barbier
Hi, I read an .png file, transform it into Base64, write it to a PG DB table through a stored procedure (as TEXT), and retrieve it. My PB is: the original file length is 298 Bytes and my reading is 234 and I don't know why (whatever method I use instead od Base64, file's always truncated.) Her

Re: [Gambas-user] base64 encoding/decoding

2009-11-25 Thread Jean-Yves F. Barbier
Jean-Yves F. Barbier a écrit : > Hi, > > I saw that gb.xml has base64 but there's no docs, does somebody > have written encoding/decoding routines for strings? Forget it: I find a pure Gambas one -- After all, all he did was string together a lot of old, well

[Gambas-user] base64 encoding/decoding

2009-11-24 Thread Jean-Yves F. Barbier
Hi, I saw that gb.xml has base64 but there's no docs, does somebody have written encoding/decoding routines for strings? -- Really?? What a coincidence, I'm shallow too!! -- Let Crystal Reports handle the reporting -

Re: [Gambas-user] escape a picture

2009-11-24 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Benoît Minisini a écrit : Hi, How can I escape a picture in order to insert it into a BYTEA postgresql data field? >>> Normally, if the postgresql field datatype is BYTEA, the gb.db component >>> will see it as a blob. >>> >>> Let's suppose the field

Re: [Gambas-user] escape a picture

2009-11-24 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Benoît Minisini a écrit : Hi, How can I escape a picture in order to insert it into a BYTEA postgresql data field? >>> Normally, if the postgresql field datatype is BYTEA, the gb.db component >>> will see it as a blob. >>> >>> Let's suppose the field

Re: [Gambas-user] escape a picture

2009-11-24 Thread Jean-Yves F. Barbier
Charlie Reinl a écrit : ... > http://www.ms-office-forum.net/forum/sitemap/index.php?t-243720.html > > - encode the binary file using base64 and store as TEXT > - is using ADODB.Stream (are there something like that in gambas ) Thanks Charlie -- Q: What does it say on the bottom of Coke ca

Re: [Gambas-user] escape a picture

2009-11-24 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Hi, >> >> How can I escape a picture in order to insert it into a BYTEA >> postgresql data field? >> > > Normally, if the postgresql field datatype is BYTEA, the gb.db component will > see it as a blob. > > Let's suppose the field name is "Picture". You will do: > >

Re: [Gambas-user] escape a picture PS

2009-11-24 Thread Jean-Yves F. Barbier
richard terry a écrit : ... > Note also with gambas. I've raised this with the list/devel/benoit and had no > replies Ducking is never a good answer... -- The proof of the pudding is in the eating. -- Miguel de Cervantes

Re: [Gambas-user] escape a picture PS

2009-11-24 Thread Jean-Yves F. Barbier
richard terry a écrit : ... > Don't forget to commit your transaction > > > sample table: > > CREATE TABLE all_images > ( > pk serial NOT NULL, > image bytea, > deleted boolean, > CONSTRAINT all_images_pkey PRIMARY KEY (pk) > ) > WITH ( > OIDS=FALSE > ); > ALTER TABLE all_images OWNER

Re: [Gambas-user] escape a picture

2009-11-24 Thread Jean-Yves F. Barbier
t anything directly, * I already have a big trigger on this table (ON INSERT) and I don't wanna bloat it (and this wouldn't solve the PB.) So I *really* need to send an escaped string to my procedure. Regards JY > On Wednesday 25 November 2009 05:30:52 Jean-Yves F. Barbier wrot

[Gambas-user] escape a picture

2009-11-24 Thread Jean-Yves F. Barbier
Hi, How can I escape a picture in order to insert it into a BYTEA postgresql data field? -- Cocaine: using tomorrow's energy today. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial.

Re: [Gambas-user] keep forms into a form

2009-11-24 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > 2009/11/24 : ... > So, i think you can try to construct your interface around this idea NO: It don't fit my needs & I don't like the appearance. So, now tell me how I can recover the focus on hidden children-forms (SkipTaskbar = TRUE) I guess users won't use my pr

[Gambas-user] keep forms into a form

2009-11-23 Thread Jean-Yves F. Barbier
Hi, Is there a manner to keep my forms into my main form? other than using a workspace that apparently force children to appear as tabs. And to have them as icons (or anything else) into this main form when minimized? JY -- Every time you manage to close the door on Reality, it comes in throu

Re: [Gambas-user] bug?

2009-11-19 Thread Jean-Yves F. Barbier
Ricardo Díaz Martín a écrit : > Looks like all is ok. Maybe you can try writing Error.Clear() on before of > TRY $DBConn.Open it don't change anything: this time I stripped the DB name and it goes its way to 1st reading and failed (result is unavailable) > I'm not sure if problem is related with

[Gambas-user] wish

2009-11-17 Thread Jean-Yves F. Barbier
Hi, It would be (very) nice to have the possibility to freely format text in ValueBox for I/O (may be the same syntax as in DBase screens). -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-

Re: [Gambas-user] strange behaviour property visible

2009-11-17 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : > It is not strange - it is simply normal. > Screen refresh is done in the main loop (every graphical application > does so, even in other OSes), so you will not see screen changes when > your code is running an event handler. If you really want, you put a > WAIT (may

[Gambas-user] strange behaviour property visible

2009-11-17 Thread Jean-Yves F. Barbier
gb 2.17 debian sid == Hi, I've got something strange: if I don't add a wait line between a visible property and a call, it don't work at all: PUBLIC SUB btnOk_Click() MDB.MyHost = txtbHost.Text MDB.MyDB = txtbDB.Text MDB.MyUsr = txtbLogin.Text MDB.MyPass = txtbPass.Text

[Gambas-user] bug?

2009-11-16 Thread Jean-Yves F. Barbier
Debian sid gb 2.17 == Hi, I've got a module with public string & connection: PUBLIC $DBConn AS NEW Connection PUBLIC MyHost AS String PUBLIC MyDB AS String PUBLIC MyUsr AS String PUBLIC MyPass AS String '- PUBLIC FUNCTION DBConnect() AS Boolean PRINT MyDB

[Gambas-user] use a string as a var

2009-11-15 Thread Jean-Yves F. Barbier
Hi, I'm building a string and I'd like to use this string as a var, how could I do that? myclass = class1 mystr = class1 & "." & class1member res = mystr ' PB: copy 'mystr' into 'res' instead of getting result -- BOFH excuse #51: Cosmic ray particles crashed through the hard disk platter -

Re: [Gambas-user] tags

2009-11-14 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : ... >> This is because Benoît is not working hard enough. >> We could go in together for a pot and buy him ball and chain, also tie him >> to his desk, send him pizzas and have a webcam survey with a buzzer to >> awake him. > > > arf... scarry ! I also saw a transparent

Re: [Gambas-user] tags

2009-11-14 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : ... > I can't see two modes for this. My best thought about compilers is the > Borland Delphi 3 pascal compiler. It compiled something 4000 lines per > second on pentium II, which means that for an average project you didn't > even notice the compiling time. And I nev

Re: [Gambas-user] tags

2009-11-14 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : ... > But back to your problem: why you talked about the Tag property? It > seems to me that that does not gets in so much? because I've got some forms that display data coming from multiple tables, so using Tag property looks like the easiest solution to store schema.

Re: [Gambas-user] tags

2009-11-14 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : ... > You can do the same in gambas, using Object[] or Collection, and > creating a class for every kind of record. I found coll["key"]=value and I think that could do the trick, I'm gonna test this tonite > Unfortunately I don't know them enough to explain to you. But

Re: [Gambas-user] tags

2009-11-14 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > the same but with a collection to share the result the access is also *very* easy: >>> o = Storage(a=1) >>> o.a 1 >>> o['a'] 1 >>> o.a = 2 >>> o['a'] 2 >>> del o.a >>> o.a No

Re: [Gambas-user] tags

2009-11-14 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > the same but with a collection to share the result yes that is my (new) question > 2009/11/14 Doriano Blengino : >> Jean-Yves F. Barbier ha scritto: >>> Doriano Blengino a écrit : >>> >>> >>>> About "reco

Re: [Gambas-user] tags

2009-11-14 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : > About "recover any kind [...] from into a loop", I don't understand. > Perhaps you want to scan all the controls residing on a form - there is > the Controls[] property for that. Or you want to stream out all the Yes you got it Doriano! :D > properties of an

[Gambas-user] tags

2009-11-13 Thread Jean-Yves F. Barbier
Hi, Is it possible to recover any kind of widget's value only from its tag (as far as tags are all numerics 0,1,2...) from into a loop? -- Debian Hint #6: There is no hint #6. Submit a hint today ! -- Let Crystal Report

Re: [Gambas-user] date member order & presentation

2009-11-10 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > 2009/11/10 Jean-Yves F. Barbier <12u...@gmail.com>: >> Hi, >> >> I use a postgresql database, and I need to display dates (in a modified >> TableView) according to DB (ISO: -mm-dd, with separator '-', not '/'),

[Gambas-user] date member order & presentation

2009-11-09 Thread Jean-Yves F. Barbier
Hi, I use a postgresql database, and I need to display dates (in a modified TableView) according to DB (ISO: -mm-dd, with separator '-', not '/'), otherwise it displays 10/11/2009, but waits for an input such as 2009-11-10 when I search. How can I do that? -- A door is what a dog is perpetu

Re: [Gambas-user] PING > Benoît (ServerSocket)

2009-11-06 Thread Jean-Yves F. Barbier
Kad Mann a écrit : ... > > I have the problem on linux and linux alone. Windows has nothing to do > with it. windows might be disturbing the force... ... > Also nothing to do with it. The problem occurred first when a Windows > server was involved, however it has also happened since on a standal

Re: [Gambas-user] PING > Benoît (ServerSocket)

2009-11-05 Thread Jean-Yves F. Barbier
Ron a écrit : > Kad Mann wrote: >> On Thu, 2009-11-05 at 14:45 +0100, Jean-Yves F. Barbier wrote: >> >>> Benoît Minisini a écrit : >>> ... >>> >>>> But if rebooting your Linux server does not make the application work >>>&g

Re: [Gambas-user] screen WxH

2009-11-04 Thread Jean-Yves F. Barbier
Steven James Drinnan a écrit : > use > > Desktop.Height > Desktop.Width Thanks to both of you JY -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your rep

[Gambas-user] screen WxH

2009-11-04 Thread Jean-Yves F. Barbier
Hi, can I get the whole screen width & height without using any maximized form to do that? -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integrati

[Gambas-user] DataSource missing feature

2009-11-04 Thread Jean-Yves F. Barbier
Hi, In a DataSource, I can't use a postgresql notation such as: schema.table The PB is I have multiple tables with same names in different schemas; so how could I reach them? -- You will be dead within a year. -- Let C

[Gambas-user] DataBrowser bugs

2009-11-04 Thread Jean-Yves F. Barbier
gb 2.17 Debian sid qt SQL requests are written, not using intrinsic postgresql 8.4.1 table test( id serial primary key, label varchar(8) not null, date_cre timestamp default now(), date_mod timestamp default NULL, mri_users_cre integer default 1, mri_users_mod integer default NULL, front boo

Re: [Gambas-user] DataView bug?

2009-11-03 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Gambas 2.17 / Debian sid package >> Postgresql 8.4.1 >> gb.qt >> >> Hi, >> >> I made a small test with a DataView; sorting is working for >> all columns except for the primary key one: it _only_ >> restore natural order (1, 2, 3, ..) but don

Re: [Gambas-user] synchronize 2 DataSource

2009-11-03 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Hi, >> >> is it possible to synchronize 2 DataSource onto 2 different forms?: >> I want A to only have a tabular display (such as DataView), and B >> to be the create/modif/delete one (w/ DataControls); so I want B >> to display the selected line in A at opening. >> >

[Gambas-user] synchronize 2 DataSource

2009-11-03 Thread Jean-Yves F. Barbier
Hi, is it possible to synchronize 2 DataSource onto 2 different forms?: I want A to only have a tabular display (such as DataView), and B to be the create/modif/delete one (w/ DataControls); so I want B to display the selected line in A at opening. -- Academicians care, that's who. -

[Gambas-user] DataView bug?

2009-11-03 Thread Jean-Yves F. Barbier
Gambas 2.17 / Debian sid package Postgresql 8.4.1 gb.qt Hi, I made a small test with a DataView; sorting is working for all columns except for the primary key one: it _only_ restore natural order (1, 2, 3, ..) but don't display a reverse order with a second click. B

Re: [Gambas-user] module or class?

2009-11-03 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit : > the difference is simple > > a classe must be instanciate before to be called > > > dim hClass as new MyClass > > hClass.Procedure > > > > -- > > A module is static : > > Module.Proc > > > > But in gambas you can call class proc like with a module if this c

[Gambas-user] module or class?

2009-11-03 Thread Jean-Yves F. Barbier
Hi all, I don't understand very well the difference(s) between these two kinds; doc says if I put a procedure in a module I can call it directly, but in fact I can't: I must call it with its prefix, such as in a class: module.procedure So what's really the difference? JY -- -

Re: [Gambas-user] modules

2009-10-25 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Benoît Minisini a écrit : Hi list, I wonder if it is possible to create modules dependencies in order to automatically load N modules when you only select one? JY >>> You mean, when loading a module at runtime? >> well, both @ runtime and w

Re: [Gambas-user] modules

2009-10-24 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Hi list, >> >> I wonder if it is possible to create modules dependencies in order to >> automatically load N modules when you only select one? >> >> JY >> > > You mean, when loading a module at runtime? well, both @ runtime and when beginning the project when you choo

[Gambas-user] modules

2009-10-24 Thread Jean-Yves F. Barbier
Hi list, I wonder if it is possible to create modules dependencies in order to automatically load N modules when you only select one? JY -- Praise the Lord and pass the ammunition. -- Stephen Coonts, "The Minotaur"

Re: [Gambas-user] packaging

2009-10-05 Thread Jean-Yves F. Barbier
Jorge Carrión a écrit : > I had the same problem. > Solution: > download that package.deb and distribute with your application. Add a little > install.sh who installs both .debs and all is ok. Fortunately, you don't need that under Debian; you have 2 solutions: * For a small number of dependencie

Re: [Gambas-user] gambase and modbus

2009-10-03 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit : ... > I wrote in C, some time ago, an embedded application using modbus on RS-422. > It is not a difficult matter, at least the part I was interested in - my > device acted as a server, and a MMI (a touch screen LCD panel) was > attached to it. Oops, my fault, I forgot

Re: [Gambas-user] gambase and modbus

2009-10-02 Thread Jean-Yves F. Barbier
Werner a écrit : ... > Depends on what you use it for, it's not free for commercial purposes. > > You have propably seen > http://copyleft.free.fr/wordpress/index.php/libmodbus/ Thanks Werner, this look interesting. But AFAIK, GPLv3 & LGPLv3 don't forbid commercial use as far as you provide a me

Re: [Gambas-user] gambase and modbus

2009-10-02 Thread Jean-Yves F. Barbier
Petit Eric a écrit : > find some of my first tool here : > http://www.plcs.net/downloads/index.php?direction=0&order=&directory=Misc > http://www.plcs.net/downloads/index.php?&direction=0&order=&directory=Modicon Ok thanks, but there not much. Anyway, I think I found what I need with OpenScada.

Re: [Gambas-user] gambase and modbus

2009-10-02 Thread Jean-Yves F. Barbier
Mike a écrit : > Jean-Yves F. Barbier wrote: >> Hi folks, >> >> Does anybody have experience (and code) of ModBus driven by Gambas? >> >> JY >> > ASCII or RTU either -- Ea

[Gambas-user] gambase and modbus

2009-10-01 Thread Jean-Yves F. Barbier
Hi folks, Does anybody have experience (and code) of ModBus driven by Gambas? JY -- < Overfiend> well, excellent. I get to tear someone a new asshole. -- in #debian-devel -- Come build with us! The Blac

Re: [Gambas-user] Can't access PostreSQL schemas

2009-09-25 Thread Jean-Yves F. Barbier
José Luis Castro a écrit : > Sorry, Jean-Yves: I have no idea how to do that. Is it necessary? Or -better > answered- when is necessary to declare a "search_path" variable? > Thaks for your help. search_path is a system variable, unique for each role. command to see what's going on is: show sear

Re: [Gambas-user] Can't access PostreSQL schemas

2009-09-25 Thread Jean-Yves F. Barbier
José Luis Castro a écrit : > Hi Benoît. Thanks for your kind answer. > > I must say, however, the database was created and it's maintained using the > application "PGAdmin", so I can say with absolute security that the table > I'm trying to acces has been created, in fact, with a primary key. Also

Re: [Gambas-user] chop project

2009-09-23 Thread Jean-Yves F. Barbier
Charlie Reinl a écrit : > Salut Jean-Yves, > > Poseidon the father of gambas, raised gambas-components for that. > > And that is what I do. My programs are compiled as components, so I can > use them as program, embed then in other programs or just call them from > an other program. > > To unify t

[Gambas-user] chop project

2009-09-22 Thread Jean-Yves F. Barbier
Hi people, I wonder if it is possible to chop a big project into some smaller ones? My only problem is to keep a kinda global class linked to all sub-projects in oder to "pass" parms from one sub-project to another; is there a manner to do that or not? JY -- Life is like an onion: you peel it o

Re: [Gambas-user] Arithmetic failure in project

2009-09-21 Thread Jean-Yves F. Barbier
Horst Günther Burkhardt III a écrit : > I'm building a basic flash exposure calculator with floats and extremely > precise arithmetic, to benefit those of us who happen to list > photography among our hobbies ;) > > Unfortunately, I've run into several issues with the code. > > The foremost of w

Re: [Gambas-user] Balloon

2009-09-15 Thread Jean-Yves F. Barbier
Stefano Palmeri a écrit : ... > This is a little example that shows the problem on my box. > > Gambas 2.15.1 > KDE 3.5.10 > Qt 3.3.8b > GTK2 2.12.12 > > The balloon flashes when using gtk.gb. Debian sid GB2.15.2-1 (deb package) Qt3.3.8b-6 GTK2 2.16.6-1 Tests using your project: time (s

Re: [Gambas-user] Profiler for Gambas projects

2009-09-11 Thread Jean-Yves F. Barbier
Jussi Lahtinen a écrit : > I haven't use Valgrind, but I think yes, but I'm only interested about > performace analysis. I think that's a nice idea, when I 1st used a python profiler, I found many places where small modifications greatly improved execution time. JY -- I know things about TROY DO

Re: [Gambas-user] Database manager Save Table problem

2009-09-10 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : ... > Apparently on other database systems, two index can have the same name > provided they are on different tables. ? strange (and I'm not sure this fit in SQLs standards) However, in PG, you can't have a doublon, either it is from tables, indexes, sequences (exceptio

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> On Wednesday 09 September 2009, Benoît Minisini wrote: it's OK, I think there must be something like User.IP :) Regards -- David >>> The IP address is not related to the user at all. >> How about System.IP? >> >> >> However David

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Jean-Yves F. Barbier
David Villalobos Cambronero a écrit : > Hi, is there an easy way to obtain my IP address? by shell, I use: ifconfig | grep inet | cut -d: -f2 | cut -d' ' -f1 | grep -v 127 if you have multiple interfaces, you must add (for each unwanted): | grep -v nnn.nnn.nnn.nnn at the end HTH JY -- I don't

Re: [Gambas-user] DataBrowser

2009-08-31 Thread Jean-Yves F. Barbier
Mathias Ebermann a écrit : > No, Charlie, > I didn't mean the headers. I know how to rename them. > > What I meant is: > In my DataSource table I have a field "ProducerID". > That points to another table "Producers" with the key field "id" and the > field "Name". > Now I would like to have the Co

Re: [Gambas-user] Installing Gambas2

2009-08-29 Thread Jean-Yves F. Barbier
Bill-Lancaster a écrit : > Jean - thanks for the quick reply. > I get "permission denied" when I try to navigate to root. whao, I think you misunderstood me: I didn't say cd to /root, I said BE the root user. (but anyway, that is not normal to be refused /root access as a user @ least for read, ex

Re: [Gambas-user] Installing Gambas2

2009-08-29 Thread Jean-Yves F. Barbier
Bill-Lancaster a écrit : > Have been using Gambas for only a short while. > > Having moved to a new computer I get error when installing Gambas > (gambas2-2.15.2). > > After "make install" the following error occurs (the previous steps were > error free) > > /usr/bin/install -c gbx2 /usr/local/

Re: [Gambas-user] type mismatch: wanted integer, got string instead

2009-08-24 Thread Jean-Yves F. Barbier
MSulchan Darmawan a écrit : > Dear sir, > > I have the following code : > > DIM sRain AS String > DIM iRain AS Integer > DIM iPos AS Integer > DIM iYear AS String > DIM iMonth AS String > > modMain.Connect > hRes = modMain.$Con.Exec("SELECT * FROM table") > > FOR EACH hRes > >

Re: [Gambas-user] webcam weirdness

2009-08-24 Thread Jean-Yves F. Barbier
Steven James Drinnan a écrit : > Try > > for 32bit systems > > LD_PRELOAD='/usr/lib/libv4l/v4l1compat.so' gambas2 > YES Steven, that's working :) JY -- A woman was in love with fourteen soldiers. It was clearly platoonic.

  1   2   3   >