[Gambas-user] Gambas 3.9.1
First of all I have to say I am very happy that Gambas updates through dnf. But: Why is it that arrays are changed. I had to go through all my software .count en .sort don't seem to work anymore and produce an error! Further I placed in a childform a form with parent the mainform. Suddenly It is not controlable anymore. It appears over all forms on the screen and I cannot set visible to false. I HAVE to say that I am very enthousiastic about Gambas and I am using it for nearly ten years now. But these changes in the software make me very, very sad. Please cut the crap, don't try to be Microsoft! Roel -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas on OSX
Sorry I'm not familiar with XCode. In the end I want to run the software on more than one osx machine. So without much hassle on every machine. Op 11-07-16 om 10:33 schreef Alexie: I don't think there is a dmg to be downloaded, but did you try yourself to compile Gambas with XCode? 2016-07-11 8:13 GMT+02:00 Roel Touwen [1]<r...@touwtje.info>: Anybody? Op 08-07-16 om 11:41 schreef Roel Touwen: Hi All, Browsing on the internet I found someone who already in 2011 succeeded in porting Gambas to OSX. Is there already a working Gambas available for OSX? It would be fantastic! Thanks Roel Touwen -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. [2]http://sdm.link/attshape ___ Gambas-user mailing list [3]Gambas-user@lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. [5]http://sdm.link/attshape ___ Gambas-user mailing list [6]Gambas-user@lists.sourceforge.net [7]https://lists.sourceforge.net/lists/listinfo/gambas-user -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. [8]http://sdm.link/attshape ___ Gambas-user mailing list [9]Gambas-user@lists.sourceforge.net [10]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. mailto:r...@touwtje.info 2. http://sdm.link/attshape 3. mailto:Gambas-user@lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user 5. http://sdm.link/attshape 6. mailto:Gambas-user@lists.sourceforge.net 7. https://lists.sourceforge.net/lists/listinfo/gambas-user 8. http://sdm.link/attshape 9. mailto:Gambas-user@lists.sourceforge.net 10. https://lists.sourceforge.net/lists/listinfo/gambas-user -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gambas on OSX
Anybody? Op 08-07-16 om 11:41 schreef Roel Touwen: > Hi All, > > Browsing on the internet I found someone who already in 2011 succeeded > in porting Gambas to OSX. > > Is there already a working Gambas available for OSX? It would be fantastic! > > Thanks > > Roel Touwen > > > > -- > Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gambas on OSX
Hi All, Browsing on the internet I found someone who already in 2011 succeeded in porting Gambas to OSX. Is there already a working Gambas available for OSX? It would be fantastic! Thanks Roel Touwen -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Mime component to decode popmessage
Anybody? Op 24-03-16 om 14:36 schreef Roel Touwen: > Hi All, > > Today I started working with the pop3 component. To display the message > in (e.g) a webbrowser I have to decode the pop3 message. > > In the sample this has not been worked out. Moreover on remarks as: > 'this should work I get error messages in several emails. > > So: Anybody a short sample how to decode the mime message? > > Thanks for now and have a good easter weekend you all! > > Roel Touwen > > > -- > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140 > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Mime component to decode popmessage
Hi All, Today I started working with the pop3 component. To display the message in (e.g) a webbrowser I have to decode the pop3 message. In the sample this has not been worked out. Moreover on remarks as: 'this should work I get error messages in several emails. So: Anybody a short sample how to decode the mime message? Thanks for now and have a good easter weekend you all! Roel Touwen -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Storing files in clipboard
Already solved: mimetype=uri-list op 04-03-16 14:06, Roel Touwen schreef: > Hi All, > > I would place a file in the clipboard so I can paste that in the os. I > presume I have to use the mimetype in clipboard.copy() but what mimetype > to use. > >Clipboard.Copy((OrgBasePath & "/" & tv.key), "*text/directory*") > > Thanks! > > Roel > > -- > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Storing files in clipboard
Hi All, I would place a file in the clipboard so I can paste that in the os. I presume I have to use the mimetype in clipboard.copy() but what mimetype to use. Clipboard.Copy((OrgBasePath & "/" & tv.key), "*text/directory*") Thanks! Roel -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] String conversion for printing
Thanks all, This was the solution to my problem. Grtz Roel op 19-02-16 07:48, Ivan Kern schreef: > Hello, i have had the same problem before i used conversion into > ISO-8859-15. > > sTextCopyToPDF = Conv$(strPrintCopyText, "UTF-8", "ISO-8859-15") > > > > Ivan > > -- > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] String conversion for printing
The whole printing procedure works fine except for the 'strange' characters like é ë etc. As a base I used the printing sample of Gambas3. Now I'm printing to PDF by providing a filename. In the draw section I simply use: Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) Grtz Roel op 18-02-16 15:04, Benoît Minisini schreef: > Le 18/02/2016 14:59, Roel Touwen a écrit : >> Hi All, >> >> I have an application that prints. The problem is that when I want to >> print é it appears as é. >> >> So I think I need a string conversion like Conv$ but wherever I look, >> there are no working samples. >> >> My charset of system and database are UTF8 >> >> Who? >> >> Grtz >> >> Roel Touwen >> > Can you give the details? How do you print? The project? How can anyone > help you otherwise??? > -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] String conversion for printing
Hi All, I have an application that prints. The problem is that when I want to print é it appears as é. So I think I need a string conversion like Conv$ but wherever I look, there are no working samples. My charset of system and database are UTF8 Who? Grtz Roel Touwen -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Working printsample with more than one page
Hi all, I'm converting software from Gambas 2 to 3. Printing seems to be very very different in Gambas 3. Has anyone a sample of printing more pages? So also clearing the page etc. Thanks for now. Best regards, Roel -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Working printsample with more than one page
Hi Rolf, Sounds easy, but (maybe a stupid question) but where do I send the return? Grtz Roel op 03-02-16 16:19, Rolf-Werner Eilert schreef: > Basically, I think that is easy here: Just send a Return when the "last" > row has been reached, and it will leave the printing and start a new page. > > Still, you have to define the number of page to be printed in order to > be able to start printing. > > That makes it somewhat... errr ;) > > Rolf > > Am 03.02.2016 16:05, schrieb Roel Touwen: >> Hi Rolf, >> >> In my software I print invoice, lists, whatever. When I print >> invoices I print the lines with a function which calculates where it has >> to print on the page: >> >> Public Sub PrintAt(Row As Float, Col As Integer, Txt As String) >> >> txtWidth = Draw.Font.TextWidth(txt) >> txtHeight = Draw.Font.TextHeight(txt) >> PosY = Row * 162 >> posX = Col * 55 + 50 >> Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) >> >> End >> >> Now I want to skip to the next page when variable Row exceeds a value. >> But somehow I cannot find how I can skip to the next page. So what I am >> realy looking for is the addpage function which was available in gambas 2. >> Whe I fiddled arount in my code by telling there were 2 pages, the >> content on page 2 was nog cleared, e.g. it was the same as on page 1. >> >> Any ideas? >> >> Grtz >> >> Roel Touwen >> >> >> >> op 03-02-16 15:57, Rolf-Werner Eilert schreef: >>> Hi Roel, >>> >>> The way printing is managed in Gambas3 is completely different in one >>> way: You have to tell the number of pages beforehand, then printing runs >>> automatically page for page. There is one help page that gives a rough >>> overview. >>> >>> Why do you want to clear a page? Your code will have to check what to >>> print on each page while it is printing, and you cannot stop until all >>> pages have been printed. >>> >>> In my case, the problem was how to print tables of random length. >>> Gambas2 was "simple": The program just printed a table line for line, >>> then initiated a new page when the table had reached the lower edge. >>> >>> Now I found this solution for Gambas3: The table will start at a given >>> position on the page. There are functions that I could use to measure >>> the exact height of each table line. It sums up until it finds it will >>> hit the lower end, then save the number of this line in a list, go on to >>> the next end of page and so on... After measuring and counting, the >>> number of entries in the list will tell how many pages are needed, and >>> printing can be started. >>> >>> I found that the new way of printing is way faster than the old one. It >>> is in fact so fast that I could simply print into a temporary pdf file, >>> then use this file for a preview. When the user hits OK, this pdf is >>> sent to the printer. >>> >>> On the other hand, I had to re-think a number of functions and when this >>> will happen before that etc., and still haven't completely finished :) >>> >>> Regards >>> Rolf >>> >>> Am 03.02.2016 12:03, schrieb Roel Touwen: >>>> Hi all, >>>> >>>> I'm converting software from Gambas 2 to 3. Printing seems to be very >>>> very different in Gambas 3. >>>> >>>> Has anyone a sample of printing more pages? So also clearing the page etc. >>>> >>>> Thanks for now. >>>> >>>> Best regards, >>>> >>>> Roel >>>> >>>> >>>> -- >>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance >>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >>>> Monitor end-to-end web transactions and take corrective actions now >>>> Troubleshoot faster and improve end-user experience. Signup Now! >>>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140 >>>> ___ >>>> Gambas-user mailing list >>>> Gambas-user@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> -- >>> Site24x7 APM Insight: Get D
Re: [Gambas-user] Working printsample with more than one page
Hi Rolf, In my software I print invoice, lists, whatever. When I print invoices I print the lines with a function which calculates where it has to print on the page: Public Sub PrintAt(Row As Float, Col As Integer, Txt As String) txtWidth = Draw.Font.TextWidth(txt) txtHeight = Draw.Font.TextHeight(txt) PosY = Row * 162 posX = Col * 55 + 50 Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) End Now I want to skip to the next page when variable Row exceeds a value. But somehow I cannot find how I can skip to the next page. So what I am realy looking for is the addpage function which was available in gambas 2. Whe I fiddled arount in my code by telling there were 2 pages, the content on page 2 was nog cleared, e.g. it was the same as on page 1. Any ideas? Grtz Roel Touwen op 03-02-16 15:57, Rolf-Werner Eilert schreef: > Hi Roel, > > The way printing is managed in Gambas3 is completely different in one > way: You have to tell the number of pages beforehand, then printing runs > automatically page for page. There is one help page that gives a rough > overview. > > Why do you want to clear a page? Your code will have to check what to > print on each page while it is printing, and you cannot stop until all > pages have been printed. > > In my case, the problem was how to print tables of random length. > Gambas2 was "simple": The program just printed a table line for line, > then initiated a new page when the table had reached the lower edge. > > Now I found this solution for Gambas3: The table will start at a given > position on the page. There are functions that I could use to measure > the exact height of each table line. It sums up until it finds it will > hit the lower end, then save the number of this line in a list, go on to > the next end of page and so on... After measuring and counting, the > number of entries in the list will tell how many pages are needed, and > printing can be started. > > I found that the new way of printing is way faster than the old one. It > is in fact so fast that I could simply print into a temporary pdf file, > then use this file for a preview. When the user hits OK, this pdf is > sent to the printer. > > On the other hand, I had to re-think a number of functions and when this > will happen before that etc., and still haven't completely finished :) > > Regards > Rolf > > Am 03.02.2016 12:03, schrieb Roel Touwen: >> Hi all, >> >> I'm converting software from Gambas 2 to 3. Printing seems to be very >> very different in Gambas 3. >> >> Has anyone a sample of printing more pages? So also clearing the page etc. >> >> Thanks for now. >> >> Best regards, >> >> Roel >> >> >> -- >> Site24x7 APM Insight: Get Deep Visibility into Application Performance >> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >> Monitor end-to-end web transactions and take corrective actions now >> Troubleshoot faster and improve end-user experience. Signup Now! >> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140 >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -- > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140 > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Working printsample with more than one page
Many, many thanks. I all makes sense now. Best regards, Roel Op 03-02-16 om 16:59 schreef Rolf-Werner Eilert: > What I meant is the Return command. Sorry, somewhat unfocused... > > Somewhere you start, e. g. in a Sub Start (). There you collect your > data and stuff and build the printer object, e. g. myPrinter. > > Then you say myPrinter.Print which will jump to Sub myPrinter_Begin(). > > Now you have everything running except the actual printing. But you can > already measure how long your table will be and so on. When you know how > many pages will result, you say myPrinter.Count = > numberOfPagesToBePrinted and it will automagically jump into Sub > myPrinter_Draw() as many times as pages are needed. > > While printing, if you want to end the page, within myPrinter_Draw(), > you can say > > Return > > when you want to stop before the codes ends anyway to stop this page. > But I don't need this anymore, as my new code will stop painting the > table at the right line anyway. Then printing is ready for this page, > and myPrinter_Draw() will end itself. > > Regards > Rolf > > > > Am 03.02.2016 16:22, schrieb Roel Touwen: >> Hi Rolf, >> >> Sounds easy, but (maybe a stupid question) but where do I send the return? >> >> Grtz >> >> Roel >> >> >> >> op 03-02-16 16:19, Rolf-Werner Eilert schreef: >>> Basically, I think that is easy here: Just send a Return when the "last" >>> row has been reached, and it will leave the printing and start a new page. >>> >>> Still, you have to define the number of page to be printed in order to >>> be able to start printing. >>> >>> That makes it somewhat... errr ;) >>> >>> Rolf >>> >>> Am 03.02.2016 16:05, schrieb Roel Touwen: >>>> Hi Rolf, >>>> >>>> In my software I print invoice, lists, whatever. When I print >>>> invoices I print the lines with a function which calculates where it has >>>> to print on the page: >>>> >>>> Public Sub PrintAt(Row As Float, Col As Integer, Txt As String) >>>> >>>>txtWidth = Draw.Font.TextWidth(txt) >>>>txtHeight = Draw.Font.TextHeight(txt) >>>>PosY = Row * 162 >>>>posX = Col * 55 + 50 >>>>Paint.DrawRichText(Txt, PosX, PosY, txtWidth, txtHeight) >>>> >>>> End >>>> >>>> Now I want to skip to the next page when variable Row exceeds a value. >>>> But somehow I cannot find how I can skip to the next page. So what I am >>>> realy looking for is the addpage function which was available in gambas 2. >>>> Whe I fiddled arount in my code by telling there were 2 pages, the >>>> content on page 2 was nog cleared, e.g. it was the same as on page 1. >>>> >>>> Any ideas? >>>> >>>> Grtz >>>> >>>> Roel Touwen >>>> >>>> >>>> >>>> op 03-02-16 15:57, Rolf-Werner Eilert schreef: >>>>> Hi Roel, >>>>> >>>>> The way printing is managed in Gambas3 is completely different in one >>>>> way: You have to tell the number of pages beforehand, then printing runs >>>>> automatically page for page. There is one help page that gives a rough >>>>> overview. >>>>> >>>>> Why do you want to clear a page? Your code will have to check what to >>>>> print on each page while it is printing, and you cannot stop until all >>>>> pages have been printed. >>>>> >>>>> In my case, the problem was how to print tables of random length. >>>>> Gambas2 was "simple": The program just printed a table line for line, >>>>> then initiated a new page when the table had reached the lower edge. >>>>> >>>>> Now I found this solution for Gambas3: The table will start at a given >>>>> position on the page. There are functions that I could use to measure >>>>> the exact height of each table line. It sums up until it finds it will >>>>> hit the lower end, then save the number of this line in a list, go on to >>>>> the next end of page and so on... After measuring and counting, the >>>>> number of entries in the list will tell how many pages are needed, and >>>>> printing can be started. >>>>> >>>>> I found that the new way of printing is way faster than the old one. It
[Gambas-user] Json sample
Hi All, I'm upto building a json connection with an external provider. Has anyone a simple sample? Including de put and get etc.? Thanks! Roel Touwen -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] File in clipboard
Hi All, I would like to copy a file to the clipboard. So not only text. When I browse to a file in the filesystem (Dolphin) and do a copy and after that I do clipboard.paste I get the filename with file:/// But when I do a clipboard.copy file:/// with the filename. The Os only gets this as a string and not the filename. Anybody? Thanks. Roel -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Filter on dir(
Hi All, I cannot find the explanation of the filter variable in dir (Path,Pattern,Filter). What I would like to do is filter only symlink files from a directory. Thanks Roel -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Sample component with a form
Hi Tobias, That is exactly what I was looking for! Many thanks! Best regards, Roel op 26-03-15 23:15, Tobias Boege schreef: On Thu, 26 Mar 2015, Roel Touwen wrote: Hi everyone, Has anybody a sample source of a component which holds a form? I'm trying for two weeks now and I simply don't succeed. What I want to do is have form that I can embed in another form (within a tab). I could use a workspace but people can delete the tab then. It's not clear to me what you want to do. You must know that the term component around Gambas usually means a shared library which adds functionality to the interpreter. gb.qt4, for example, is the QT4 component. I'll assume that you want to create just a widget class which is usually called a control, instead of component. [ A component is a whole collection of classes, and sometimes also controls, for a specific task. ] But you don't need to create a new control class either. Embedding forms is super easy. Again, assuming that I understood you, I attach a project which shows how to embed some instance of a Form class into a TabPanel where you can control, contrary to Workspace, if the user is able to close a tab. Note: On my system, the first form which is embedded into a tab of the TabPanel is not resized, while all subsequent forms are expanded to fill their tab. I don't know why... Regards, Tobi -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Sample component with a form
Hi everyone, Has anybody a sample source of a component which holds a form? I'm trying for two weeks now and I simply don't succeed. What I want to do is have form that I can embed in another form (within a tab). I could use a workspace but people can delete the tab then. Hopefully someone has a sample. Thanks. Roel -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] sending a parameter to a form in a workspace
Hi All, I'd like to send a parameter to a form which is a child of a workspace. I simply can't find the solution. E.g. I would like to call a sub with a parm in the form. Or like sending the name of a file which should be opened in a form within the workspace, like gambas ide. Thanks Roel -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sending a parameter to a form in a workspace
Don't look further, I found it. Roel Touwen schreef op 14-03-15 om 15:06: Hi All, I'd like to send a parameter to a form which is a child of a workspace. I simply can't find the solution. E.g. I would like to call a sub with a parm in the form. Or like sending the name of a file which should be opened in a form within the workspace, like gambas ide. Thanks Roel -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Sending parms to workspace children
Hi All, At last I moved on to gambas 3. But I'm running in some kind of problem. In gambas2 I used a function to let all the children now Edit is true or false. In the hosting form I do: for each object in workspace.children try object.MayEdit(True)' or false of course next and for each object in workspace.children try object.RelationNumber = RelationString next But no matter what I try I simply cannet use this anymore. Any suggestions? -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Sending parms to workspace children
Hi Benoit, Can you give me a sample? I tried: (Also tried to DIM as Window and tried Dim.. as new) But I still get an error on the Wd.MayEdit. The Message of the form's name works. Thanks in advance. Best regards, Roel Public Sub btnEdit_Click() Dim Wd As Form If main.Mayedit = True Then main.MayEdit = False btnEdit.Background = main.vbGrey Else main.MayEdit = True btnEdit.Background = main.vbYellow Endif For Each Wd In ws.Windows Message(Wd.Text) Wd.MayEdit(False) Next End op 11-06-14 15:39, Benoît Minisini schreef: Le 11/06/2014 14:32, Roel Touwen a écrit : Hi All, At last I moved on to gambas 3. But I'm running in some kind of problem. In gambas2 I used a function to let all the children now Edit is true or false. In the hosting form I do: for each object in workspace.children try object.MayEdit(True)' or false of course next and for each object in workspace.children try object.RelationNumber = RelationString next But no matter what I try I simply cannet use this anymore. Any suggestions? You must use the Workspace.Windows property. Children maybe worked in Gambas 2, but never the documentation told you that you will get necessarily the windows you embedded in the Workspace that way. Regards, -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Sending parms to workspace children
Hi Benoit, Thanks, that did the trick! Best regards, Roel op 11-06-14 16:27, Benoît Minisini schreef: Le 11/06/2014 15:53, Roel Touwen a écrit : Hi Benoit, Can you give me a sample? I tried: (Also tried to DIM as Window and tried Dim.. as new) But I still get an error on the Wd.MayEdit. The Message of the form's name works. Thanks in advance. Best regards, Roel Public Sub btnEdit_Click() Dim Wd As Form If main.Mayedit = True Then main.MayEdit = False btnEdit.Background = main.vbGrey Else main.MayEdit = True btnEdit.Background = main.vbYellow Endif For Each Wd In ws.Windows Message(Wd.Text) Wd.MayEdit(False) Next End Form has no MayEdit method. You must cast your Wd object to its real type, or use a dynamic reference (i.e. declare Wd as Object). Regards, -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Strange msq problem
I tried that but it isn't the solution. In the past I tried combining gambas2 and gambas3 on fedora 18. I had the same situation then but I blamed it on the combination of g2 and g3. Now I installed it on a clean fedora 20 machine and I experience the same. op 14-02-14 10:15, Fabien Bodard schreef: And If you add db.commit at the end of the job ? Le 14 févr. 2014 10:04, Roel Touwen [prive] r...@touwtje.info a écrit : Hi All, I have installed the latest Fedora (20) with gambas from the repository. When I do some datathing in mysql it simple won't update the database. This code works fine on my old gambas 2 but update won't work in gambas3: Public Sub SendTimeStamp() Dim Hs As String Hs = Test Sql = relation = ' Main.RobotCust ' and robotID = Main.RobotID and rectype = 'TS' and subID = '' and sequencer = 0 rsTimeSt = db.Edit(robots, Sql) rsTimeSt!msg = Hs rsTimeSt.Update() Endif End -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Strange msq problem
Hi Fabien, Uptil the .update it works. I get the record, I can read the data and after setting the field it contains the new data. Strangest thing is that there is no error. The program assumes it has updated the record. But in the db the update is not performed. op 14-02-14 10:47, Fabien Bodard schreef: When you say won't work.. does it crash ? Do you obtain the edit result object ? Is result.available is true Le 14 févr. 2014 10:20, Roel Touwen [prive] r...@touwtje.info a écrit : I tried that but it isn't the solution. In the past I tried combining gambas2 and gambas3 on fedora 18. I had the same situation then but I blamed it on the combination of g2 and g3. Now I installed it on a clean fedora 20 machine and I experience the same. op 14-02-14 10:15, Fabien Bodard schreef: And If you add db.commit at the end of the job ? Le 14 févr. 2014 10:04, Roel Touwen [prive] r...@touwtje.info a écrit : Hi All, I have installed the latest Fedora (20) with gambas from the repository. When I do some datathing in mysql it simple won't update the database. This code works fine on my old gambas 2 but update won't work in gambas3: Public Sub SendTimeStamp() Dim Hs As String Hs = Test Sql = relation = ' Main.RobotCust ' and robotID = Main.RobotID and rectype = 'TS' and subID = '' and sequencer = 0 rsTimeSt = db.Edit(robots, Sql) rsTimeSt!msg = Hs rsTimeSt.Update() Endif End -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Strange msq problem
Hi Bruce, That is indeed from the email-wrapping. That part works fine. I get the data from the database. The Sql what is sent to MySql is: *relation = '9123' and robotID = 1 and rectype = 'TS' and subID = '' and sequencer = 0* But, as said, that part works. op 14-02-14 11:23, Bruce schreef: On Fri, 2014-02-14 at 10:54 +0100, Roel Touwen [prive] wrote: Sql = relation = ' Main.RobotCust ' and robotID = Main.RobotID and rectype = 'TS' and subID = '' and sequencer = 0 After that line can you print (or debug) Sql. Don't know (because of email wrapping) but it looks kind of weird to me. B -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user