Re: [Gambas-user] Nice book of Gambas
On Tuesday 02 September 2008, Henri Girard wrote: I don't know if you know it but openoffice 3 has an import of acrobat which is not bad though in beta version Yeah right and when the pdf is protected against print and copy/past and the developers of OO are honest they import that too and handle following those restrictions. So you can read it and that's it. :) Ron_1st -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] new user
Szenográdi Norbert Péter ha scritto: Hi all. Im a new member on gambas-user-list. I have some quession: - How can I send a datas to other form.. There are two ways. 1 - In the project properties, you can set Controls of forms are public. Once this is done, you can address/refer to controls on other forms by their name, i.e. Form2.label1.text = . This option is global to the project: all the form have public controls or none. 2 - As each form is a class, it can have public variables and methods. You can declare PUBLIC variables and access them from outside the form. If you want the form react in some way, this is not enough; after setting a variable you must call a public method declared in the form, which can manipulate its controls. This can be done in a single step: write a public method having some parameter, then call that method passing the data you want. That method can use the data you passed and do what is needed. For example, suppose you have a main form which, at some point, opens another form as a status form. This StatusForm has a Label1 on it, showing some message. If controls are public (first solution), then you simply write in the main: StatusForm.Label1.Text = Opening data file... WAIT ' this is required to update instantly the screen Using the second way runs like this. In the StatusForm code (.class file), declare a public method like this: PUBLIC SUB UpdateMessage(st AS String) Label1.Text = st WAIT END At this point, in the main program, you can call: StatusForm.UpdateMessage(Opening data file...) - How can I see any -manual inserted- data in Tableview and/or Gridview.. Look at the manual page about GridView - it contains an example on how to set grid dimensions (number of row and columns), and fill them by code. About to see them... I don't understand the problem; provided that the event loop is called, then you will see any data a Gridview is filled with. Email again if you have still problems. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Nice book of Gambas
To get back to the topic. :-) I think it's a very very good idea to take the book as a basis for documentation in a wiki. But what is needed is the permission of J.R. and/or the publisher. With respect to J.R.s situation, we could try to contact the publisher of the book. When they say no it is no...but it's an answer. Perhaps they can tell us, who's responsible for granting rights and permissions. Here is my situation...and I know, I'm not allone with this. I never coded in any OO-language. ...and I never designed a GUI-program. ...but I like Gambas so much. ...and there is either old or no documentation. For a rookie like me, at the moment coding in Gambas means: Hacking one hour and gathering the needed information eight hours. Looking into the PDF-book, searching the wiki, scanning the mailinglist archives, analyzing other people code sniplets in the internet and so on. ...it's a little bit frustrating. It would be so pity, when Gambas doesn't get the acception, it is owing. Sorry for my poor English ...it's not my native language. Greetz Stevie - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Nice book of Gambas
Fabien, bad idea to spread the world with J.R. health conditions. It's against privacy law on many countries, unless J.R. gave you permission to do that. I think it's a good idea removing that message from Gambas online archives. Benoit, can you do it? Best regards, Stefano Palmeri - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] new user
On Tue, Sep 2, 2008 at 10:39 AM, Doriano Blengino [EMAIL PROTECTED] wrote: Look at the manual page about GridView - it contains an example on how to set grid dimensions (number of row and columns), and fill them by code. About to see them... I don't understand the problem; provided that the event loop is called, then you will see any data a Gridview is filled with. Thanks for good info. Could you please tell me what you are referring with manual page about GridView? I could not find it. Best Regards Kari - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] ByRef
Hello List! I've switched to development version 3.0 and I'm trying to get rid of this ByRef thing. I wonder, if someone could explane the syntax to me! Thanks in advance!! Greetz Stevie - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] ByRef
Hello Stevie, If this is similar to the ByRef from VB, there is following to be said: In Subroutine or Function that expects parameters passed from other part of your program there are two possibilities to pass them By Value (ByVal) or by Reference (ByRef). First one means that your Sub gets only the Value and does NOT change the variable that was passed in. Passing by Reference is almoust the same as the pointer concept from C language, INTERN the address of the var is passed so the Value CAN be changed inside the Subroutine. Hereby you must be carefull, sometime passing ByRef can spare time and ressources, but it can also be (used without deeper mean) a source of hardly to track bugs... kind regards Emil -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von [EMAIL PROTECTED] Gesendet: Dienstag, 2. September 2008 11:28 An: mailing list for gambas users Betreff: [Gambas-user] ByRef Hello List! I've switched to development version 3.0 and I'm trying to get rid of this ByRef thing. I wonder, if someone could explane the syntax to me! Thanks in advance!! Greetz Stevie - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] ByRef
Forgot to gave you example (VB) sub main() dim a as integer a=1 debug.print a, pr1(a) debug.print a, pr2(a) debug.print a end sub private sub pr1(byval a) a=2 return a end sub private sub pr2(byref a) a=2 return a end sub result will be as follows 1 2 1* 2 2 (!) *As you can see on the first sub the var a is local to your sub, it was changed (returns 2), but the passed a has stil value 1 (!) in the second procedure the passed var a was changed! (the a that was defined in the sub main!) -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von [EMAIL PROTECTED] Gesendet: Dienstag, 2. September 2008 11:28 An: mailing list for gambas users Betreff: [Gambas-user] ByRef Hello List! I've switched to development version 3.0 and I'm trying to get rid of this ByRef thing. I wonder, if someone could explane the syntax to me! Thanks in advance!! Greetz Stevie - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] shell
Hi all I am trying to run the terminal with input from the gambas shell command. Looks like I have it wrong, any help please. SHELL /home/mike/Desktop/Terminal espeak Hello Regards all Mike - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Q:how to save a file.png into Postgresql
Hello Richard Dies at the line containing 'Coct' with message: unknown identifier but I'm sure this way is good, as I can remember reading something about this in the postgres doc's but couldn't figure out how to do the substitution. OK, I thougt it is a Gambas converting function, but it isn't. It should convert a given number into an octal number, return the number as a string. So here it is: PRIVAT FUNCTION COct(num as Integer) as String DIM octnumber AS NEW Interger[] DIM octstring as String octnumber.Add(int(num / 64)) octnumber.Add(int((num MOD 64) / 8 )) octnumber.Add((num Mod 64) MOD 8) octstring = octnumber[0] octnumber[1] octnumber[2] RETURN octstring END Next step? Test it. Fine regards Rolf signature.asc Description: This is a digitally signed message part. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] ByRef
Am Dienstag, 2. September 2008 12:06:09 schrieb Emil Tchekov: Forgot to gave you example (VB) sub main() dim a as integer a=1 debug.print a, pr1(a) debug.print a, pr2(a) debug.print a end sub private sub pr1(byval a) a=2 return a end sub private sub pr2(byref a) a=2 return a end sub result will be as follows 1 2 1* 2 2 (!) *As you can see on the first sub the var a is local to your sub, it was changed (returns 2), but the passed a has stil value 1 (!) in the second procedure the passed var a was changed! (the a that was defined in the sub main!) Hi Emil, thanks for your reply! ...it helped to understand the concepts and the syntax. Meanwhile I got it running. Gambas wants the Byref twice! Once by calling the procedure and a second time in the header of the function. Sub Main DIM sResult as String sResult = GetData(Byref sResult) Print sResult \n End Public Sub GetData(ByRef sResult As String) sResult = Hello End Greetz Stevie - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Nice book of Gambas
On Tue, Sep 2, 2008 at 7:28 PM, [EMAIL PROTECTED] wrote: Am Dienstag, 2. September 2008 17:16:10 schrieb Ron_1st: If I would knew that this going to start this heated discussion I would not have posted it in the first place... No problem of a heated discussion for me. Full Ack! I think it just only good to try to get the real permision. After reading the licence, any other strategy would be a crime! http://www.buybooksontheweb.com/ There is a contact on the page. Someone with good english should write proposition to them. Possibly discuss it here. But I am quite sure the answer from the publisher is NO. I would do itbut English is not my native language. :-( Perhaps (at a first step) we should create a list of arguments, why the publisher should grant us permission to modify the books content. ...and to be honest: I don't think, that they say: NO ...because: - Meanwhile the book is overaged ...something about 50% - With every new release of Gambas it becomes older and olderand our Benoit is a hard-working guy! ;-) - J.R. never updated the book...it's (too???) much work to update it in an one-man-show. - The book is free for downloading. ...reading it, to become an overview regarding Gambas is okay...but, because of its age, it's no reliable reference. ...only a few people would pay for the print. ...so making money with the book is a fading process. ...pps! ...I created a list of arguments! ;-) I think you made a good summary. Another thing might be that publisher might get updated book to publish. I mean some people want the real thing. I have bought - I think three at least - Rubini's device driver book, samba-book, a Linux kernel book, and a linux programming book. It is nice to have the real thing - harddisks tend to crash :-) And as I wrote earlier add-space for the publisher is valuable thing these days. Now we need a volunteer to write a first draft. Best Regards Kari Laine - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Q:how to save a file.png into Postgresql
On Tue, 2 Sep 2008 09:48:55 pm you wrote: Ok, that got me a bit further: This is the resultant (failed) insert query . First try using $$ as the delimiters as per my code gives this and fails: insert into clin_consult.temp_image(piccie)values($$\\211PNG\\015\\012\\032\\012\\000\\000\\000\\015IHDR\\000\\000\\000\\232\\000\\000\\000\\311\\010\\002\\000\\000\\000T\\207\\274\\031\\000\\000\\005\\266IDATx\\234\\355\\235\\331\\266\\2330\\020\\004\\345\\234\\374\\377/\\223\\007\\345\\020\\007\\373\\012!f\\351i\\272\\236\\262\\330 M1#!\\263\\274\\266mk\\202\\205_\\331\\015\\020\\226H\'\\025\\322I\\205tR! \\235TH\'\\025\\322I\\205tR\\361;\\273\\001f\\274^/\\333\\015V\\134`! \\311Ns\\227N\\333\\364\\206A\\247_\\334\\313\\031e\\320)v\\244\\223\\212\\362: \\313\\325CW\\312\\353\\364\\246\\326\\341R[g\\255X\\007P\\370\\274s\\354\\362\\352Y#\\307\\221Q5; \\265h\\360\\225\\252: \\307\\330\\272)\\224\\270%u\\026\\212o0\\365t\\236\\272\\344 (\\233k\\024\\323\\351\\352r\\360\\335*\\365\\240\\222N\\345\\345)5NT\\252$G: \\005\\262s\\322\\245wj\\2268\\244\\320u\\006\\273\\254^\\256\\241u\\202\\344e!puf\\271,=\\277\\005\\325\\251\\274\\134\\003T\\347\\014r\\371\\311\\0130 (\\010\\347\\227\\2036\\000Fl\\007.; \\021\\134\\216A\\036A\\341t\\216Iw\\011\\016\\226N\\333_\\244\\3570\\336\\027l\\202\\002\\351\\204\\215Q!Pt\\002\\016\\231\\025\\023\\024B\'\\240\\313\\242\\344\\353DvY\\3560J\\326\\211Y\\262\\001l| \\246\\316\\231p\\244\\347G\\255\\0214\\277\\330\\016Hw9\\003\\224\\3214\\235\\310C\\346\\001\\234\\226\\234\\002\\232\\235h\\021\\254Rrst\\342\\254\\376\\314S\\302h\\202N\\220\\236\\233\\203\\320\\257h\\235\\205\\206\\314ON\\333\\226n\\024t\\354\\024k\\204\\352, \\235\\232\\035\\360\\004\\005\\312N|\\227\\035d\\243q:+\\316f\\177\\002\\326 (Pv\\326b\\306h\\274\\324 \\235L\\251y\\211`\\243\\021: \\323\\247\\357NL\\036\\205\\221\\335w\\327I0\\233\\375J\\357\\327\\274\\321\\030\\251\\276:Y]\\2763\\337\\205\\000\\243\\216: \\237\\340\\262\\263m\\033H\\232z\\335\\256\\313:^\\016\\330\\266m\\262\\327~\\301\\261\\327Y\\372n\\241\\367\\306/\\264p\\336\\350\\362. \\306\\030\\337\\243R\\335\\345 {\\303\\016\\177}\\377w\\303\\235\\332\\206\\302,; \\347;Y\\302\\345\\347\\377\\356\\177\\356\\037\\033\\177\\276M\\007\\344\\322\\014\\371| k\\033p\\331\\377\\260\\253:|\\340\\263\\331\\247: \\277ng\\200\\215\\210\\233 [\\311\\035*L\\370I\\336i\\276\\316tg\\2412\\337\\211\\322\\255b[\\327\\345\\370\\366\\315IUw\\3662\\376\\326\\362\\336o| \\263\\254\\313w\\356\\334\\226 {(\\321\\2276~\\312Z\\304Vtr\\210\\334\\371\\251; \\313\\313=\\373\\027o\\316\\201\\027Bw\\241\\330pe`\\222C\\334\\255\\002\\265Pug\\277\\020_7b\\350!; \\234-\\344\\216\\235\\357\\134m\\306Tv\\336l\\226Ut\\3748\\234\\237\\200\\267v\\200\\256F\\370G\\267\\030\\340r~\\311\\376*\\226k\\266WW, \\021x\\257\\264\\301U\\344\\260\\240h\\262M3\\235\\247+^\\260\\025lr\\321\\316\\273\\015_\\247\\307W\\357\\231\\234\\3229N;XO\\227H\\357\\305\\327\\006\\134]x\\232\\315\\316\\257F\\323C\\200L\\330\\270s9;? [EMAIL PROTECTED] (; \\355IG\\227N*\\260\\356\\276\\0267Qv\\306\\0210\\253\\220Nc\\010\\237\\215\\240\\311m\\026p\\317\\025\\022wP\\261\\265$\\375gD=\\304\\215\\012/\\235\\032SP\\2615#\\275\\3226\\351$\\303Q\\247\\352m9\\2572\\017\\270l\\356\\346m\\361\\206D\\356\\235\\263\\330\\036\\206\\261\\347\\314\\245\\011u~\\225\\367\\020\\243\\276:5| \\006C\\230\\235OF:\\251 \\324\\271| w\\000\\001\\270o9\\272\\303A\\336C\\134\\266\\254\\363\\316\\000\\202\\025\\202\\314\\234\\011\\213\\355\\223q\\327\\371\\234B\\207\\200\\262\\323\\227\\340\\243Y: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251\\220N*\\244\\223\\012\\351\\244B: \\251p\\327\\011\\362\\014\\210\\207\\240\\354\\244B: \\251H\\323\\251\'\\232x\\340\\253S\\003gp\\004Tl\\251p\\324\\251\\324\\214\\307\\345\\231\\354\\247)\\007N\\316\\027o()\\0231\\3269\\343\\5\\307\\204\\035\\342\\232\\012Q! \\235A\\304$\\250\\336\\020H\\205\\261\\316\\311qQF\\235\\340| \\026\\374c\\261\\3279?q}\\275^LR\\021f\\354\\371\\2572\\227QCB\\337\\3247[EMAIL PROTECTED]@\\205jj\\350\\211\\012\\237Q\\264\\231AP\\261\\375o\\227W\\301V]\\314^$\\350l\\250\\261\\230\\007-)wrt\\266\\262F\\301\\233\\235\\246\\363_\\013`\\246\\205\\247\\200\\273l\\010: [\\005\\243\\370;\\020:;\\200W2, \\314\\256s\\343\\011\\244\\263\\201\\031\\255\\270\\364\\201\\245\\263\\223~!`\\271\\244\\334)\\371\\262\\344\\036\\356\\224KJ? \\001\\021\\331A\\274V(\\353\\222\\206\\352. \\033f\\261\\355\\204\\235\\252\\257\\035\\026\\230q\\303\\325\\331\\374O\\017\\226\\363\\0336h\\320: \\233\\233Q\\221\\035t\\235\\315\\324 (\\253\\305\\035\\304\\251\\320\\001\\253\\237\\325\\350]\\266\\022\\331\\271\\2639z\\202\\310N%\\235\\235KR\\237#\\262SOg\\363\\277P\\241bL: %uv\\314\\245\\326\\015\\305Na\\235\\315\\316h\\351
Re: [Gambas-user] new user
Yeah there are man pages for things... but the conventional man pages don't apply to GAMBAS and the components. :) Kari Laine wrote: On Tue, Sep 2, 2008 at 5:02 PM, Stephen Bungay [EMAIL PROTECTED] wrote: Kari means go to the online help. Select the little question mark '?' to the right of the 'tools' menu at the top of the GAMBAS IDE. Then select 'Help Browswer' and when it appears you will see on the left side of the window a list of items entitled 'Gambas components'. I really know this :-))) But that man gridview confused me because I thought there are man pages for things Best Regards Kari - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Books about compilers and interpreters
On Wed, Sep 3, 2008 at 3:25 AM, Kari Laine [EMAIL PROTECTED]wrote: Hi, Could we collect to this thread list of books which are good about compiler and interpreter design. Forget first wrong list second amazon.co.uk search compilers and there is ton to select. Kari - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user