Re: [Gambas-user] How To INSERT INTO in MySQL?
On 02/06/2012 12:45 AM, abbat wrote: I cant make to work the command for MySQL which works perfect on VB.NET Dim COMMAND = New MySqlCommand(INSERT INTO statistic ( TimeCode, SessionStart, SessionEnd, Kluch, Comp) VALUES (' T ', now(), now(),' kluch ',' Nc ')) How to make it work? Thanks Hello, If you have a connection (e.g. myCon) then you can use it's Exec function to execute mysql commands (e.g. myCon.Exec(CREATE VIEW)). If your command is a query then returns the result r (called resultset in VB, I think), e.g. r=myCon.Exec(SELECT * FROM ...) Robi -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas for Android
Hello, Is it / will it be possible to install applications written in Gambas on Android devices? That would be really great. Robi -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About Gambas 2 deprecation
Benoit, I haven't tried gb3. Will the code written in gb2 work in gb3? Robi 2010/10/28 Benoît Minisini gam...@users.sourceforge.net: Hi, I had badly expressed myself when I said that Gambas 2 will be deprecated before the end of the year. What I meant is: 1) I want to / will release the first release candidate of Gambas 3 before the end of the year. 2) Then I will stop working of Gambas 2. But nobody will prevent anyone to use its last version and/or fixing bugs in it (it is free software). That has already began: it is a slow process, and it is just a consequence of my limited free time. I am currently busy with theatre and project releases in my job. Normally, things will be cooler next week, and I will be able to start working on Gambas again. Best regards to everyone. -- Benoît Minisini -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] TableView issue
Hello Benoit, Could you pls. tell me how to check the revision of Gambas. I just redo every time the svn update in the install folder (it writes me out a revision number, this is what I refer to) and after I recompile, reinstall gambas. But later I don't know how to check the version number. The sample code is still the same (attached) and still buggy on my computer (I just added a checkbox but no any effect on the issue). BTW, an other strange effect, maybe from the same root case: Take the same sample but make all the columns editable (otherwise the first bug doesn't let you see the second :-) 1. When you start the app. then the whole table is visible. In this case - after clicking into a cell - keep pressed the right arrow. it works fine, it goes through all the cells (left-to-right and at after the last col it goes down with one line). 2. Do the same but after starting the app, resize the form on a way that you can see only 4 or 5 lines. Do the same as in the previous trial (right arrow). As soon as you arrive to a line which is originally invisible, you'll get a null object error message. If you move only top-bottom then no error message. Same as for the first bug: if you use gb.gtk or gb.gui then it works well, only issue with the gb.qt components. Robi 2010/9/4 Benoît Minisini gam...@users.sourceforge.net Salut Benoit, I tested the last version with the different components: gb.qt: still the same problem (ComboBox is read-only) gb.qtk: OK gb.gui: OK I use gb.qt. Robi I have just tested your with gb.qt and Gambas 2, and I don't have the problem anymore. Can you send me the code you are using again (to be sure)? And check again that you compiled and install correctly the latest trunk. Regards, -- Benoît Minisini -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user tableView-0.0.1.tar.gz Description: GNU Zip compressed data -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] TableView issue
Hello List, I found a strange behavior of the tableview control. I use Gambas 2.20, qt, on ubuntu 10.04. I try to create an editable table. As long as I use only text input, it works fine. As long as I use lists or text and list but with unprotected (readonly=false, as by default) lists, it works fine. In this case I can use the arrows to move up and down, left and right. It is very comfortable. As long as I use protected lists (readonly=true) it works fine as well, except that I cannot move left and right with the arrows. It is less comfortable but still okay. The problem comes when I use some columns with protected and some others with unprotected lists. In this case, when I use the arrows for moving horizontally and I move from an unprotected cell to a protected one, it crashes the code with an error message about the combo box. If I was not clear then take the attached code, select a cell and move by pressing the arrows. The middle column is unprotected. Can someone tell me if it's a bug or what should I do different? Thx, Robi tableView-0.0.1.tar.gz Description: GNU Zip compressed data -- Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] serial port issue
Hello List, This may not be a fully gambas question just I don't know who to ask for help - sorry for posting it here. I try to switch my measurement from windows XP (VB) to Ubuntu 9.10. This program takes several (3, for the moment) equipments connected to a PC through serial ports. It works correctly under XP and I succeeded to make (an even nicer :-) program in gambas for ubuntu. It also works well... as long as I use the serial ports integrated on the motherboard. I have some serial port cards we added later for having enough interface. From the gtkterm they seems working with short commands so I was optimistic. But when I send more data from my program they seems not arriving correctly. Is there anybody who works with serial ports under ubuntu (with gambas)? A little help would be highly appreciated. Robi -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial port issue
All the parameters are the same obtained by autoconfig, except the UART which was undefined for the added ports. I set this parameter to the same value as for the working one: 16550A (in fact I tried all the possible UART parameters and where the port was working it behaves always the same: short test messages pass but in the real work environment it crashes). :-( Robi 2010/4/21 Ron r...@cyberjunky.nl Maybe try to see if there are any differences between the ports with the setserial command. $ setserial -a /dev/ttyS1 /dev/ttyS1, Line 1, UART: unknown, Port: 0x02f8, IRQ: 3 Baud_base: 115200, close_delay: 50, divisor: 0 closing_wait: 3000 Flags: spd_normal skip_test $ setserial -a /dev/ttyUSB1 /dev/ttyUSB1, Line 0, UART: unknown, Port: 0x, IRQ: 0 Baud_base: 2400, close_delay: 0, divisor: 0 closing_wait: infinite Flags: spd_normal low_latency Hello List, This may not be a fully gambas question just I don't know who to ask for help - sorry for posting it here. I try to switch my measurement from windows XP (VB) to Ubuntu 9.10. This program takes several (3, for the moment) equipments connected to a PC through serial ports. It works correctly under XP and I succeeded to make (an even nicer :-) program in gambas for ubuntu. It also works well... as long as I use the serial ports integrated on the motherboard. I have some serial port cards we added later for having enough interface. From the gtkterm they seems working with short commands so I was optimistic. But when I send more data from my program they seems not arriving correctly. Is there anybody who works with serial ports under ubuntu (with gambas)? A little help would be highly appreciated. Robi -- ___ 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 mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial port issue
The communication parameters are 9600, 8, n, 1, Xon/Xoff. 2010/4/21 Doriano Blengino doriano.bleng...@fastwebnet.it Robert JUHASZ ha scritto: All the parameters are the same obtained by autoconfig, except the UART which was undefined for the added ports. I set this parameter to the same value as for the working one: 16550A (in fact I tried all the possible UART parameters and where the port was working it behaves always the same: short test messages pass but in the real work environment it crashes). Do you have some sort of handshaking? -- ___ 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
Re: [Gambas-user] serial port issue
Thanks for the info! I may need to find some reliable hardware, this can be an issue (the one installed by my Chinese informatics colleague doesn't give me too much confidence :-) Did you have to install any driver to get it working? Robi 2010/4/21 Ron r...@cyberjunky.nl I use a ten ports usb hub and seperate usb to serial cables. I have written some udev rules to lock the serial device names to the physical ports.. otherwise they change after a reboot. To bad I just found these guys afterwards: http://www.picco.nl/product_info.php?products_id=2338 Regards, Ron. Ron, I mean that the app doesn't do what I wish him to do :-) Unfortunately it works as expected with the serial port on the motherboard (ttyS0, same equipment connected, same data sent and should have been received) so it should not be a bug in my code. The connection parameters (including Xon/Xoff) are required by the equipment I use. Physically, how did you connect 10 serial ports to your machine? With a card or do you use virtual ports with USB connector? Robi 2010/4/21 Ron r...@cyberjunky.nl You mean crashing like in signal #11 core dump or the application doesn't do what's wanted? Which version of Gambas? There where a few serial port related bug fixes. http://gambas.sourceforge.net/en/changelog2.html I use a lot (10) serial ports in my gambas app. 24/7 but I do not use xon/off. Regards, Ron. The communication parameters are 9600, 8, n, 1, Xon/Xoff. 2010/4/21 Doriano Blengino doriano.bleng...@fastwebnet.it Robert JUHASZ ha scritto: All the parameters are the same obtained by autoconfig, except the UART which was undefined for the added ports. I set this parameter to the same value as for the working one: 16550A (in fact I tried all the possible UART parameters and where the port was working it behaves always the same: short test messages pass but in the real work environment it crashes). Do you have some sort of handshaking? -- ___ 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 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 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
Re: [Gambas-user] form_resize issue
For the moment I just have a big one. I try to build a small example which shows the problem. Robi 2010/4/18 Benoît Minisini gam...@users.sourceforge.net Hello List, When the user resizes the main form of my application I try to follow the form size with the controls on the form. I use the Form_resize event and I modify the controls' position accordingly. My hierarchy is something like that: Form TabStrip1 TabStrip11 TableView111 TabStrib12 TableView121 TableView122 It seems working correctly for any control I'm looking at... but not always for the others. For instance if I'm on the TabStrip11 and I resize the form then the TableView111 behaves normally but if I go to check the TableView122 then I can see the previous size. I call the refresh method for each item after modifying it's position or size. Do I miss something or is it a bug? I use Ubuntu 9.10 (64 bit), Gambas 2.20. Robi Your explanation are not clear. Can you provide a little project that shows the problem? -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] form_resize issue
Hi Benoit, I put together the small project with 2 level of TabStrip controls and with tableview controls on some of them. First it seemed to work perfectly... but finally I could reproduce the effect on my computer. When the app starts up then (normally) the controls resize correctly. Just after keep your eyes on one of the tableviews and resize the form (I just change from maximized to normal window and back). The tableview I look at behaves normally. But when I check the others they have the size corresponds to the normal window size. Will be interesting to see if the same happens for you or if you find a silly mistake in the code. For the moment I didn't put any refreshing - I did it in the project I work on but didn't help. Regards, Robi 2010/4/18 Benoît Minisini gam...@users.sourceforge.net Hello List, When the user resizes the main form of my application I try to follow the form size with the controls on the form. I use the Form_resize event and I modify the controls' position accordingly. My hierarchy is something like that: Form TabStrip1 TabStrip11 TableView111 TabStrib12 TableView121 TableView122 It seems working correctly for any control I'm looking at... but not always for the others. For instance if I'm on the TabStrip11 and I resize the form then the TableView111 behaves normally but if I go to check the TableView122 then I can see the previous size. I call the refresh method for each item after modifying it's position or size. Do I miss something or is it a bug? I use Ubuntu 9.10 (64 bit), Gambas 2.20. Robi Your explanation are not clear. Can you provide a little project that shows the problem? -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user resize-0.0.1.tar.gz Description: GNU Zip compressed data -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] form_resize issue
OK, I play a little tonight! But there is a risk that I ask questions tomorrow :D Thx a lot, Robi 2010/4/18 Fabien Bodard gambas...@gmail.com just do that to try : make a form and add 3 panel in it then in each panel add 3 other panels give an unique color for each panels and then try each properties and run the form ... it's the better way to understand 2010/4/18 Robert JUHASZ robert1juh...@gmail.com: For the moment I just have a big one. I try to build a small example which shows the problem. Robi 2010/4/18 Benoît Minisini gam...@users.sourceforge.net Hello List, When the user resizes the main form of my application I try to follow the form size with the controls on the form. I use the Form_resize event and I modify the controls' position accordingly. My hierarchy is something like that: Form TabStrip1 TabStrip11 TableView111 TabStrib12 TableView121 TableView122 It seems working correctly for any control I'm looking at... but not always for the others. For instance if I'm on the TabStrip11 and I resize the form then the TableView111 behaves normally but if I go to check the TableView122 then I can see the previous size. I call the refresh method for each item after modifying it's position or size. Do I miss something or is it a bug? I use Ubuntu 9.10 (64 bit), Gambas 2.20. Robi Your explanation are not clear. Can you provide a little project that shows the problem? -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] form_resize issue
Hello List, When the user resizes the main form of my application I try to follow the form size with the controls on the form. I use the Form_resize event and I modify the controls' position accordingly. My hierarchy is something like that: Form TabStrip1 TabStrip11 TableView111 TabStrib12 TableView121 TableView122 It seems working correctly for any control I'm looking at... but not always for the others. For instance if I'm on the TabStrip11 and I resize the form then the TableView111 behaves normally but if I go to check the TableView122 then I can see the previous size. I call the refresh method for each item after modifying it's position or size. Do I miss something or is it a bug? I use Ubuntu 9.10 (64 bit), Gambas 2.20. Robi -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] form_resize issue
Salut Fabien, Thanks for the idea. From one side it's a pity if the resize event doesn't work as I imagined, form the other side it's a good opportunity to learn how containers work in Gambas. Is there any good tutorial which shows how the different controls work? Their description is quite brief and in the built-in examples I didn't find any. Thanks, Robi 2010/4/17 Fabien Bodard gambas...@gmail.com The resize event is used really not often on gambas ... it's not VB ! you need to use the container system to automagiquely resize the elements in your form ... all is managed with the mouse... Nothing to do by code :) look at VBox, HBox, Panel, and all other containers like form, etc and properties : arrangement , spacing, padding, expand, ignore 2010/4/17 Robert JUHASZ robert1juh...@gmail.com: Hello List, When the user resizes the main form of my application I try to follow the form size with the controls on the form. I use the Form_resize event and I modify the controls' position accordingly. My hierarchy is something like that: Form TabStrip1 TabStrip11 TableView111 TabStrib12 TableView121 TableView122 It seems working correctly for any control I'm looking at... but not always for the others. For instance if I'm on the TabStrip11 and I resize the form then the TableView111 behaves normally but if I go to check the TableView122 then I can see the previous size. I call the refresh method for each item after modifying it's position or size. Do I miss something or is it a bug? I use Ubuntu 9.10 (64 bit), Gambas 2.20. Robi -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] TableView Header Names
TableViewName.Columns[columnIindex].Title or TableViewName.Columns[columnIndex].Text (does the same as far as I could see). Robi 2010/4/7 Keith Clark keithcl...@k-wbookworm.com How do I change the text that is displayed in the TableView Headers? Thanks (still learning!), Keith -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] menu
Thanks Benoit! When you say that I can define application group, dou you mean that I can define (from gambas when packaging or from ubuntu) or do you mean that I can choose from the list provided during the creation of the package ? Robi 2010/4/2 Benoît Minisini gam...@users.sourceforge.net Hello, No any idea? Maybe there is no any solution to do that? I may need to give up then the idea :-( Robi yuhej wrote: Hello List, I have a very basic question... when I develop my applications I'd like them to appear in the menu under a group (when installed on a machine). When I do tha packaging I'm able to set several parameters, but is it possible to create an own menu (for example myApps) and to put the different application under this menu (myApps/app1, myApps/app2, etc)? If yes, where can I specify it? The user PC is Ubuntu. Thanks, Robi I don't think that is possible in the same way you do that on Windows. You can only define application groups, and then the desktop use them to create the menu. But the desktop environment decides, not the application. Regards, -- Benoît Minisini -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] menu
Hello List, I have a very basic question... when I develop my applications I'd like them to appear in the menu under a group (when installed on a machine). When I do tha packaging I'm able to set several parameters, but is it possible to create an own menu (for example myApps) and to put the different application under this menu (myApps/app1, myApps/app2, etc)? If yes, where can I specify it? The user PC is Ubuntu. Thanks, Robi -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] printing issue
Hello List, I have a small issue with the printer handling of my application: when I try to print, the list of printers is empty and consequently the OK button is disabled (there are printers installed on the computers). If I click on cancel, the default printer prints out the document. If I print to file it works well. Development computer: Ubuntu 9.10, package made on Gambas 2.19 and 2.20. User computer: Ubuntu 9.10, no gambas installed. I suppose that the code is ok as it worked in the past, however the environment was different (User computer: Ubuntu 9.04, no gambas installed). Is it a known problem with some known solution or can it be my mistake? The printing part of my code is like that: -- SUB plotOnPrinter() printer.Setup() Draw.Begin(printer) ' here I draw what I wanna print Draw.end END -- Thanks for your help, Robi -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] database
Hello List, I am creating an application working with some databases. I have no problem to create the empty database from code, but now I wish to have a pre-filled database which creates itself when I install the application or what I can create during the first run. Is there an easy way to attach a database to the project (I suppose yes, by adding to the data) and copy this database to the selected server? I work with mysql. Thanks if you can give me any idea or a bit a example code. Regards, Robi -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] output to open office files
Hi, Thanks for the ideas. I checked some but not yet found my solution. To make a link between .csv and an .ods behaves very strange: most of the time I browse the file to link but the OK button doesn't become enabled. I succeeded with one .xls file (not with all!) and I even cannot see the reason why in the other cases it doesn't work. Maybe a bug. Same under Windows and Ubuntu. So this, I gave up :-( Uncompressing the .ods file and modifying the contents works well manually. I think that I could modify from code as well. But I don't know how to re-compress the files to an .ods for getting back my file and I especially don't know how to do it from code. If someone can help in this matter or have an open code - even if dirty - that would be highly appreciated. Robi 2010/1/20 Charlie Reinl karl.re...@fen-net.de Am Mittwoch, den 20.01.2010, 15:18 +0100 schrieb Benoît Minisini: Hello, Thanks for both of you for the answers! The solution you described Benoît is very sympa for me. Could you give me your 'dirty' code in a module in order to add to my project and use your function to write cells? That code is not free, I done it for my boss. But I plan to create an openoffice component somedays based on this code in a better form. Regards, Salut, I have a 3 week painful OOo/Starbasic programming behind me (the Editor/IDE is awful (kind of edlin with mouse support [ok, ok a little bit better]), the Help is the Internet). We can't do as MS does, just create an OOo-object from the Uno interface. (Uno = Universal Network Objects) We need a UNO-wrapper, which 'talk' with a started soffice.bin, I didn't dive deeper. For those who know to read VB, here an example : http://www.oooforum.org/forum/viewtopic.phtml?t=3554 -- Amicalement Charlie -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] output to open office files
Hello, Thanks for both of you for the answers! The solution you described Benoît is very sympa for me. Could you give me your 'dirty' code in a module in order to add to my project and use your function to write cells? I may also learn from your code. (My standard way for the output is to use templete files so I don't need to bother with the formatting, printing issues or whatever: I just modify some cells with the actual data and I leave the file open for the user. My colleages are already got used with this method and would be very good to keep this habit under linux in my Gambas applications). Regards, Robi 2010/1/20 Benoît Minisini gam...@users.sourceforge.net 2010/1/20 yuhej robert1juh...@gmail.com: Hello Benoît, As far as I know we have no easy option to write data to open office calc files like VB can do to excel. Once I read in a comment of you - if my memory is correct - that you plan to do a function for that but only in the far future. Is it previewed in Gambas2 or do you have any schedule on that? It would be very useful. Hey, far be it from me to stick my nose in where isn't appreciated, but on this occasion I'll allow myself an indulgence. If you want to write data to open office calc files like VB can do to excel, the Open Office source code is here: http://download.openoffice.org/2.1.0/source.html My response is excused by virtue of me being told almost exactly the same thing by [censored]. HTH More concretely, open office files are XML text files, so you don't really need a binary interface on a black box as Microsoft did with Office. Just uncompress the openoffice file with unzip, modify the xml files inside, and compress it back. Of course you must know the OpenOffice format, which is a documented standard. But if you have saved your openoffice files with no optimization, the generated xml files can be read and understood with any text editor. Otherwise, I have started to develop an API to access OpenOffice calc files for myself, but it is to quick dirty to be released. You just tell what you want to put in which cell, and all the dirty work is done in the background (uncompressing the openoffice file, inserting columns and lines when needed inside the content.xml file, compress it back...) Regards, -- Benoît Minisini -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] tab
Perfect, thx! 2009/12/5 Fabien Bodard gambas...@gmail.com 2009/12/5 yuhej robert1juh...@gmail.com: Hi, Is there any option to hide some of the tabs of a tab control? For different users I wish to show different information (depending on their right) but I don't know if I may make invisible or not enabled some of the tabs. TabStrip1[0].Visible = FALSE orTabStrip1[0].Enabled = FALSE Another quesion: can I change the order of the tabs (in design time)? yes you have an option on right click on the form editor Thanks, Robi -- View this message in context: http://old.nabble.com/tab-tp26656660p26656660.html Sent from the gambas-user mailing list archive at Nabble.com. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Serial ports in Gambas
Hello, In the examples you find one for the serial port: Open Example \ Networking \ SerialPort. It shows the basics. You can send commands from your code (by taking them for example from a textbox filled by the user) with PRINT or WRITE, you can read from the serial port with READ. Regards, Robi 2009/11/23 Kari Laine klai...@gmail.com Hi, after not being active with Gambas for some time now. I am thinking of making a program with it. I am learning products from http://www.byvac.com especially the BV513, which is PIC-based microcontroller programmed in basic. The sofware from Byvac is for Windows only. I tried with minicom but it sends something weird to BV513 so it does not work. So my need is to write a simple terminal program. For that I need serial port support - is there that in Gambas? I looked at the examples and could not find any example. What control should I use as central control where user types commands and results which are received from the device are printed? Sorry for these stupid questions. Best Regards Kari Laine -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
Fabien, Thanks for your help, now it works properly! Robi 2009/11/13 Fabien Bodard gambas...@gmail.com Cannot load component 'gb.form.dialog': cannot find library you need to install this component too / 2009/11/13 Fabien Bodard gambas...@gmail.com: my gambas2 is the ubuntu one... :/ nothing special all is working well here 2009/11/13 Robert JUHASZ robert1juh...@gmail.com: Good news! Do you mean that you installed and runs normally or tried from the source code? How can I have installed the gambas-db-mysql on computers where I don't have the gambas? (I just started with Ubuntu as well) On the PC I develop (Gambas installed) is it possible that this component is missing? From the IDE I can fairly acces the mysql. I also use Gambas 2.17 but I'm not 100% sure if I installed correcly. Do you have a link where can I find a complete version? The links on the wiki are broken for me. Sorry for the lots of questions.. Thx, Robi 2009/11/13 Fabien Bodard gambas...@gmail.com no problem here on gambas2.17 with ubuntu 9.10 please install the gambas-db-mysql package 2009/11/13 Robert JUHASZ robert1juh...@gmail.com: Superb, thanks in advance! The packed project is attached in a previous mail of this thread (dated 30 of October). Can you catch it or should I resend? The source is normally included in the package. Starting from the Gambas IDE it should work. If installed and started (will appear on the others category) then i should show the error message immediately as for the login I use mysql. The bad message is not that the database doesn't exists (it's normal for the first connection) but that the driver doesn't exists. If it can launch and requires login and password, the first time it works with administrator and rendszergazda. It created it's database after in the administrator sheet. If you meet the same troube as I do then you'll have problem even to use Gambas with mysql (same message: no driver for mysql). When removing the application with the Janitor and also the dependencies proposed by the Janitor then everything becomes normal with Gambas. Many thank, Robi 2009/11/13 Fabien Bodard gambas...@gmail.com i can try 2009/11/13 Robert JUHASZ robert1juh...@gmail.com: The installation failed also on computers where I had - mysql server / client - gambas Could someone pack my project for testing or trying to install the package I did to identify which end is inproperly done? Thx, Robi 2009/11/12 Fabien Bodard gambas...@gmail.com the mysql driver does not depend on gambas but on the installation of libmysqlclient !! 2009/11/12 Robert JUHASZ robert1juh...@gmail.com: Hello, I'm still suffering with making the correct installation package. It is painful as I'd like to share my application with my colleagues. I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 but same problem: it notes that no driver for mysql. I'd highly appreciate if someone can help. Robi 2009/11/2 Robert JUHASZ robert1juh...@gmail.com Hello, I use Gambas 2.16 and 2.17 (I work on two machines). I installed the application on these machines i.e. the gambas IDE was already on the machine. Is it possible that it was the problem? I may try to make an install on a virgin machine. Robi 2009/11/1 Benoît Minisini gam...@users.sourceforge.net Hello Benoît, Now the packaging is OK since the fakeroot is added. When I run the install file then it works. When I start my installed application, it doesn't work (refers to missing mysql driver). Even worst, when I start gambas it also doesn't work anymore. It comes directly after running the installation package file. - ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file - I confirmed the same thing on 2 different PC with ubuntu 9.04 and on the second with ubuntu 9.10. Always the same. Gambas comes back after running the Computer Janitor and removing first my application and also the proposed gambas components. I attach the package file, if you are brave enough to risk to reproduce the error :-) (The source is also included, I think) Thanks if you have time to have a look on it. Regards, Robi You must use at least Gambas 2.14 to be able to add a dependency on gb.db.mysql in your project. The bug has been fixed in that release. The package you created will install all
Re: [Gambas-user] packaging
Superb, thanks in advance! The packed project is attached in a previous mail of this thread (dated 30 of October). Can you catch it or should I resend? The source is normally included in the package. Starting from the Gambas IDE it should work. If installed and started (will appear on the others category) then i should show the error message immediately as for the login I use mysql. The bad message is not that the database doesn't exists (it's normal for the first connection) but that the driver doesn't exists. If it can launch and requires login and password, the first time it works with administrator and rendszergazda. It created it's database after in the administrator sheet. If you meet the same troube as I do then you'll have problem even to use Gambas with mysql (same message: no driver for mysql). When removing the application with the Janitor and also the dependencies proposed by the Janitor then everything becomes normal with Gambas. Many thank, Robi 2009/11/13 Fabien Bodard gambas...@gmail.com i can try 2009/11/13 Robert JUHASZ robert1juh...@gmail.com: The installation failed also on computers where I had - mysql server / client - gambas Could someone pack my project for testing or trying to install the package I did to identify which end is inproperly done? Thx, Robi 2009/11/12 Fabien Bodard gambas...@gmail.com the mysql driver does not depend on gambas but on the installation of libmysqlclient !! 2009/11/12 Robert JUHASZ robert1juh...@gmail.com: Hello, I'm still suffering with making the correct installation package. It is painful as I'd like to share my application with my colleagues. I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 but same problem: it notes that no driver for mysql. I'd highly appreciate if someone can help. Robi 2009/11/2 Robert JUHASZ robert1juh...@gmail.com Hello, I use Gambas 2.16 and 2.17 (I work on two machines). I installed the application on these machines i.e. the gambas IDE was already on the machine. Is it possible that it was the problem? I may try to make an install on a virgin machine. Robi 2009/11/1 Benoît Minisini gam...@users.sourceforge.net Hello Benoît, Now the packaging is OK since the fakeroot is added. When I run the install file then it works. When I start my installed application, it doesn't work (refers to missing mysql driver). Even worst, when I start gambas it also doesn't work anymore. It comes directly after running the installation package file. - ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file - I confirmed the same thing on 2 different PC with ubuntu 9.04 and on the second with ubuntu 9.10. Always the same. Gambas comes back after running the Computer Janitor and removing first my application and also the proposed gambas components. I attach the package file, if you are brave enough to risk to reproduce the error :-) (The source is also included, I think) Thanks if you have time to have a look on it. Regards, Robi You must use at least Gambas 2.14 to be able to add a dependency on gb.db.mysql in your project. The bug has been fixed in that release. The package you created will install all the dependencies needed to run *your* program, but not the Gambas IDE. If you want to run the Gambas IDE on the destination system, you must install the gambas2-ide package. If you have installed the gambas2-ide package, and can't run Gambas, then the package is buggy. Regards, -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo
Re: [Gambas-user] packaging
Good news! Do you mean that you installed and runs normally or tried from the source code? How can I have installed the gambas-db-mysql on computers where I don't have the gambas? (I just started with Ubuntu as well) On the PC I develop (Gambas installed) is it possible that this component is missing? From the IDE I can fairly acces the mysql. I also use Gambas 2.17 but I'm not 100% sure if I installed correcly. Do you have a link where can I find a complete version? The links on the wiki are broken for me. Sorry for the lots of questions.. Thx, Robi 2009/11/13 Fabien Bodard gambas...@gmail.com no problem here on gambas2.17 with ubuntu 9.10 please install the gambas-db-mysql package 2009/11/13 Robert JUHASZ robert1juh...@gmail.com: Superb, thanks in advance! The packed project is attached in a previous mail of this thread (dated 30 of October). Can you catch it or should I resend? The source is normally included in the package. Starting from the Gambas IDE it should work. If installed and started (will appear on the others category) then i should show the error message immediately as for the login I use mysql. The bad message is not that the database doesn't exists (it's normal for the first connection) but that the driver doesn't exists. If it can launch and requires login and password, the first time it works with administrator and rendszergazda. It created it's database after in the administrator sheet. If you meet the same troube as I do then you'll have problem even to use Gambas with mysql (same message: no driver for mysql). When removing the application with the Janitor and also the dependencies proposed by the Janitor then everything becomes normal with Gambas. Many thank, Robi 2009/11/13 Fabien Bodard gambas...@gmail.com i can try 2009/11/13 Robert JUHASZ robert1juh...@gmail.com: The installation failed also on computers where I had - mysql server / client - gambas Could someone pack my project for testing or trying to install the package I did to identify which end is inproperly done? Thx, Robi 2009/11/12 Fabien Bodard gambas...@gmail.com the mysql driver does not depend on gambas but on the installation of libmysqlclient !! 2009/11/12 Robert JUHASZ robert1juh...@gmail.com: Hello, I'm still suffering with making the correct installation package. It is painful as I'd like to share my application with my colleagues. I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 but same problem: it notes that no driver for mysql. I'd highly appreciate if someone can help. Robi 2009/11/2 Robert JUHASZ robert1juh...@gmail.com Hello, I use Gambas 2.16 and 2.17 (I work on two machines). I installed the application on these machines i.e. the gambas IDE was already on the machine. Is it possible that it was the problem? I may try to make an install on a virgin machine. Robi 2009/11/1 Benoît Minisini gam...@users.sourceforge.net Hello Benoît, Now the packaging is OK since the fakeroot is added. When I run the install file then it works. When I start my installed application, it doesn't work (refers to missing mysql driver). Even worst, when I start gambas it also doesn't work anymore. It comes directly after running the installation package file. - ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file - I confirmed the same thing on 2 different PC with ubuntu 9.04 and on the second with ubuntu 9.10. Always the same. Gambas comes back after running the Computer Janitor and removing first my application and also the proposed gambas components. I attach the package file, if you are brave enough to risk to reproduce the error :-) (The source is also included, I think) Thanks if you have time to have a look on it. Regards, Robi You must use at least Gambas 2.14 to be able to add a dependency on gb.db.mysql in your project. The bug has been fixed in that release. The package you created will install all the dependencies needed to run *your* program, but not the Gambas IDE. If you want to run the Gambas IDE on the destination system, you must install the gambas2-ide package. If you have installed the gambas2-ide package, and can't run Gambas, then the package is buggy. Regards, -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year
Re: [Gambas-user] packaging
Hello, I'm still suffering with making the correct installation package. It is painful as I'd like to share my application with my colleagues. I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 but same problem: it notes that no driver for mysql. I'd highly appreciate if someone can help. Robi 2009/11/2 Robert JUHASZ robert1juh...@gmail.com Hello, I use Gambas 2.16 and 2.17 (I work on two machines). I installed the application on these machines i.e. the gambas IDE was already on the machine. Is it possible that it was the problem? I may try to make an install on a virgin machine. Robi 2009/11/1 Benoît Minisini gam...@users.sourceforge.net Hello Benoît, Now the packaging is OK since the fakeroot is added. When I run the install file then it works. When I start my installed application, it doesn't work (refers to missing mysql driver). Even worst, when I start gambas it also doesn't work anymore. It comes directly after running the installation package file. - ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file - I confirmed the same thing on 2 different PC with ubuntu 9.04 and on the second with ubuntu 9.10. Always the same. Gambas comes back after running the Computer Janitor and removing first my application and also the proposed gambas components. I attach the package file, if you are brave enough to risk to reproduce the error :-) (The source is also included, I think) Thanks if you have time to have a look on it. Regards, Robi You must use at least Gambas 2.14 to be able to add a dependency on gb.db.mysql in your project. The bug has been fixed in that release. The package you created will install all the dependencies needed to run *your* program, but not the Gambas IDE. If you want to run the Gambas IDE on the destination system, you must install the gambas2-ide package. If you have installed the gambas2-ide package, and can't run Gambas, then the package is buggy. Regards, -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
The installation failed also on computers where I had - mysql server / client - gambas Could someone pack my project for testing or trying to install the package I did to identify which end is inproperly done? Thx, Robi 2009/11/12 Fabien Bodard gambas...@gmail.com the mysql driver does not depend on gambas but on the installation of libmysqlclient !! 2009/11/12 Robert JUHASZ robert1juh...@gmail.com: Hello, I'm still suffering with making the correct installation package. It is painful as I'd like to share my application with my colleagues. I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 but same problem: it notes that no driver for mysql. I'd highly appreciate if someone can help. Robi 2009/11/2 Robert JUHASZ robert1juh...@gmail.com Hello, I use Gambas 2.16 and 2.17 (I work on two machines). I installed the application on these machines i.e. the gambas IDE was already on the machine. Is it possible that it was the problem? I may try to make an install on a virgin machine. Robi 2009/11/1 Benoît Minisini gam...@users.sourceforge.net Hello Benoît, Now the packaging is OK since the fakeroot is added. When I run the install file then it works. When I start my installed application, it doesn't work (refers to missing mysql driver). Even worst, when I start gambas it also doesn't work anymore. It comes directly after running the installation package file. - ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file - I confirmed the same thing on 2 different PC with ubuntu 9.04 and on the second with ubuntu 9.10. Always the same. Gambas comes back after running the Computer Janitor and removing first my application and also the proposed gambas components. I attach the package file, if you are brave enough to risk to reproduce the error :-) (The source is also included, I think) Thanks if you have time to have a look on it. Regards, Robi You must use at least Gambas 2.14 to be able to add a dependency on gb.db.mysql in your project. The bug has been fixed in that release. The package you created will install all the dependencies needed to run *your* program, but not the Gambas IDE. If you want to run the Gambas IDE on the destination system, you must install the gambas2-ide package. If you have installed the gambas2-ide package, and can't run Gambas, then the package is buggy. Regards, -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
Hello All, I have a very basic question... how should I install Gambas 2 (latest version) for having the full version? I work on Ubuntu 9.04, 32bit version. I use database (mysql), serial port besida the standard features and I'd like to be able to make an installation package. On the wiki, the link doesn't work, the Ubuntu built-in version (2.8) doesn't handle the database part. I used http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install which installs the last version and works 100% correctly until I try to make a package (fail with a missing fakeroute component). When installing fakeroute then the package is created but I was not able to install my application, even the gambas behaved starnge after. Thanks for your help in advance. Robi 2009/10/5 Robert JUHASZ robert1juh...@gmail.com Hi, It's no more just a packaging problem, even Gambas doesn't start up. After re-installing gambas it gives the same error message (ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library..). It is very embarrasseing as I don't know what to do now. If I reinstall ubuntu + gambas, probably will run again, but I don't know why it happened and how to avoid it to come back. By the way, once I installed someting (like gambas itself or my application) how can I uninstall it? I can't see them in the Synaptick Package Manager. :-( Robi 2009/10/5, Benoît Minisini gam...@users.sourceforge.net: Hi, I added fakeroot from the Synaptic Package Manager and with this I could pack my application - soma packages with different extension. I launched the .deb package which installed the application! I just had some complications after... Whet I started the application it refuses to connect to it's database by saying no driver for mySQL. However the executable worked properly just before. To catch the error I start gambas2 ... which refuses to start by saying ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file So now I would need some mainly to understand why it could have happened. I removed fakerote but no change. I don't know how to uninstall my application but it shouldn't affect gambas itself. Maybe I need to reinstall gambas. The last time I followed these instructions and it worked well except the packaging: http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install Thanks for any advice, Robi If you want your project to depend on the mysql driver, you must explicitely check it in the project property dialog, provided that your gambas version is high enough (= 2.14). Regards, -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial port
Hello, At the end it works almost fine to try to open the serial port and if no error I suppose that it works. Now I try to use it. I do the same for ttyS0..S9. On the ttyS0 it finds the serial port correctly, on the S1, S3-S9 it finds out that there is no serial port. On the ttyS2 it finds something (no error when I open). I don't know what it is and no idea how to find out. For those where I found the port, I ask for the equipment ID to identify if it's there or not. OK for the S0, but the ttyS2 completely freeze and when I try to close the port there is no reaction. In such a case (TRY mySerialPort.close --- no response, no error message but the program frozen) is there any way to stop the process with a timeout or does anyone has an ide ho to handle it? Any help would be appreciated. Robi 2009/9/28 Robert JUHASZ robert1juh...@gmail.com thanks a lot !!! 2009/9/28 Werner wd...@netfront.net Robert JUHASZ wrote: Hello, One more question to the same project. It is a measurement program where the user can give equations for calculated quantities. Is there an easy way in Gambas to execute them? For example if I have a string (formula) of 2*3+6*(4-1) how can I calculate the result? Thanks, Robi with Eval Regards Werner PS: It is better to start a new thread for a new question. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial port
Salut, I tried to follow what you wrote, here you are the result. From the other side when working on it and waiting for a little longer time, I recognised that the program is not permanently frozen, after several 10 seconds it came back to normal. So at the end it's not so serious as expected. Regards, Robi -- (gdb) bt #0 0xb7fe8430 in __kernel_vsyscall () #1 0xb786514c in __close_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb691de2e in CloseSerialPort (fd=18, oldtio=0xa3037b8) at tools.c:353 #3 0xb6922850 in CSerialPort_stream_close (stream=0xa303718) at CSerialPort.c:261 #4 0x0805529d in STREAM_close (stream=0xa303718) at gbx_stream.c:180 #5 0x0804e8b0 in EXEC_call_native (exec=0x8065c73 CSTREAM_close, object=0xa303710, type=0, param=0x9f1d338) at gbx_exec.c:844 #6 0x0804f179 in EXEC_native () at gbx_exec.c:962 #7 0x0806bc90 in EXEC_loop () at gbx_exec_loop.c:1042 #8 0x0804f487 in EXEC_function_loop () at gbx_exec.c:703 #9 0x0804f75d in EXEC_function_real () at gbx_exec.c:690 #10 0x0805d5ef in raise_event (observer=value optimized out, object=0xa274c10, func_id=value optimized out, nparam=0) at gbx_api.c:490 #11 0x0805db45 in GB_Raise (object=0xa274c10, event_id=16, nparam=0) at gbx_api.c:594 #12 0xb726fa38 in gb_raise_button_Click (sender=0xa289ed8) at CButton.cpp:44 #13 0xb724e15e in gControl::emit (this=0x0, signal=0xb6924ff4) at gcontrol.cpp:1482 #14 0xb72535af in bt_click (object=0xa259c88, data=0xa289ed8) at gbutton.cpp:58 #15 0xb6c193a4 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #16 0xb6c0bc7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 ---Type return to continue, or q return to quit--- #17 0xb6c21e57 in ?? () from /usr/lib/libgobject-2.0.so.0 #18 0xb6c234b9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #19 0xb6c23936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #20 0xb6edcbda in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0 #21 0xb6ede1f8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #22 0xb6c193a4 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #23 0xb6c0a3d9 in ?? () from /usr/lib/libgobject-2.0.so.0 #24 0xb6c0bc7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #25 0xb6c216c0 in ?? () from /usr/lib/libgobject-2.0.so.0 #26 0xb6c234b9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #27 0xb6c23936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #28 0xb6edcc7a in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0 #29 0xb6edccb3 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #30 0xb6f97526 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #31 0xb6c0a3d9 in ?? () from /usr/lib/libgobject-2.0.so.0 #32 0xb6c0bc7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #33 0xb6c21aff in ?? () from /usr/lib/libgobject-2.0.so.0 #34 0xb6c2334f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #35 0xb6c23936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #36 0xb70b22ae in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #37 0xb6f8ff7c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #38 0xb6f91327 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 - 2009/10/13 Benoît Minisini gam...@users.sourceforge.net Hello, At the end it works almost fine to try to open the serial port and if no error I suppose that it works. Now I try to use it. I do the same for ttyS0..S9. On the ttyS0 it finds the serial port correctly, on the S1, S3-S9 it finds out that there is no serial port. On the ttyS2 it finds something (no error when I open). I don't know what it is and no idea how to find out. For those where I found the port, I ask for the equipment ID to identify if it's there or not. OK for the S0, but the ttyS2 completely freeze and when I try to close the port there is no reaction. In such a case (TRY mySerialPort.close --- no response, no error message but the program frozen) is there any way to stop the process with a timeout or does anyone has an ide ho to handle it? Any help would be appreciated. Robi Apparently when closing a serial port, the gb.net component does not just call the close() system call. Can you break the frozen program with gdb and see where it is locked? $ gdb /usr/bin/gbx2 pid of frozen program ... (gdb) bt ... Send me the result of the 'bt' command. Regards, -- Benoît Minisini -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12,
Re: [Gambas-user] packaging
Hi, It's no more just a packaging problem, even Gambas doesn't start up. After re-installing gambas it gives the same error message (ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library..). It is very embarrasseing as I don't know what to do now. If I reinstall ubuntu + gambas, probably will run again, but I don't know why it happened and how to avoid it to come back. By the way, once I installed someting (like gambas itself or my application) how can I uninstall it? I can't see them in the Synaptick Package Manager. :-( Robi 2009/10/5, Benoît Minisini gam...@users.sourceforge.net: Hi, I added fakeroot from the Synaptic Package Manager and with this I could pack my application - soma packages with different extension. I launched the .deb package which installed the application! I just had some complications after... Whet I started the application it refuses to connect to it's database by saying no driver for mySQL. However the executable worked properly just before. To catch the error I start gambas2 ... which refuses to start by saying ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file So now I would need some mainly to understand why it could have happened. I removed fakerote but no change. I don't know how to uninstall my application but it shouldn't affect gambas itself. Maybe I need to reinstall gambas. The last time I followed these instructions and it worked well except the packaging: http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install Thanks for any advice, Robi If you want your project to depend on the mysql driver, you must explicitely check it in the project property dialog, provided that your gambas version is high enough (= 2.14). Regards, -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
Hi, I added fakeroot from the Synaptic Package Manager and with this I could pack my application - soma packages with different extension. I launched the .deb package which installed the application! I just had some complications after... Whet I started the application it refuses to connect to it's database by saying no driver for mySQL. However the executable worked properly just before. To catch the error I start gambas2 ... which refuses to start by saying ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file So now I would need some mainly to understand why it could have happened. I removed fakerote but no change. I don't know how to uninstall my application but it shouldn't affect gambas itself. Maybe I need to reinstall gambas. The last time I followed these instructions and it worked well except the packaging: http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install Thanks for any advice, Robi 2009/10/1 Charlie Reinl karl.re...@fen-net.de Am Donnerstag, den 01.10.2009, 02:34 -0700 schrieb yuhej: Hello, I'm not very far from being able to test my first Gambas application. It works from the IDE, also the executable on my PC. I try to make a package to test it on a virgin ubuntu but I haven't succeeded. I got an error message like that: - Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... sh: fakeroot: not found The package build has failed. Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. - Is there anything misiing from my system, I made a mistake or is this a bug? Thanks for your help. Robi Salut Robi, I think you have to install fakeroot -- Amicalment Charlie -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] packaging
Thanks, I'll try. Robi 2009/10/1 Doriano Blengino doriano.bleng...@fastwebnet.it yuhej ha scritto: Hello, I'm not very far from being able to test my first Gambas application. It works from the IDE, also the executable on my PC. I try to make a package to test it on a virgin ubuntu but I haven't succeeded. I got an error message like that: - Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... sh: fakeroot: not found The package build has failed. Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. - Is there anything misiing from my system, I made a mistake or is this a bug? Thanks for your help. Look at sh: fakeroot: not found. This is the classical error about missing files/commands, so I think that you miss fakeroot. Search the repository for a package named fakeroot or something like that, and install it. I also think that the person who packaged gambas for your distribution (Ubuntu?) made an error, because gambas should require fakeroot. Regards, Doriano -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] how to start a file?
Yes, it works perfectly with mySQL. Robi 2009/9/29 Robert JUHASZ robert1juh...@gmail.com Can it be an other option to load files to the mysql database as BLOB? If yes can someone tell me the command to upload and download the file from/to a certain location? This would solve my problem with the rights. Thx, Robi -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] how to start a file?
Can it be an other option to load files to the mysql database as BLOB? If yes can someone tell me the command to upload and download the file from/to a certain location? This would solve my problem with the rights. Thx, Robi -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] how to start a file?
Hi, Probably I'll try to do it directly with the files as you told. About the project: it is a small project follower with different users. And I only want to make the files accesible for those who participate in the project. So it isn't possible to define on the system level. The best could have been to have a password for the main folder so the users could access the files only through my application. I suppose that when creating a directory or copying a file by Gambas, I cannot define/change the attributes. At leas with VB I couldn't. OK, maybe I need to reconsider if I find a better way for storing the files. Regards, Robi 2009/9/27 Doriano Blengino doriano.bleng...@fastwebnet.it Robert JUHASZ ha scritto: Hello, I'm very happy with this solution and was perfect as long as I used my program myself. Now I wanna put it in a common folder on the server and for storing the files I'll use a folder. To avoid the direct access of this folder, I'll make it protected. The question now is how can I handle this kind of folder from Gambas. I don't wish to deal with the rights of teh folder. The idea is to give a read and write password to the folder and use the password from Gambas according to the user rights in Gambas. - the files will be displayed by a file view control. Is there any place of this control to enter (from code) the reading / writing password of the folder used by the control? - or, when using the Desktop.Open function, can I specify if I open the file for read only? Complicated matter... I don't understand well, but I will try to add some information you may miss. First of all, at the file system level there could be everything you need. A file can be made not accessible, or readonly, or fully writable, to every single user of the computer. This is not so simple, however, because when two different users must share some privileges, you must use groups and things get messy. Even so, protecting a folder has different effects than proteting files. For example, if you write-protect a folder, you only assure that in that folder no files will be added or deleted, but single files will remain writeable. I bet this is not what you intended. On the other hand, if a file (not its folder) is write protected to a user, then that user will have no way to modify the file - every program will open that file in read-only mode. To prevent the file from being deleted, its folder must be protected, not the file itself. Finally, to use such system, every user must login in the system using its own identifier; if you have only one copy of your program running, with different users alternating if front of it, then you should have your gambas program change user ID (there is a system call for this, but gambas don't seem to implement it). However, you can take advantage of /bin/sudo, which lets you impersonate other users. The system is configurable and not difficult to understand (see the manual page). About FileView control, it has no property for specifying a username, but you can use a textbox aside and ask the user to write its username. Desktop.Open, or any other high level shell function, can not open a file read-only; it is the final program that must be instructed to work in read-only, be it openoffice, or a CAD, or anything else. Perhaps not all the program can be instructed to do so. It is possible, however, to protect the file before launching the application, and remove the protection afterward, Or the file can be copied elsewhere and then opened, alerting the user that modifications will be lost. I don't know what you are trying to do, and what your final system should look (one computer? many? Several system-level users? Just one?) but the final solutions could be to manage the access rights inside the program - your program asks for credentials, and then decides what to show, what to open read-only and what to permit to be modified or deleted. There are add-ons for Linux which permit, at the filesystem level, to use ACLs (access control list). This way you can more easily grant permissions to single users without getting crazy with users and groups. Or you can make several folders with different permissions (one writeable to anyone, another only readeable to everyone, and so on). Hope I pointed out some useful idea, regards, -- Doriano Blengino Listen twice before you speak. This is why we have two ears, but only one mouth. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list
Re: [Gambas-user] serial port
Hello, One more question to the same project. It is a measurement program where the user can give equations for calculated quantities. Is there an easy way in Gambas to execute them? For example if I have a string (formula) of 2*3+6*(4-1) how can I calculate the result? Thanks, Robi 2009/9/21 Mike mike.cr...@westnet.com.au Robert JUHASZ wrote: Useful info, I'll do like that. Thanks, Robi 2009/9/19 nando nand...@nothingsimple.com In my Linux serial port experience, serial port devices are named: /dev/ttyS0..9 and upwards /dev/ttyUSB0..9 and upwards depending on what is plugged in USB. I have done a lot of serial port stuff with Gambas. I know that trying to open then with the serial port control will fail is non-exising port. This error can be detected. It can be possible to open a port as a test to see if it exists, but you may be changing parameters and stealing chars from an existing connection. I've had this happen tooreally messes things up. -Fernando -- Original Message --- From: yuhej robert1juh...@gmail.com To: gambas-user@lists.sourceforge.net Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) Subject: [Gambas-user] serial port Hello, I can see that Gambas can handle the serial ports which is a very good news for me. Can someone tell me how can I get the list of the serial ports of my computer? I wish to make an autodetect function and only allow to select from the working serial ports. Robi -- View this message in context: http://www.nabble.com/serial-port-tp25518421p25518421.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Is the list up. Mike -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] how to start a file?
Hello, I'm very happy with this solution and was perfect as long as I used my program myself. Now I wanna put it in a common folder on the server and for storing the files I'll use a folder. To avoid the direct access of this folder, I'll make it protected. The question now is how can I handle this kind of folder from Gambas. I don't wish to deal with the rights of teh folder. The idea is to give a read and write password to the folder and use the password from Gambas according to the user rights in Gambas. - the files will be displayed by a file view control. Is there any place of this control to enter (from code) the reading / writing password of the folder used by the control? - or, when using the Desktop.Open function, can I specify if I open the file for read only? Thanks, Robi 2009/9/16 Robert JUHASZ robert1juh...@gmail.com .. and it works perfectly, thanks for all of you who helped! Robi 2009/9/15 Ricardo Díaz Martín oceanosoftlapa...@gmail.com maybe the same... 8-) 2009/9/15 Benoît Minisini gam...@users.sourceforge.net You can use this (you need to have installed in your system xdg-open command - out of the box in ubuntu): EXEC [xdg-open, PathOfTheFileYouCanOpen] xdg-open runs like in windows start Regards, Ricardo Díaz Guess what Desktop.Open() does... -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial port
Useful info, I'll do like that. Thanks, Robi 2009/9/19 nando nand...@nothingsimple.com In my Linux serial port experience, serial port devices are named: /dev/ttyS0..9 and upwards /dev/ttyUSB0..9 and upwards depending on what is plugged in USB. I have done a lot of serial port stuff with Gambas. I know that trying to open then with the serial port control will fail is non-exising port. This error can be detected. It can be possible to open a port as a test to see if it exists, but you may be changing parameters and stealing chars from an existing connection. I've had this happen tooreally messes things up. -Fernando -- Original Message --- From: yuhej robert1juh...@gmail.com To: gambas-user@lists.sourceforge.net Sent: Fri, 18 Sep 2009 21:08:04 -0700 (PDT) Subject: [Gambas-user] serial port Hello, I can see that Gambas can handle the serial ports which is a very good news for me. Can someone tell me how can I get the list of the serial ports of my computer? I wish to make an autodetect function and only allow to select from the working serial ports. Robi -- View this message in context: http://www.nabble.com/serial-port-tp25518421p25518421.html Sent from the gambas-user mailing list archive at Nabble.com. -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] how to start a file?
.. and it works perfectly, thanks for all of you who helped! Robi 2009/9/15 Ricardo Díaz Martín oceanosoftlapa...@gmail.com maybe the same... 8-) 2009/9/15 Benoît Minisini gam...@users.sourceforge.net You can use this (you need to have installed in your system xdg-open command - out of the box in ubuntu): EXEC [xdg-open, PathOfTheFileYouCanOpen] xdg-open runs like in windows start Regards, Ricardo Díaz Guess what Desktop.Open() does... -- Benoît Minisini -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] how to start a file?
Hi Dimitris, Thanks for your answer. I'm not sure if this is exactly what I want but I'll check. I try to tell more concretly my need: I wanna make a small project follower application for my colleagues where they can follow some actions and attach files. For instance a pdf file with the customer spec. The data, I'll store in a mySQL database where I can put the path as well. When the user (or an other user) opens the project and clicks on the link, how can I tell to Gambas to open the file with the default application (in the example with acrobat reader). I just need the same effect as when I double click on the icon. If this is what you described just confirm please. Thanks, Robi 2009/9/14 Dimitris Anogiatis dos...@gmail.com Hey Robi, one of the options is to use the gb.settings library. while you're on the IDE press CTRL and P then click on the Componets tab, find gb.settings and click on the box on the left side of the selection then press Ok now in your code you need to use this on top of your code (ie put this on the first line of your form or module) Public pathSettings AS NEW Settings(User.Home / Application.Name / Application.Name .conf) this means that if your user account name is robi and your application's name is myApp then the settings file will be created in this path /home/robi/myApp/myapp.conf now to save settings you use pathSettings like this pathSettings[Files/LoadFrom]=your path this will create a category Files in your settings file and under that it will create a LoadFrom item where you can store your path's value to read that value all you have to do is myPath = pathSettings[Files/LoadFrom] I hope it helps Regards Dimitris On Sun, Sep 13, 2009 at 4:39 PM, yuhej robert1juh...@gmail.com wrote: Hello, I just start with Gambas (used VB before) and hopefully I found a place where I can get some answers. At this moment I wish to add an option of attaching files in my application (by saving the path) and to open them later. Can someone tell me how can I start a file from Gambas? For instance a spreadsheet with open office? Thanks for your help in advance. Robi -- View this message in context: http://www.nabble.com/how-to-start-a-file--tp25416046p25416046.html Sent from the gambas-user mailing list archive at Nabble.com. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] how to start a file?
Hi, I mean to let the user to attach a file in run time (I save the link) and let him run the file. Just I don't know how open that file using the link (not for my gambas application but just for the user with the default program of the attached file). In VBA I used ShellExecute for running programs, files or following links. I just would need the same. Thanks, Robi 2009/9/14 Jussi Lahtinen jussi.lahti...@gmail.com I'm not sure what you mean, but this code creates file. Dim hFile as File Dim sString as String = Something to write. hFile = Open testfile.txt For Create Write #hFile, sString Close #hFile More from here: http://gambasdoc.org/help/lang/open http://gambasdoc.org/help/cat/stream Or if you mean how to attach files to your project. For example; right mouse click on Data folder -- New -- Other... then just choose what ever you need. Jussi On Mon, Sep 14, 2009 at 02:18, Dimitris Anogiatis dos...@gmail.com wrote: Hey Robi, one of the options is to use the gb.settings library. while you're on the IDE press CTRL and P then click on the Componets tab, find gb.settings and click on the box on the left side of the selection then press Ok now in your code you need to use this on top of your code (ie put this on the first line of your form or module) Public pathSettings AS NEW Settings(User.Home / Application.Name / Application.Name .conf) this means that if your user account name is robi and your application's name is myApp then the settings file will be created in this path /home/robi/myApp/myapp.conf now to save settings you use pathSettings like this pathSettings[Files/LoadFrom]=your path this will create a category Files in your settings file and under that it will create a LoadFrom item where you can store your path's value to read that value all you have to do is myPath = pathSettings[Files/LoadFrom] I hope it helps Regards Dimitris On Sun, Sep 13, 2009 at 4:39 PM, yuhej robert1juh...@gmail.com wrote: Hello, I just start with Gambas (used VB before) and hopefully I found a place where I can get some answers. At this moment I wish to add an option of attaching files in my application (by saving the path) and to open them later. Can someone tell me how can I start a file from Gambas? For instance a spreadsheet with open office? Thanks for your help in advance. Robi -- View this message in context: http://www.nabble.com/how-to-start-a-file--tp25416046p25416046.html Sent from the gambas-user mailing list archive at Nabble.com. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] how to start a file?
I just read the answers in a reverse order... I believe that the Desktop.Open is exactly what I need. Many thanks! I'll run the program on a server and I let the user to decide if he saves only the link or attach the file - in this case I'll copy the referred file to a dedicated folder on the server and I save the link of this copy. Regards, Robi 2009/9/14 Dimitris Anogiatis dos...@gmail.com Hey Robi, What I described above is a way to store information in a configuration file. what you need is different Files are going to be attached where? Where is the pdf going to be stored? in the same computer where the project is running? or in a website? To open a file with the default application, try using the gb.desktop component and Desktop.Open() as Benoit suggested. call it like this Desktop.Open(file:///myPDF.pdf) if it is for a file or Desktop.Open(http://myserver.com/myPDF.pdf;) if the file is on a server somewhere on the internet. On Mon, Sep 14, 2009 at 8:40 AM, Robert JUHASZ robert1juh...@gmail.com wrote: Hi Dimitris, Thanks for your answer. I'm not sure if this is exactly what I want but I'll check. I try to tell more concretly my need: I wanna make a small project follower application for my colleagues where they can follow some actions and attach files. For instance a pdf file with the customer spec. The data, I'll store in a mySQL database where I can put the path as well. When the user (or an other user) opens the project and clicks on the link, how can I tell to Gambas to open the file with the default application (in the example with acrobat reader). I just need the same effect as when I double click on the icon. If this is what you described just confirm please. Thanks, Robi 2009/9/14 Dimitris Anogiatis dos...@gmail.com Hey Robi, one of the options is to use the gb.settings library. while you're on the IDE press CTRL and P then click on the Componets tab, find gb.settings and click on the box on the left side of the selection then press Ok now in your code you need to use this on top of your code (ie put this on the first line of your form or module) Public pathSettings AS NEW Settings(User.Home / Application.Name / Application.Name .conf) this means that if your user account name is robi and your application's name is myApp then the settings file will be created in this path /home/robi/myApp/myapp.conf now to save settings you use pathSettings like this pathSettings[Files/LoadFrom]=your path this will create a category Files in your settings file and under that it will create a LoadFrom item where you can store your path's value to read that value all you have to do is myPath = pathSettings[Files/LoadFrom] I hope it helps Regards Dimitris On Sun, Sep 13, 2009 at 4:39 PM, yuhej robert1juh...@gmail.com wrote: Hello, I just start with Gambas (used VB before) and hopefully I found a place where I can get some answers. At this moment I wish to add an option of attaching files in my application (by saving the path) and to open them later. Can someone tell me how can I start a file from Gambas? For instance a spreadsheet with open office? Thanks for your help in advance. Robi -- View this message in context: http://www.nabble.com/how-to-start-a-file--tp25416046p25416046.html Sent from the gambas-user mailing list archive at Nabble.com. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what