Re: [Gambas-user] problem with aligment same width (gambas3)
2010/1/16 Fiddler63 mx4...@gmail.com: kobolds wrote: gambas3 qt4 I notice that gb ide auto change the width when it's not suppose too. I have 3 button each with width 90, 100,100 I want all 3 button width become 90 . I select them and choose align same width . I notice all 3 button width now become 91 when it suppose to be 90 . I also notice another problem that when I copy paste a button with width 90 , the pasted button width is 89 This is also an issue in V2.13 Crikey. When Adam was a lad... And your layout in the IDE is quite different to layout when running the programming. Kim These are all non-Gambas-related issues; they are caused by the qt gtk toolkits. I had all kinds of weird issues so I moved to gb3 and qt4 on Linux Ultimate edition 2.5 (Ubuntu 9.10 based) and the problem was solved. The UI issues gave me freaking headaches and I was too willing to blame Gambas but I was wrong. As soon as I got to gb3 and qt4, all of those kinds of issues went away. Hint! Hint! -- 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] Collections
2010/1/16 Pino Zollo pinozo...@gmail.com: The two print statements print exactly the same thing...the Lista.key is correct and all different, but the other ( ; Element[1];; ;; Element[0] ) print always the last element added to the structure. First you need to sort out if you have a problem in your debug line. DEBUG Lista.Count;; Lista[myStruc.Value(1)][1];;;; Lista[myStruc.Value(1)][0] Put a breakpoint on this line: Disp.DisRes.Text = Disp.DisRes.Text ~ Then inspect myStruc in the IDE. If the inspection of myStruc shows the correct values then what you have in the debug line is wrong. -- 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] problem with aligment same width (gambas3)
2010/1/17 kobolds kobo...@singnet.com.sg: I using gb3 and qt4 and I still having these problem Yes, but did you select qt4 in Project Properties Components? -- 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] problem with aligment same width (gambas3)
2010/1/17 kobolds kobo...@singnet.com.sg: OK , I think I finally found the bugs . you can try your self and will see the bug. 1. add a button to a form 2. change the button width and height to 60 . or any even number 3. click to select the button to copy and paste . see the new pasted button width and height now become 59 . his bug only occur if you set the width and height to even number . if you set to odd number then it's OK. Yes, you are quite right. It happens here also. -- 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
[Gambas-user] Help needed with pcre
I have this line of code: Reg = New Regexp(=A7=F1=FChw=A4=A3, =[\\da-fA-F]{2}) =A7 is correctly matched, but it is the only match returned. How do I make Regexp match every occurrence so that =F1,=FC, =A4 and =A3 are also returned as matches? I've tried perldoc.perl.org and other sites but I can't find the answer. Any suggestions welcome. -- 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
[Gambas-user] [SOLVED] Re: Help needed with pcre
2010/1/15 nospam.nospam.nos...@gmail.com nospam.nospam.nos...@gmail.com: I have this line of code: Reg = New Regexp(=A7=F1=FChw=A4=A3, =[\\da-fA-F]{2}) =A7 is correctly matched, but it is the only match returned. How do I make Regexp match every occurrence so that =F1,=FC, =A4 and =A3 are also returned as matches? I've tried perldoc.perl.org and other sites but I can't find the answer. Any suggestions welcome. Thank you, Markus Schatten. I found this: http://www.mailinglistarchive.com/gambas-user@lists.sourceforge.net/msg01355.html -- 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] BUG Gambas stable [2407] broken
On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: When using revision 2407 you cannot start the IDE anymore. 2407, being? And of course, it's Gambas that's at fault, not you or your OS, yes? No such problem here, honey, peach, sugar. ERROR: #27: Cannot load component 'gb.qt': cannot find library file DUH! -- 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] SidePanel
On Mon, 2009-11-02 at 21:34 +0100, Ron wrote: Benoît Minisini schreef: I have tried with different GTK+ styles with no luck. Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel a try. Thanks, Toni I have upgraded my Ubuntu 9.04 to Ubuntu 9.10, and the problem shows up! So that bug is related to a difference between Ubuntu 9.04 and Ubuntu 9.10, but which one... Benoit, do you also have the same Database Manager view field contents bug as I posted earlier? Maybe this and that one share the same bug? What leap of logic connects the SidePanel and a label object to the Database Manager view field contents? Just asking. -- 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] BUG Gambas stable [2407] broken
On Tue, 2009-11-03 at 19:58 +0100, Benoît Minisini wrote: It should be fixed in revision #2408. Only people installing Gambas locally like you got the bug. Where is the revision number to be found? -- 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] Bonjour, question sur les propri étés de colorchooser
On Mon, 2009-11-02 at 18:31 +0100, Eric Buhagiar wrote: Bonjour, Après des échanges sur des forums, la question persiste. Peut on lire les propriétés Red,Green,Blue directement calculées par un ColorChooser ? Cette classe fait les conversions, j'ai essayé pas mal de méthodes mais je n'y arrive pas. Merci (et un grand bravo sincère pour le logiciel !) Ymledodd tu nesaf glyw dysgu, fo llawn nantlle myd e, golwg na iaith gynnydd ond. Cadw cyfyngwyd medi, manwl cau digonol tymor fe hwren. Hangen llunir dau neges cyd am na'r eu pwnc, deng olygu fy h fu, codi â. Blentyn hon b glyw tu c, er gydol â drwy na y weithio? Mlynyddoedd yn hyder, e dau arferion droir ee ddod b hwran gallai, dyfed. HTH -- 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] SidePanel
On Mon, 2009-11-02 at 18:51 +0100, Johny Provoost wrote: Strange. Must be something in Ubuntu if no one else have it. It is Ubuntu. I'm running 9.10 x64 and your problem is reproducible here. -- 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] TextEdit and HTML
On Wed, 2009-10-14 at 09:28 +0200, Matti wrote: Somewhere in the mailing archives I've read that a TextEdit could display HTML files nicely. But how? When I do textstr = File.Load(xyfile.html) TextEdit1.Text = textstr a plain text is shown, without any formatting. All the HTML tags are ignored. And the special chars like äöß are displayed as rectangles. Is there any way to tell TextEdit to use formatting and encoding? TextEdit is for RichText. RichText HTML. -- 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] Custom Colour
On Wed, 2009-10-14 at 03:57 -0700, Bill-Lancaster wrote: Is it possible to set a control's backcolor to a custom value? If so how? Control.BackColor Or Control.Background TextBox1.BackColor = HEF0F -- 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
[Gambas-user] DataBrowser question
Is there a way to selectively disable the buttons on the navigation panel shown on a DataBrowser? I want to allow users to move forward and back through the data but not add, delete or save changes. Thanks for your assistance. -- 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] DataBrowser question
On Wed, 2009-10-14 at 18:08 +0200, Matti wrote: DataSource1.ReadOnly = TRUE and the buttons are gone. Ah! Absolutely brilliant. Thank you. It's not exactly clear in the documentation, and I searched everywhere before asking. I've sent an email to gam...@users.sourceforge.net to request signup to work on the documentation so I clarify these things as I go. It's the least I can do. nospam.nospam.nos...@gmail.com schrieb: Is there a way to selectively disable the buttons on the navigation panel shown on a DataBrowser? I want to allow users to move forward and back through the data but not add, delete or save changes. Thanks for your assistance. -- 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 -- 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
[Gambas-user] Normal behaviour for GTK+?
This has me pulling my hair out. I think I have narrowed the problem down to the GTK+ toolkit for Gambas. If I create a GTK+ project and put a TextBox and a ValueBox on a form and set their default values, when I tab to the TextBox I can over-type the text, but when I tab to the ValueBox, the number I type is appended: For example, if the ValueBox contains 5000 and I type 7, the value becomes 50007. However if I change the project to use a Qt GUI, it works as I expect, i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I have been able to reproduce this behaviour. Is that normal for GTK+? Is there anything I can do short of using Qt? Am I doing something wrong? Also, I can't find any documentation why I might use Qt in Gambas as opposed to GTK+ in Gambas. Opinions on what is best and why will be appreciated. -- 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] Normal behaviour for GTK+?
On Tue, 2009-10-13 at 18:58 +0200, Benoît Minisini wrote: This has me pulling my hair out. I think I have narrowed the problem down to the GTK+ toolkit for Gambas. If I create a GTK+ project and put a TextBox and a ValueBox on a form and set their default values, when I tab to the TextBox I can over-type the text, but when I tab to the ValueBox, the number I type is appended: For example, if the ValueBox contains 5000 and I type 7, the value becomes 50007. However if I change the project to use a Qt GUI, it works as I expect, i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I have been able to reproduce this behaviour. Is that normal for GTK+? Is there anything I can do short of using Qt? Am I doing something wrong? Also, I can't find any documentation why I might use Qt in Gambas as opposed to GTK+ in Gambas. Opinions on what is best and why will be appreciated. Which version of Gambas do you use? V2.16. I had to make an hack in gb.gtk recently to make all basic events (Mouse, Keyboard, Enter and Leave) behave the same way as in gb.qt. But the 2.17 is not released yet (I'm currently busy with a theatre play), but you can try /branches/2.0 in the svn repository. Can you make a little project for me that has the bug you describe? I will test it with the future 2.17, and I will see if the bug has gone. I can make one a lot smaller than little: PUBLIC SUB Form_Open() ValueBox1.Value = 999 END :) Create a new GTK+ project with no options, drag a ValueBox to the default form. When you run the app, tab into the ValueBox so that 999 is selected then type another number. -- 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] Sendmail problems
On Sun, 2009-10-11 at 19:38 +0200, Johny Provoost wrote: I work with gambas 2.8 in Ubuntu 9.04 and QT (GTK gives the same result) First, download and compile v2.16 of Gambas then retest. Download: http://linux.softpedia.com/get/Programming/Interpreters/Gambas-2-1180.shtml Easy instructions, even I could follow them: http://www.ziddu.com/download/5849757/Install-Gambas-2.15-in-ubuntu.pdf.html Alternate instructions: http://gambas.sourceforge.net/en/main.html -- 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] write to folder in windows network
On Fri, 2009-10-09 at 02:59 -0700, Bill-Lancaster wrote: My Gambas PC is attached to a Windows Network - how can I access files there from a Gambas application? Mount the path to the network directory with rw and use standard gambas file operations on the mount point. -- 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] NNTP Class
On Tue, 2009-10-06 at 01:17 -0600, Dimitris Anogiatis wrote: Hey Anonymous, you can open a sourceforge account and place your code in there (or host it wherever else you think it might be better), and then you can upload your program's URL and a screenshot and a simple description on the gambas wiki; more details are on the gambas main page if you click on the Some Applications link on the left side of http://gambas.sourceforge.net/en/main.html Thanks. I found the gambas application repository at that link. I'll tidy up the comments and upload it there in a week or so. Your help was appreciated. Regards, Dimitris On Tue, Oct 6, 2009 at 12:33 AM, nospam.nospam.nos...@gmail.com nospam.nospam.nos...@gmail.com wrote: I have written a class that supports sending and retrieving articles to/from NNTP servers. I also have a small example GUI around it that uses the class to post usenet messages. The class, based on RFC 2980 and RFC 977, supports getting all groups, getting new groups, XOVER headers, posting, separate head and body retrieval to allow for filtering, plus articles can be retrieved by MessageID or ArticleID, and it handles authentication requests and server responses. Communication with the server is asynchronous and the class reports results back to the caller via events. Is there anyone I can send the code to with a view to having it included in future Gambas releases as an example project? Anyone interested? -- 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
[Gambas-user] Socket not working in 2.8
I tried to create an application using a Socket instantiated in code: [CODE] PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket END [/CODE] I also tried: [CODE] PRIVATE MySock AS NEW Socket [/CODE] I had endless trouble getting the Socket to work so I created a new project from the ClientSocket (0.0.56) sample included in 2.8. I first tested the sample app, which worked fine. I then deleted the Socket control from the sample and added the code as shown above. Lo and behold, the Socket, when instantiated in code, will not connect to anything. It just sits there looking up hostname. I need to be able to use a Socket in a class module, but it seems the Socket doesn't want to work if it is instantiated in code. It works fine if the Socket is added to a form, but this is no good for what I need to achieve. Am I doing something wrong or could this be a bug in Socket? Any help is appreciated. -- 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] Socket not working in 2.8
On Sun, 2009-10-04 at 19:35 +0800, Werner wrote: nospam.nospam.nos...@gmail.com wrote: I tried to create an application using a Socket instantiated in code: [CODE] PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket END [/CODE] I also tried: [CODE] PRIVATE MySock AS NEW Socket [/CODE] I had endless trouble getting the Socket to work so I created a new project from the ClientSocket (0.0.56) sample included in 2.8. I first tested the sample app, which worked fine. I then deleted the Socket control from the sample and added the code as shown above. Lo and behold, the Socket, when instantiated in code, will not connect to anything. It just sits there looking up hostname. I need to be able to use a Socket in a class module, but it seems the Socket doesn't want to work if it is instantiated in code. It works fine if the Socket is added to a form, but this is no good for what I need to achieve. Am I doing something wrong or could this be a bug in Socket? Any help is appreciated. Dear Spam Spam Spam, do you actually try to establish a connection? as in http://gambasdoc.org/help/comp/gb.net/socket Good grief. Did you actually try to understand what I wrote? I created a new project from the ClientSocket (0.0.56) sample included in 2.8. I first tested the sample app, which worked fine. I then deleted the Socket control from the sample and added the code as shown above. Lo and behold, the Socket, when instantiated in code, will not connect to anything. It just sits there looking up hostname. Regards Werner -- 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] Socket not working in 2.8
On Sun, 2009-10-04 at 14:53 +0200, Ron wrote: nospam.nospam.nos...@gmail.com wrote: On Sun, 2009-10-04 at 19:35 +0800, Werner wrote: nospam.nospam.nos...@gmail.com wrote: I tried to create an application using a Socket instantiated in code: [CODE] PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket END [/CODE] I also tried: [CODE] PRIVATE MySock AS NEW Socket [/CODE] I had endless trouble getting the Socket to work so I created a new project from the ClientSocket (0.0.56) sample included in 2.8. I first tested the sample app, which worked fine. I then deleted the Socket control from the sample and added the code as shown above. Lo and behold, the Socket, when instantiated in code, will not connect to anything. It just sits there looking up hostname. I need to be able to use a Socket in a class module, but it seems the Socket doesn't want to work if it is instantiated in code. It works fine if the Socket is added to a form, but this is no good for what I need to achieve. Am I doing something wrong or could this be a bug in Socket? Any help is appreciated. Dear Spam Spam Spam, do you actually try to establish a connection? as in http://gambasdoc.org/help/comp/gb.net/socket Good grief. Did you actually try to understand what I wrote? I created a new project from the ClientSocket (0.0.56) sample included in 2.8. I first tested the sample app, which worked fine. I then deleted the Socket control from the sample and added the code as shown above. Lo and behold, the Socket, when instantiated in code, will not connect to anything. It just sits there looking up hostname. Before you start with comments again, your mail wasn't that clear as it may seem. Did you add a name to the socket when creating it? Like so: hMySocket = NEW Socket AS MySock And then use event handlers with that name, like this? PUBLIC SUB MySock_Read() END Without it events will not work, and thus you cannot detect if it's connecting or not. I created a new project from the ClientSocket (0.0.56) sample which worked fine. All of what you said is already in the sample. The sample does not work when the Socket is instantiated in code. And version 2.8 is a bit old, tons of bug fixes since then (we are at 2.17 now) Right. I'll upgrade and try the same thing again. Thank you. -- 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] Socket not working in 2.8
On Sun, 2009-10-04 at 15:05 +0200, Ron wrote: nospam.nospam.nos...@gmail.com wrote: On Sun, 2009-10-04 at 14:53 +0200, Ron wrote: And version 2.8 is a bit old, tons of bug fixes since then (we are at 2.17 now) Right. I'll upgrade and try the same thing again. Thank you. Oh my god, next time no answer from me then... Huh? I said I would take your advice, then I thanked you. My project is using tons of sockets all created from code, and working 100% 24/7, so please calm down man. http://domotiga.nl Regards, Ron_2nd. -- 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] Socket not working in 2.8
On Sun, 2009-10-04 at 21:17 +0800, Werner wrote: PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket'the socket is now created. Stream is closed MySock.Connect(localhost, 7000) 'does open the stream. END I cannot reproduce the symptoms described. I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. There is an NNTP server on 192.168.1.8:5000 that sends back a greeting when the connection is made by the client. The server logs also indicate that no connection was made. PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket MySock.Connect(192.168.1.8, 5000) END PUBLIC SUB MySock_Read() DIM sR AS String DIM nZ AS Integer IF MySock.Status = Net.Connected THEN READ #MySock, sR, Lof(MySock) END IF END If I put a Socket control on the form and use this code, it works. MySock_Read fires and sR contains the greeting from the server. PUBLIC SUB Form_Open() MySock.Connect(192.168.1.8, 5000) END PUBLIC SUB MySock_Read() DIM sR AS String DIM nZ AS Integer IF MySock.Status = Net.Connected THEN READ #MySock, sR, Lof(MySock) END IF END -- 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] Socket not working in 2.8
On Sun, 2009-10-04 at 16:11 +0200, Benoît Minisini wrote: I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. There is an NNTP server on 192.168.1.8:5000 that sends back a greeting when the connection is made by the client. The server logs also indicate that no connection was made. PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket You must write: MySock = NEW Socket AS MySock HA! You're a genius. That fixed it. Thank you. I suggest you read the documentation of the NEW instruction. Yes, I'd better. -- 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] Socket not working in 2.8
On Sun, 2009-10-04 at 16:30 +0200, Ron wrote: nospam.nospam.nos...@gmail.com wrote: On Sun, 2009-10-04 at 16:11 +0200, Benoît Minisini wrote: I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. There is an NNTP server on 192.168.1.8:5000 that sends back a greeting when the connection is made by the client. The server logs also indicate that no connection was made. PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket You must write: MySock = NEW Socket AS MySock HA! You're a genius. That fixed it. Thank you. LOL thats what I wrote a few msg back... Yes, you did. reading is so difficult. Oh, no. I read it. I chose not to thank you ever again after what you wrote the first time. HAND -- 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