From jfabiani at ...1109... Wed Feb 1 01:19:55 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 31 Jan 2006 16:19:55 -0800 Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <200601311945.50454.lordheavy@...512...> References: <200601311006.05037.jfabiani@...1109...> <200601311036.00253.jfabiani@...1109...> <200601311945.50454.lordheavy@...512...> Message-ID: <200601311619.55539.jfabiani@...1109...> On Tuesday 31 January 2006 10:45, Laurent Carlier wrote: > Le Mardi 31 Janvier 2006 19:36, johnf a ?crit?: > > So if I understand you correctly I can NOT use ".TreeViewItem" ? > > > > John > > No, you do not need to use it. > > Laurent OK so I can - but do not need to use it. All right then what do doc's mean showing the virtual class. As you can see I really don't understand the Doc's reference to the virtual class. To me a virtual class is a class that describes an object for use in other objects. Helper class or a class I inherit. Anyway I don't understand what is being said in the doc's John From lordheavy at ...512... Wed Feb 1 06:06:41 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 1 Feb 2006 06:06:41 +0100 Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <200601311619.55539.jfabiani@...1109...> References: <200601311006.05037.jfabiani@...1109...> <200601311945.50454.lordheavy@...512...> <200601311619.55539.jfabiani@...1109...> Message-ID: <200602010606.41906.lordheavy@...512...> Le Mercredi 1 F?vrier 2006 01:19, johnf a ?crit?: > > OK so I can - but do not need to use it. All right then what do doc's mean > showing the virtual class. As you can see I really don't understand the > Doc's reference to the virtual class. To me a virtual class is a class > that describes an object for use in other objects. Helper class or a class > I inherit. Anyway I don't understand what is being said in the doc's John > It's fully explained here : http://64.128.110.55/help/def/virtual Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From brian at ...1334... Wed Feb 1 07:07:33 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Tue, 31 Jan 2006 22:07:33 -0800 (PST) Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <200601311619.55539.jfabiani@...1109...> References: <200601311006.05037.jfabiani@...1109...> <200601311036.00253.jfabiani@...1109...> <200601311945.50454.lordheavy@...512...> <200601311619.55539.jfabiani@...1109...> Message-ID: <20060131212208.S78382@...1337...> On Tue, 31 Jan 2006, johnf wrote: > > Laurent > OK so I can - but do not need to use it. All right then what do doc's mean > showing the virtual class. As you can see I really don't understand the > Doc's reference to the virtual class. To me a virtual class is a class that > describes an object for use in other objects. Helper class or a class I > inherit. Anyway I don't understand what is being said in the doc's > John Hmm are you coming to Gambas from a C++ background? You can consider "virtual class" to mean a class with pure virtual methods and private constructor/destructors (which yields a virtual class that you cannot create or copy but can pass by reference) but that has friends within lower level components that implement the class (it can use the class as a base). Thus, though you cannot create the class directly or use it as a base class in your Gambas programs, the friends that are implementing the class can be accessed as ListBox.ListBoxItem[n] where the "virtual" class here is only defining an interface to access the items of the listbox. This bit of C++ (pardon me in advance if some of my syntax is off) attempts to show what's going on. It is possible in C++ to return a reference to an interface whose implentor and interface objects are not directly instantiable or useable as a base class using inheritence: class ListBox; class ListBoxItemIMP; class _ListBoxItem { friend class _ListBoxItenIMP; private: _ListBoxItem() {} virtual ~_ListBoxItem {} public: std::String Text()=0 ... }; class _ListBoxItemIMP : private _ListBoxItem { friend class ListBox; private: Listbox& host; private: _ListBoxItemIMP() {...} virtual ~_ListBoxItemIMP {...} SetParent(ListBox &parent) : host(parent) {...} public: std::String Text() {...} ... }; class ListBox : public Control { public: ListBox(Control &parent) {...} virtual ~ListBox() {...} private: std::vector<_ListBoxItemIMP> data; pubilc: ListBoxItem& operator [] (int idx) {return data[idx];} int Count() {return data.length();} ... }; -- Christopher Brian Jack From gambas at ...1... Wed Feb 1 08:15:12 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 1 Feb 2006 08:15:12 +0100 Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <20060131212208.S78382@...1337...> References: <200601311006.05037.jfabiani@...1109...> <200601311619.55539.jfabiani@...1109...> <20060131212208.S78382@...1337...> Message-ID: <200602010815.12812.gambas@...1...> On Wednesday 01 February 2006 07:07, Christopher Brian Jack wrote: > On Tue, 31 Jan 2006, johnf wrote: > > > Laurent > > > > OK so I can - but do not need to use it. All right then what do doc's > > mean showing the virtual class. As you can see I really don't understand > > the Doc's reference to the virtual class. To me a virtual class is a > > class that describes an object for use in other objects. Helper class or > > a class I inherit. Anyway I don't understand what is being said in the > > doc's John > > Hmm are you coming to Gambas from a C++ background? You can consider > "virtual class" to mean a class with pure virtual methods and private > constructor/destructors (which yields a virtual class that you cannot > create or copy but can pass by reference) but that has friends within > lower level components that implement the class (it can use the class as a > base). Thus, though you cannot create the class directly or use it as a > base class in your Gambas programs, the friends that are implementing the > class can be accessed as ListBox.ListBoxItem[n] where the "virtual" class > here is only defining an interface to access the items of the listbox. > > This bit of C++ (pardon me in advance if some of my syntax is off) > attempts to show what's going on. It is possible in C++ to return a > reference to an interface whose implentor and interface objects are not > directly instantiable or useable as a base class using inheritence: > > class ListBox; > class ListBoxItemIMP; > > class _ListBoxItem { > friend class _ListBoxItenIMP; > private: > _ListBoxItem() {} > virtual ~_ListBoxItem {} > public: > std::String Text()=0 > ... > }; > > class _ListBoxItemIMP : private _ListBoxItem { > friend class ListBox; > private: > Listbox& host; > private: > _ListBoxItemIMP() {...} > virtual ~_ListBoxItemIMP {...} > SetParent(ListBox &parent) : host(parent) {...} > public: > std::String Text() {...} > ... > }; > > class ListBox : public Control { > public: > ListBox(Control &parent) {...} > virtual ~ListBox() {...} > private: > std::vector<_ListBoxItemIMP> data; > pubilc: > ListBoxItem& operator [] (int idx) {return data[idx];} > int Count() {return data.length();} > ... > }; > > > -- Christopher Brian Jack > 'Virtual' class in Gambas has nothing to do with 'virtual' class in C++. I admit I badly chosen the word, but C++ did too, in a different way. A virtual class is actually a way for an object of a real class to look like another class, said virtual. Maybe 'pseudo-class' would be a better word. You cannot instanciate a virtual class. You can only use it temporarily inside an expression. For example: MyTreeView[key] returns a '.TreeViewItem' from its key, but you cannot put it inside a variable. You can only use it inside an expression, like MyTreeView[key].Text, or inside a WITH...END WITH control structure: WITH MyTreeView[key] PRINT .Text PRINT .Key PRINT .Parent.Text ... END WITH I did it to avoid object allocations. Gambas creates no object when you access an item inside a treeview, so things are faster. As the documentation is automatically generated, the documentation of properties that use virtual class is not very understandable at the moment. Sorry for the inconvenience! I hope it is clearer now :-) Regards, -- Benoit Minisini From brian at ...1334... Wed Feb 1 08:55:45 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Tue, 31 Jan 2006 23:55:45 -0800 (PST) Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <200602010815.12812.gambas@...1...> References: <200601311006.05037.jfabiani@...1109...> <200601311619.55539.jfabiani@...1109...> <20060131212208.S78382@...1337...> <200602010815.12812.gambas@...1...> Message-ID: <20060131234532.X80257@...1337...> On Wed, 1 Feb 2006, Benoit Minisini wrote: > > class ListBox; > > class ListBoxItemIMP; > > ... ... > > ... > > }; > > > > > > -- Christopher Brian Jack > > > > 'Virtual' class in Gambas has nothing to do with 'virtual' class in C++. I > admit I badly chosen the word, but C++ did too, in a different way. You have to admit though I came pretty close with the C++ snippet to what is happening (in C++ references prevent creation objects). The only thing I forgot to do is privitize the copy constructors and the assignment operators in the 'internal' classes. > A virtual class is actually a way for an object of a real class to look like > another class, said virtual. Maybe 'pseudo-class' would be a better word. > You cannot instanciate a virtual class. You can only use it temporarily inside > an expression. > > For example: MyTreeView[key] returns a '.TreeViewItem' from its key, but you > cannot put it inside a variable. You can only use it inside an expression, > like MyTreeView[key].Text, or inside a WITH...END WITH control structure: Yes this is where a limitation in Gambas does indeed necessitate the special non-creatable classes because there are no "reference" types. In C++ there is [a reference data type] and you could assign the object back from the ListView's [] operator to a ListViewItem& but all operations that would create an object would be prevented by the constructor, destructor, copy-constructor and assignment operator all being made private members in the 'internal' class. Again I think the C++ snippet comes very close in approximation to what the Gambas scenario is doing (that is, presenting an interface that does not allow temporary object creations). Brian From eilert-sprachen at ...221... Wed Feb 1 13:14:57 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 01 Feb 2006 13:14:57 +0100 Subject: [Gambas-user] HSplit with more than 1 element Message-ID: <43E0A641.4090700@...221...> Is it possible to have more than 1 control in an HSplit on EITHER side of the splitter? If yes, how can I achieve that? What I want is this (some ASCII art :-) ) --------- + --------------------------- # # + # # # 1 # + # 3 # # # + # # # # + # # --------- + # # --------- + # # # # + # # # 2 # + # # # # + # # # # + # # --------- + --------------------------- Thanks for your ideas! Rolf From timothy.marshal-nichols at ...247... Wed Feb 1 14:30:45 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Wed, 1 Feb 2006 13:30:45 -0000 Subject: [Gambas-user] HSplit with more than 1 element In-Reply-To: <43E0A641.4090700@...221...> Message-ID: 1. Place an HSplit on the form 2. Place a VSplit in the HSplit on the left 3. Place the controls you want in the VSplit (your 1 and 2) 4. Place the other control you want on the right of the HSplit (your 3) You only need to add code to resize the HSplit or set the Form Arrangement property to Fill Thanks 8-{)} Timothy Marshal-Nichols -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Eilert Sent: Wednesday, 01 February 2006 12:15 To: gambas-user at lists.sourceforge.net Subject: [Gambas-user] HSplit with more than 1 element Is it possible to have more than 1 control in an HSplit on EITHER side of the splitter? If yes, how can I achieve that? What I want is this (some ASCII art :-) ) --------- + --------------------------- # # + # # # 1 # + # 3 # # # + # # # # + # # --------- + # # --------- + # # # # + # # # 2 # + # # # # + # # # # + # # --------- + --------------------------- Thanks for your ideas! Rolf ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jfabiani at ...1109... Wed Feb 1 17:04:24 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 1 Feb 2006 08:04:24 -0800 Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <200602010815.12812.gambas@...1...> References: <200601311006.05037.jfabiani@...1109...> <20060131212208.S78382@...1337...> <200602010815.12812.gambas@...1...> Message-ID: <200602010804.24730.jfabiani@...1109...> On Tuesday 31 January 2006 23:15, Benoit Minisini wrote: > On Wednesday 01 February 2006 07:07, Christopher Brian Jack wrote: > > On Tue, 31 Jan 2006, johnf wrote: > > > > Laurent > > > > > > OK so I can - but do not need to use it. All right then what do doc's > > > mean showing the virtual class. As you can see I really don't > > > understand the Doc's reference to the virtual class. To me a virtual > > > class is a class that describes an object for use in other objects. > > > Helper class or a class I inherit. Anyway I don't understand what is > > > being said in the doc's John > > > > Hmm are you coming to Gambas from a C++ background? You can consider > > "virtual class" to mean a class with pure virtual methods and private > > constructor/destructors (which yields a virtual class that you cannot > > create or copy but can pass by reference) but that has friends within > > lower level components that implement the class (it can use the class as > > a base). Thus, though you cannot create the class directly or use it as > > a base class in your Gambas programs, the friends that are implementing > > the class can be accessed as ListBox.ListBoxItem[n] where the "virtual" > > class here is only defining an interface to access the items of the > > listbox. > > > > This bit of C++ (pardon me in advance if some of my syntax is off) > > attempts to show what's going on. It is possible in C++ to return a > > reference to an interface whose implentor and interface objects are not > > directly instantiable or useable as a base class using inheritence: > > > > class ListBox; > > class ListBoxItemIMP; > > > > class _ListBoxItem { > > friend class _ListBoxItenIMP; > > private: > > _ListBoxItem() {} > > virtual ~_ListBoxItem {} > > public: > > std::String Text()=0 > > ... > > }; > > > > class _ListBoxItemIMP : private _ListBoxItem { > > friend class ListBox; > > private: > > Listbox& host; > > private: > > _ListBoxItemIMP() {...} > > virtual ~_ListBoxItemIMP {...} > > SetParent(ListBox &parent) : host(parent) {...} > > public: > > std::String Text() {...} > > ... > > }; > > > > class ListBox : public Control { > > public: > > ListBox(Control &parent) {...} > > virtual ~ListBox() {...} > > private: > > std::vector<_ListBoxItemIMP> data; > > pubilc: > > ListBoxItem& operator [] (int idx) {return data[idx];} > > int Count() {return data.length();} > > ... > > }; > > > > > > -- Christopher Brian Jack > > 'Virtual' class in Gambas has nothing to do with 'virtual' class in C++. I > admit I badly chosen the word, but C++ did too, in a different way. > > A virtual class is actually a way for an object of a real class to look > like another class, said virtual. Maybe 'pseudo-class' would be a better > word. > > You cannot instanciate a virtual class. You can only use it temporarily > inside an expression. > > For example: MyTreeView[key] returns a '.TreeViewItem' from its key, but > you cannot put it inside a variable. You can only use it inside an > expression, like MyTreeView[key].Text, or inside a WITH...END WITH control > structure: > > WITH MyTreeView[key] > PRINT .Text > PRINT .Key > PRINT .Parent.Text > ... > END WITH > > I did it to avoid object allocations. Gambas creates no object when you > access an item inside a treeview, so things are faster. > > As the documentation is automatically generated, the documentation of > properties that use virtual class is not very understandable at the moment. > Sorry for the inconvenience! > > I hope it is clearer now :-) > > Regards, Thanks I believe I understand. I have been re-reading the doc's on the matter. I think what is happening to me is I'm reading the doc's with my definitions from other languages in my mind. But re-reading has helped. And of course your detail response is a great help. BTW you have no reason to say sorry. I love this language. Soon I'll be able to help others (hopefully I am now - a little) and during breaks from other programming duties I'll help with creating components like a report writer. John John From gambas at ...1... Wed Feb 1 17:58:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 1 Feb 2006 17:58:15 +0100 Subject: [Gambas-user] Solutions Linux 2006 in Paris Message-ID: <200602011758.15460.gambas@...1...> Hi everyone! Laurent Carlier and I will give a talk at the yearly french meeting Solutions Linux 2006 in Paris, the 2 Feb. in the morning. Thanks to Daniel and Laurent, the presentation will be a Gambas mix of PDF and OpenGL :-) I will translate this presentation in english, and make it public afterwards. Wish us luck! Regards, -- Benoit Minisini From jfabiani at ...1109... Wed Feb 1 18:03:21 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 1 Feb 2006 09:03:21 -0800 Subject: [Gambas-user] Solutions Linux 2006 in Paris In-Reply-To: <200602011758.15460.gambas@...1...> References: <200602011758.15460.gambas@...1...> Message-ID: <200602010903.21160.jfabiani@...1109...> On Wednesday 01 February 2006 08:58, Benoit Minisini wrote: > Hi everyone! > > Laurent Carlier and I will give a talk at the yearly french meeting > Solutions Linux 2006 in Paris, the 2 Feb. in the morning. > > Thanks to Daniel and Laurent, the presentation will be a Gambas mix of PDF > and OpenGL :-) I will translate this presentation in english, and make it > public afterwards. > > Wish us luck! > > Regards, Love to hear the english translation. Good Luck although I don't think you will need it. John From brian at ...1334... Thu Feb 2 00:58:41 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Wed, 01 Feb 2006 15:58:41 -0800 (PST) Subject: [Gambas-user] getting window ID Message-ID: <20060201155540.E85232@...1337...> Certain X Window applications can take as a parameter the ID of a currently open window. Is there a way to get this information from a Gambas Form? .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | `=================================================' From sourceforge-raindog2 at ...94... Thu Feb 2 01:42:44 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 1 Feb 2006 19:42:44 -0500 Subject: [Gambas-user] getting window ID In-Reply-To: <20060201155540.E85232@...1337...> References: <20060201155540.E85232@...1337...> Message-ID: <200602011942.45644.sourceforge-raindog2@...94...> On Wed February 1 2006 18:58, Christopher Brian Jack wrote: > Certain X Window applications can take as a parameter the ID > of a currently open window. Is there a way to get this > information from a Gambas Form? Yep.... most controls (including Window objects) have a Handle property which returns that ID. See the MoviePlayer example for more details. Rob From eilert-sprachen at ...221... Thu Feb 2 10:05:47 2006 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 02 Feb 2006 10:05:47 +0100 Subject: [Gambas-user] HSplit with more than 1 element In-Reply-To: References: Message-ID: <43E1CB6B.30606@...221...> Hi Timothy, thanks for that tip. I forgot to mention that I need more than 2 controls on the left, so I ended up putting the controls into a panel and placing the panel on the left side. This has the disadvantage that you cannot stretch the elements on left inidividually, but it does what it's supposed to do. Timothy Marshal-Nichols schrieb: >1. Place an HSplit on the form >2. Place a VSplit in the HSplit on the left >3. Place the controls you want in the VSplit (your 1 and 2) >4. Place the other control you want on the right of the HSplit (your 3) > > It takes some fiddling on the Arrange and Resize etc. properties, but now it looks the way I had in mind when I started. Rolf From oczykota at ...988... Thu Feb 2 16:01:02 2006 From: oczykota at ...988... (Arkadiusz Zychewicz) Date: Thu, 02 Feb 2006 16:01:02 +0100 Subject: [Gambas-user] from MDK to SuSe10 and dependens Message-ID: <43E21EAE.4030904@...988...> Hi, User of my program have a Suse10 and when he try install my program form rpm making in gambas he get: # rpm -ivh faktury-0.6-3suse.noarch.rpm error: Failed dependencies: gambas-gb-db >= 1.0 is needed by faktury-0.6-3suse gambas-gb-db < 1.1 is needed by faktury-0.6-3suse gambas-gb-qt >= 1.0 is needed by faktury-0.6-3suse gambas-gb-qt < 1.1 is needed by faktury-0.6-3suse He has: gambas-1.9.17-2 gambas-runtime-1.0.13-0.gbv.1 And program you can download form: http://oczykota.homelinux.com/?m=fakturnis I have Mandrake 10.1 and i don't known how help him, so anybody known what is wrong? Arek. From timothy.marshal-nichols at ...247... Thu Feb 2 17:03:09 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Thu, 2 Feb 2006 16:03:09 -0000 Subject: [Gambas-user] HSplit with more than 1 element In-Reply-To: <43E1CB6B.30606@...221...> Message-ID: Other options include: A.) For a collection of, say buttons, you could us an HPanel. When this is resized it rearranges the controls. B.) To allow the user to selected between groups of controls add gb.form to your components and use the ToolPanel. Set the count to the number of panels you want. Click on the panel you want to add controls to. You can also set an Picture to each panel to make it look pretty. Thanks 8-{)} Timothy Marshal-Nichols -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Eilert Sent: Thursday, 02 February 2006 09:06 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] HSplit with more than 1 element Hi Timothy, thanks for that tip. I forgot to mention that I need more than 2 controls on the left, so I ended up putting the controls into a panel and placing the panel on the left side. This has the disadvantage that you cannot stretch the elements on left inidividually, but it does what it's supposed to do. Timothy Marshal-Nichols schrieb: >1. Place an HSplit on the form >2. Place a VSplit in the HSplit on the left >3. Place the controls you want in the VSplit (your 1 and 2) >4. Place the other control you want on the right of the HSplit (your 3) > > It takes some fiddling on the Arrange and Resize etc. properties, but now it looks the way I had in mind when I started. Rolf ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From brian at ...1334... Thu Feb 2 18:27:54 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Thu, 02 Feb 2006 09:27:54 -0800 (PST) Subject: [Gambas-user] (no subject) Message-ID: <20060202090940.A89417@...1337...> The documentation seems off for the SHELL command: As per the offline docs in 1.9.23: SHELL "[ ]" ( READ | WRITE | READ WRITE ) AS When trying the line: ... 16: PRIVATE video AS Process ... 'MainScreen is the name of a Form 285: SHELL "mplayer -wid " & Str(MainScreen.handle) & " -slave -noconsolecontrols -nojoystick -nolirc -nomouseinput" FOR READ WRITE AS video I get the error: Unexpected AS in Line 125 of Intro.module So what is the correct way to use shell to drive a console command On another note mplayer seems not to like what the handle property is giving back as an ID ([BadWindow] is XLib's complaint). .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | `=================================================' From brian at ...1334... Thu Feb 2 18:54:48 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Thu, 02 Feb 2006 09:54:48 -0800 (PST) Subject: [Gambas-user] SHELL syntax not as advertised??? Message-ID: <20060202095341.T89939@...1337...> I'm bad for forgetting subject topics :( The documentation seems off for the SHELL command: As per the offline docs in 1.9.23: SHELL "[ ]" ( READ | WRITE | READ WRITE ) AS When trying the line: ... 16: PRIVATE video AS Process ... 'MainScreen is the name of a Form 285: SHELL "mplayer -wid " & Str(MainScreen.handle) & " -slave -noconsolecontrols -nojoystick -nolirc -nomouseinput" FOR READ WRITE AS video I get the error: Unexpected AS in Line 125 of Intro.module So what is the correct way to use shell to drive a console command On another note mplayer seems not to like what the handle property is giving back as an ID ([BadWindow] is XLib's complaint). .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | `=================================================' ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From pvera at ...729... Thu Feb 2 19:40:43 2006 From: pvera at ...729... (Pablo Vera) Date: Thu, 02 Feb 2006 12:40:43 -0600 Subject: [Gambas-user] SHELL syntax not as advertised??? In-Reply-To: <20060202095341.T89939@...1337...> References: <20060202095341.T89939@...1337...> Message-ID: <43E2522B.30808@...729...> Your example says: SHELL "..." FOR READ WRITE AS video but I don't see the word FOR in this description: SHELL "[ ]" ( READ | WRITE | READ WRITE ) AS and I am not sure about the parenthesis, so maybe it should be like this: SHELL "..." (READ WRITE) AS video or SHELL "..." READ WRITE AS video Saludos, Pablo Vera Christopher Brian Jack wrote: > I'm bad for forgetting subject topics :( > > The documentation seems off for the SHELL command: > > As per the offline docs in 1.9.23: > SHELL "[ ]" ( READ | WRITE | READ WRITE ) AS > > When trying the line: > > ... > 16: PRIVATE video AS Process > ... > 'MainScreen is the name of a Form > 285: SHELL "mplayer -wid " & Str(MainScreen.handle) & " -slave -noconsolecontrols -nojoystick -nolirc -nomouseinput" FOR READ WRITE AS video > > I get the error: > Unexpected AS in Line 125 of Intro.module > > So what is the correct way to use shell to drive a console command > > On another note mplayer seems not to like what the handle property is > giving back as an ID ([BadWindow] is XLib's complaint). > > .=================================================. > | Christopher BRIAN Jack aka "Gau of the Veldt" | > `=================================================' > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From sourceforge-raindog2 at ...94... Thu Feb 2 19:43:48 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 2 Feb 2006 13:43:48 -0500 Subject: [Gambas-user] SHELL syntax not as advertised??? In-Reply-To: <20060202095341.T89939@...1337...> References: <20060202095341.T89939@...1337...> Message-ID: <200602021343.48791.sourceforge-raindog2@...94...> On Thu February 2 2006 12:54, Christopher Brian Jack wrote: > 285: SHELL "mplayer -wid " & Str(MainScreen.handle) & " -slave > Unexpected AS in Line 125 of Intro.module You sure the error isn't getting thrown somewhere else? The error message says line 125 and I assume that "285:" is the line number of your SHELL command. > On another note mplayer seems not to like what the handle > property is giving back as an ID ([BadWindow] is XLib's > complaint). I do notice that the MoviePlayer example uses a Label to display the mplayer video. Maybe mplayer can't embed into top-level windows? Try making a label that's the full height and width of the form, and using its handle instead. Rob From sourceforge-raindog2 at ...94... Thu Feb 2 19:55:52 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 2 Feb 2006 13:55:52 -0500 Subject: [Gambas-user] SHELL syntax not as advertised??? In-Reply-To: <200602021343.48791.sourceforge-raindog2@...94...> References: <20060202095341.T89939@...1337...> <200602021343.48791.sourceforge-raindog2@...94...> Message-ID: <200602021355.52266.sourceforge-raindog2@...94...> On Thu February 2 2006 13:43, Rob Kudla wrote: > > On another note mplayer seems not to like what the handle > > property is giving back as an ID ([BadWindow] is XLib's > > complaint). > I do notice that the MoviePlayer example uses a Label to > display the mplayer video. Maybe mplayer can't embed into > top-level windows? Try making a label that's the full height After further experimentation, I was unable to get mplayer to display on a Form or a Button, but it worked fine on a Label. Rob From brian at ...1334... Thu Feb 2 20:58:43 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Thu, 02 Feb 2006 11:58:43 -0800 (PST) Subject: [Gambas-user] SHELL syntax not as advertised??? In-Reply-To: <43E2522B.30808@...729...> References: <20060202095341.T89939@...1337...> <43E2522B.30808@...729...> Message-ID: <20060202115228.M90261@...1337...> On Thu, 2 Feb 2006, Pablo Vera wrote: > Your example says: > > SHELL "..." FOR READ WRITE AS video > > but I don't see the word FOR in this description: > > SHELL "[ ]" ( READ | WRITE | READ WRITE ) AS > > and I am not sure about the parenthesis, so maybe it should be like this: > > SHELL "..." (READ WRITE) AS video > > or > > SHELL "..." READ WRITE AS video > > > Saludos, > Pablo Vera > > Christopher Brian Jack wrote: > > I'm bad for forgetting subject topics :( > > > > The documentation seems off for the SHELL command: > > > > As per the offline docs in 1.9.23: > > SHELL "[ ]" ( READ | WRITE | READ WRITE ) AS > > > Yes I missed the FOR but it's there in the offline docs. I looked at the online docs after much hair pulling and discovered that the syntax is completely changed in 1.9.23: = SHELL [WAIT] "[ ]" [FOR { { READ | INPUT } | { WRITE | OUTPUT } }] This is why it didn't work. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From brian at ...1334... Thu Feb 2 21:08:01 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Thu, 02 Feb 2006 12:08:01 -0800 (PST) Subject: [Gambas-user] getting window ID In-Reply-To: <200602011942.45644.sourceforge-raindog2@...94...> References: <20060201155540.E85232@...1337...> <200602011942.45644.sourceforge-raindog2@...94...> Message-ID: <20060202120734.F90586@...1337...> On Wed, 1 Feb 2006, Rob Kudla wrote: > On Wed February 1 2006 18:58, Christopher Brian Jack wrote: > > Certain X Window applications can take as a parameter the ID > > of a currently open window. Is there a way to get this > > information from a Gambas Form? > > Yep.... most controls (including Window objects) have a Handle > property which returns that ID. > > See the MoviePlayer example for more details. > > Rob > I cannot even get mplayer to work within a label :( .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From brian at ...1334... Thu Feb 2 22:02:27 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Thu, 02 Feb 2006 13:02:27 -0800 (PST) Subject: [Gambas-user] getting window ID In-Reply-To: <20060202120734.F90586@...1337...> References: <20060201155540.E85232@...1337...> <200602011942.45644.sourceforge-raindog2@...94...> <20060202120734.F90586@...1337...> Message-ID: <20060202125838.C90649@...1337...> On Thu, 2 Feb 2006, Christopher Brian Jack wrote: > > On Wed February 1 2006 18:58, Christopher Brian Jack wrote: > > > Certain X Window applications can take as a parameter the ID > > > of a currently open window. Is there a way to get this > > > information from a Gambas Form? > > > > Yep.... most controls (including Window objects) have a Handle > > property which returns that ID. > > > > See the MoviePlayer example for more details. > I cannot even get mplayer to work within a label :( Got it to work just need to tweak the command line to mplayer so it doesn't show progress bars and stuff. Had to create a new form and put a label in that. Set it "always in front" and show and hide as necessary to show video clips. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From gambas at ...1... Thu Feb 2 23:45:59 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 2 Feb 2006 23:45:59 +0100 Subject: [Gambas-user] SHELL syntax not as advertised??? In-Reply-To: <20060202095341.T89939@...1337...> References: <20060202095341.T89939@...1337...> Message-ID: <200602022346.00214.gambas@...1...> On Thursday 02 February 2006 18:54, Christopher Brian Jack wrote: > I'm bad for forgetting subject topics :( > > The documentation seems off for the SHELL command: > > As per the offline docs in 1.9.23: > SHELL "[ ]" ( READ | WRITE | READ WRITE ) AS > > When trying the line: > > ... > 16: PRIVATE video AS Process > ... > 'MainScreen is the name of a Form > 285: SHELL "mplayer -wid " & Str(MainScreen.handle) & " -slave > -noconsolecontrols -nojoystick -nolirc -nomouseinput" FOR READ WRITE AS > video > > I get the error: > Unexpected AS in Line 125 of Intro.module > > So what is the correct way to use shell to drive a console command > > On another note mplayer seems not to like what the handle property is > giving back as an ID ([BadWindow] is XLib's complaint). > > .=================================================. > > | Christopher BRIAN Jack aka "Gau of the Veldt" | > > `=================================================' > The offline documentation is deprecated (it is for the 1.0 version). If you want to know how to embed mplayer, look at the MoviePlayer example. This needs a DrawingArea with Enabled = False, which internally implies some specific X11 stuff, needed to embed an application like mplayer. Regards, -- Benoit Minisini From brian at ...1334... Fri Feb 3 01:36:10 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Thu, 02 Feb 2006 16:36:10 -0800 (PST) Subject: [Gambas-user] SHELL syntax not as advertised??? In-Reply-To: <200602022346.00214.gambas@...1...> References: <20060202095341.T89939@...1337...> <200602022346.00214.gambas@...1...> Message-ID: <20060202161901.G91070@...1337...> On Thu, 2 Feb 2006, Benoit Minisini wrote: > If you want to know how to embed mplayer, look at the MoviePlayer example. > This needs a DrawingArea with Enabled = False, which internally implies some > specific X11 stuff, needed to embed an application like mplayer. > > Regards, > > -- > Benoit Minisini I created a separate borderless form with a label (The label was a suggest by Mr. Kudla. I think the label itself is disabled but the form behind it is enabled). Then I just use the Form's Show and Hide methods and implemented some event reflection (to send key events back to the non-video Form while video is playing). The non-video form handles things like 3-finger salute (aka "SquareSoft Reset" in Anime Mayhem it's CTRL+ALT+TAB) and insta-quit (a Sphere'ism [http://sphere.sf.net] ESC key exits immediately). The form works like a charm and the inactive label means the control in the form behind the playback form keeps focus during video scenes (and thus can get keyboad events). Mplayer works well using its "slave mode" and Gambas print# and all I had to add was a "dummy" mplayer configfile that deactivates all the keyboard bindings (bindings are great for standalone playback but horrid for in-game animation particularly when the audio is sourced outside the video say from a separate MP3/OGG file). Oh and a chicanery kludge (SHELL "pwd" TO absPath) becuase mplayer wanted an absolute path to its configfile within the project (mplayer bases relative paths off of ~/.mplayer/) .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From gambas at ...1... Fri Feb 3 23:03:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 3 Feb 2006 23:03:39 +0100 Subject: [Gambas-user] Release of Gambas 1.9.24 Message-ID: <200602032303.40809.gambas@...1...> Hi everybody, Here a new release of the development version. The main changes in this version are: * Things now should work correctly on a big-endian CPU. Not tested! * From a Nigel Gerrard's idea, there is a new instruction, PIPE, for using named pipes. * Two new functions, Lsl() and Lsr(), for doing logical shifts. * The position of the current line in the debugger should be always accurate now. * The Drag & Drop was fixed in the ListView, TreeView, ScrollView, ColumnView and IconView controls. * A new property, Window.Controls, for returning a collection of all controls located in a window. * The sqlite driver now automatically switch between sqlite2 and sqlite3. And many other bug fixes of course. Don't forget to read the changelog... WARNING! The bytecode has changed, and so you have to recompile your projects. The syntax of the new PIPE instruction is: DIM hPipe AS File hPipe = PIPE FOR [ READ | WRITE ] [ WATCH ] is the path name of the named pipe. If the named pipe does not exist, it is automatically created. Enjoy it! -- Benoit Minisini From rohnny at ...1248... Fri Feb 3 23:57:54 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Fri, 03 Feb 2006 23:57:54 +0100 Subject: [Gambas-user] Re:Release of Gambas 1.9.24 Message-ID: <43E3DFF2.7020605@...1248...> hi Benoit. Looks like a couple of things that not are corrected in the new version. databasemanager does not select serial as field type. Still can't find gb.serial only db.serial, should it be with the rest of the fields types? -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From gambas at ...1... Sat Feb 4 00:16:32 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 4 Feb 2006 00:16:32 +0100 Subject: [Gambas-user] Re:Release of Gambas 1.9.24 In-Reply-To: <43E3DFF2.7020605@...1248...> References: <43E3DFF2.7020605@...1248...> Message-ID: <200602040016.32600.gambas@...1...> On Friday 03 February 2006 23:57, Rohnny Stormo wrote: > hi Benoit. > > > Looks like a couple of things that not are corrected in the new version. > > databasemanager does not select serial as field type. > Still can't find gb.serial only db.serial, should it be with the rest of > the fields types? What's the problem exactly ? -- Benoit Minisini From rohnny at ...1248... Sat Feb 4 07:27:03 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 04 Feb 2006 07:27:03 +0100 Subject: [Gambas-user] Re:Release of Gambas 1.9.24 Message-ID: <43E44937.90900@...1248...> From: Benoit Minisini * Re: Re:Release of Gambas 1.9.24* 2006-02-03 15:16 On Friday 03 February 2006 23:57, Rohnny Stormo wrote: > hi Benoit. > > > Looks like a couple of things that not are corrected in the new version. > > databasemanager does not select serial as field type. > Still can't find gb.serial only db.serial, should it be with the rest of > the fields types? What's the problem exactly ? -- Benoit Minisini The problem is. If you have a database with several tables and more than one table have gb.serial field. Lets say you need to add one more field in the table you need to remember to change fields from gb.integer to gb.serial because it do not set the gb.serial when you open the table (from database manager). If it was some time ago since the last change you may have forgott that the field was gb.serial and you do the change and save the table, Also in this version when you go into the database manager and try to change the field from integer to serial the database manager crashes and quit. withoout any message. The previous version you got the message that it was a problem with the index. You needed to delete the index, make the change, save the table and create the index, then save it again. Regards Rohnny -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From gambas at ...1... Sat Feb 4 10:48:25 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 4 Feb 2006 10:48:25 +0100 Subject: [Gambas-user] Re:Release of Gambas 1.9.24 In-Reply-To: <43E44937.90900@...1248...> References: <43E44937.90900@...1248...> Message-ID: <200602041048.25738.gambas@...1...> On Saturday 04 February 2006 07:27, Rohnny Stormo wrote: > From: Benoit Minisini > * Re: Re:Release of Gambas 1.9.24* > > 2006-02-03 15:16 > > On Friday 03 February 2006 23:57, Rohnny Stormo wrote: > > hi Benoit. > > > > > > Looks like a couple of things that not are corrected in the new version. > > > > databasemanager does not select serial as field type. > > Still can't find gb.serial only db.serial, should it be with the rest of > > the fields types? > > What's the problem exactly ? > > -- > Benoit Minisini > > > The problem is. If you have a database with several tables and more than > one table have gb.serial field. Lets say you need to add one more field in > the table you need to remember to change fields from gb.integer to > gb.serial because it do not set the gb.serial when you open the table (from > database manager). If it was some time ago since the last change you may > have forgott that the field was gb.serial and you do the change and save > the table, > > Also in this version when you go into the database manager and try to > change the field from integer to serial the database manager crashes and > quit. withoout any message. The previous version you got the message that > it was a problem with the index. You needed to delete the index, make the > change, save the table and create the index, then save it again. > > > Regards Rohnny Which database driver do you use? -- Benoit Minisini From rohnny at ...1248... Sat Feb 4 13:06:13 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 04 Feb 2006 13:06:13 +0100 Subject: [Gambas-user] Release of Gambas 1.9.24 Message-ID: <43E498B5.8050203@...1248...> From: Benoit Minisini * Re: Re:Release of Gambas 1.9.24* 2006-02-04 01:48 On Saturday 04 February 2006 07:27, Rohnny Stormo wrote: > From: Benoit Minisini > * Re: Re:Release of Gambas 1.9.24* > > 2006-02-03 15:16 > > On Friday 03 February 2006 23:57, Rohnny Stormo wrote: > > hi Benoit. > > > > > > Looks like a couple of things that not are corrected in the new version. > > > > databasemanager does not select serial as field type. > > Still can't find gb.serial only db.serial, should it be with the rest of > > the fields types? > > What's the problem exactly ? > > -- > Benoit Minisini > > > The problem is. If you have a database with several tables and more than > one table have gb.serial field. Lets say you need to add one more field in > the table you need to remember to change fields from gb.integer to > gb.serial because it do not set the gb.serial when you open the table (from > database manager). If it was some time ago since the last change you may > have forgott that the field was gb.serial and you do the change and save > the table, > > Also in this version when you go into the database manager and try to > change the field from integer to serial the database manager crashes and > quit. withoout any message. The previous version you got the message that > it was a problem with the index. You needed to delete the index, make the > change, save the table and create the index, then save it again. > > > Regards Rohnny Which database driver do you use? -- Benoit Minisini Sorry, forgot that. I'm using sqlite3 Rohnny -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From gambas at ...1... Sat Feb 4 14:03:10 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 4 Feb 2006 14:03:10 +0100 Subject: [Gambas-user] Release of Gambas 1.9.24 In-Reply-To: <43E498B5.8050203@...1248...> References: <43E498B5.8050203@...1248...> Message-ID: <200602041403.10555.gambas@...1...> On Saturday 04 February 2006 13:06, Rohnny Stormo wrote: > > > Sorry, forgot that. I'm using sqlite3 > > > Rohnny There is no sqlite3 driver anymore. Now is it named 'sqlite'. I don't have any of the problems you described, but I noticed that it is impossible to modify a sqlite table with a serial field and data inside. Here is a patch, that ignores modification of serial fields instead of raising an error. Put it in './src/main/lib/db'. Otherwise, please try what you did with other database drivers, to see if there is any difference (I mean if the problem comes from the driver, or from the component). Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: CResult.c Type: text/x-csrc Size: 17124 bytes Desc: not available URL: From rohnny at ...1248... Sat Feb 4 16:13:31 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 04 Feb 2006 16:13:31 +0100 Subject: [Gambas-user] Release of Gambas 1.9.24 Message-ID: <43E4C49B.9060306@...1248...> When I make it result in this error. sult.c -fPIC -DPIC -o .libs/CResult.o CResult.c: In function 'CRESULT_delete': CResult.c:671: error: syntax error at end of input CResult.c:651: warning: unused variable 'pos' CResult.c:648: warning: unused variable '_p' make[5]: *** [CResult.lo] Error 1 ---- BEGIN_METHOD(CRESULT_delete, GB_BOOLEAN keep) DB_INFO *info = &THIS->info; long *pos; if (check_available(THIS)) return; q_init(); switch(THIS->mode) { case RESULT_CREATE: void_buffer(THIS); break; case RESULT_EDIT: q_add("DELETE FROM "); q_add(THIS->driver->GetQuote()); q_add(info->table); q_add(THIS->driver->GetQuote()); q_add(" WHERE ") ^^^^^^^ Is there something missing here? } END_METHOD or maybee something more? Rohnny -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From lordheavy at ...512... Sat Feb 4 16:24:32 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Sat, 4 Feb 2006 16:24:32 +0100 Subject: [Gambas-user] Release of Gambas 1.9.24 In-Reply-To: <43E4C49B.9060306@...1248...> References: <43E4C49B.9060306@...1248...> Message-ID: <200602041624.32344.lordheavy@...512...> Le Samedi 4 F?vrier 2006 16:13, Rohnny Stormo a ?crit?: > When I make it result in this error. > sult.c -fPIC -DPIC -o .libs/CResult.o > CResult.c: In function 'CRESULT_delete': > CResult.c:671: error: syntax error at end of input > CResult.c:651: warning: unused variable 'pos' > CResult.c:648: warning: unused variable '_p' > make[5]: *** [CResult.lo] Error 1 > > ---- > > BEGIN_METHOD(CRESULT_delete, GB_BOOLEAN keep) > > DB_INFO *info = &THIS->info; > long *pos; > > if (check_available(THIS)) > return; > > q_init(); > > switch(THIS->mode) > { > case RESULT_CREATE: > > void_buffer(THIS); > break; > > case RESULT_EDIT: > > q_add("DELETE FROM "); > q_add(THIS->driver->GetQuote()); > q_add(info->table); > q_add(THIS->driver->GetQuote()); > q_add(" WHERE ") > > ^^^^^^^ > Is there something missing here? > } > END_METHOD > > or maybee something more? > > > > Rohnny I've tried the patch and it compiles fine. Are you sure ? make clean && make ? regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From rohnny at ...1248... Sat Feb 4 17:21:34 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 04 Feb 2006 17:21:34 +0100 Subject: [Gambas-user] RE:Release of Gambas 1.9.24 Message-ID: <43E4D48E.5030503@...1248...> Trie make clean && make the same error. gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../share -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT CResult.lo -MD -MP -MF .deps/CResult.Tpo -c CResult.c -fPIC -DPIC -o .libs/CResult.o CResult.c: In function 'CRESULT_delete': CResult.c:671: error: syntax error at end of input CResult.c:651: warning: unused variable 'pos' CResult.c:648: warning: unused variable '_p' make[5]: *** [CResult.lo] Error 1 make[5]: Leaving directory `/home/username/Desktop/gambas2-1.9.24/main/lib/db' Regards Rohnny From gambas at ...1... Sat Feb 4 17:25:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 4 Feb 2006 17:25:51 +0100 Subject: [Gambas-user] RE:Release of Gambas 1.9.24 In-Reply-To: <43E4D48E.5030503@...1248...> References: <43E4D48E.5030503@...1248...> Message-ID: <200602041725.52145.gambas@...1...> On Saturday 04 February 2006 17:21, Rohnny Stormo wrote: > Trie make clean && make the same error. > > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../share -pipe -Wall > -fno-strict-aliasing -Wno-unused-value -g -Os -MT CResult.lo -MD -MP -MF > .deps/CResult.Tpo -c CResult.c -fPIC -DPIC -o .libs/CResult.o > CResult.c: In function 'CRESULT_delete': > CResult.c:671: error: syntax error at end of input > CResult.c:651: warning: unused variable 'pos' > CResult.c:648: warning: unused variable '_p' > make[5]: *** [CResult.lo] Error 1 > make[5]: Leaving directory > `/home/username/Desktop/gambas2-1.9.24/main/lib/db' > > > Regards Rohnny > Try to download the source package again, and compare with the one you downloaded first. Maybe you got something corrupted? -- Benoit Minisini From fidojones at ...805... Sat Feb 4 17:58:40 2006 From: fidojones at ...805... (Lorenzo Tejera) Date: Sat, 4 Feb 2006 17:58:40 +0100 (CET) Subject: [Gambas-user] Re: Release of Gambas 1.9.24 and mysql In-Reply-To: <200602041725.52145.gambas@...1...> References: <43E4D48E.5030503@...1248...> <200602041725.52145.gambas@...1...> Message-ID: <60635.85.155.40.83.1139072320.squirrel@...1316...> I'm continue crying wanted String got BLOB instead, field `Direccion` ?? is a mediumtext, my software not work more than Gambas 1.9.22. In "database manager" no appears data in field `Direccion` ? and the rest of field works fine! no works database manager, no works my aplication, is reporting bad the kind of field. MySQL connection id is 64 to server version: 4.1.16 "compilated by hand" REATE TABLE `tbclientes` ( `ID` int(16) NOT NULL auto_increment, `Nombre` varchar(200) NOT NULL default '', `NIF` varchar(50) NOT NULL default '', `Direccion` mediumtext NOT NULL, `Telefono1` varchar(50) NOT NULL default '', `Telefono2` varchar(50) NOT NULL default '', PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ; INSERT INTO `tbclientes` VALUES (23, 'aa', 'bbb', 'ccc', 'ddd', 'e'); From a.grandi at ...626... Sat Feb 4 18:20:00 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Sat, 4 Feb 2006 18:20:00 +0100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 Message-ID: <9cf0f07b0602040920l1112aa12l@...627...> Hi, I made a .deb package for Ubuntu Breezy 5.10, you can find it here: http://www.ptlug.org/download/packages/gambas2_1.9.24-1_i386.deb I hope you find it usefull! Bye :) From mm at ...1313... Sat Feb 4 19:38:05 2006 From: mm at ...1313... (mm at ...1313...) Date: Sat, 4 Feb 2006 19:38:05 +0100 Subject: [Gambas-user] Form1 too old Message-ID: <200602041938.06120.mm@...1313...> Hi, I am trying to open a projekt written with Gambas 1 with the current Gambas 1.9 version. While trying to start the projekt I get an error message: Cannot load class "Form1": Version too old. Please recompile. What should I do now? Do I need to recompile the class? Best Regards Marcus From lordheavy at ...512... Sat Feb 4 19:48:52 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Sat, 4 Feb 2006 19:48:52 +0100 Subject: [Gambas-user] Form1 too old In-Reply-To: <200602041938.06120.mm@...1313...> References: <200602041938.06120.mm@...1313...> Message-ID: <200602041948.53212.lordheavy@...512...> Le Samedi 4 F?vrier 2006 19:38, mm at ...1313... a ?crit?: > Hi, > > I am trying to open a projekt written with Gambas 1 with the current Gambas > 1.9 version. While trying to start the projekt I get an error message: > > Cannot load class "Form1": Version too old. Please recompile. > > What should I do now? Do I need to recompile the class? > > Best Regards > Marcus > Try 'Alt+F7' or in the menu Project-> compile all Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From rohnny at ...1248... Sat Feb 4 20:36:17 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 04 Feb 2006 20:36:17 +0100 Subject: [Gambas-user] Re: Release of Gambas 1.9.24 In-Reply-To: <20060204152604.B7E2D12099@...773...> References: <20060204152604.B7E2D12099@...773...> Message-ID: <43E50231.2060500@...1248...> Not Able to apply the source, still the error. Now I have tried to download gambas again. Copied exact what was on on this mailing list as CResult.c Tried to change only the part that was on the mailing list with the one on the existing CResult.c no luck. So I have todo something very wrong since Laurent Carlier got it to work. Regards Rohnny From lordheavy at ...512... Sat Feb 4 21:17:29 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Sat, 4 Feb 2006 21:17:29 +0100 Subject: [Gambas-user] Re: Release of Gambas 1.9.24 In-Reply-To: <43E50231.2060500@...1248...> References: <20060204152604.B7E2D12099@...773...> <43E50231.2060500@...1248...> Message-ID: <200602042117.29185.lordheavy@...512...> Le Samedi 4 F?vrier 2006 20:36, Rohnny Stormo a ?crit?: > Not Able to apply the source, still the error. > > Now I have tried to download gambas again. > Copied exact what was on on this mailing list as CResult.c > > Tried to change only the part that was on the mailing list with the one > on the existing CResult.c no luck. > > So I have todo something very wrong since Laurent Carlier got it to work. > > Regards Rohnny > Can you send here you Cresult.c file ? -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From lordheavy at ...512... Sat Feb 4 23:56:57 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Sat, 4 Feb 2006 23:56:57 +0100 Subject: [Gambas-user] RE:Release of Gambas 1.9.24 In-Reply-To: <43E4D48E.5030503@...1248...> References: <43E4D48E.5030503@...1248...> Message-ID: <200602042356.58108.lordheavy@...512...> Le Samedi 4 F?vrier 2006 17:21, Rohnny Stormo a ?crit?: > Trie make clean && make the same error. > > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../share -pipe -Wall > -fno-strict-aliasing -Wno-unused-value -g -Os -MT CResult.lo -MD -MP -MF > .deps/CResult.Tpo -c CResult.c -fPIC -DPIC -o .libs/CResult.o > CResult.c: In function 'CRESULT_delete': > CResult.c:671: error: syntax error at end of input > CResult.c:651: warning: unused variable 'pos' > CResult.c:648: warning: unused variable '_p' > make[5]: *** [CResult.lo] Error 1 > make[5]: Leaving directory > `/home/username/Desktop/gambas2-1.9.24/main/lib/db' > > > Regards Rohnny > Found the problem in the file you send me. Your CResult.c is "corrupted". You have delete the semicolon at the end of line 671. You have : q_add(" WHERE ") You MUST have : q_add(" WHERE "); Correct this and the should compile fine :-) Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From rohnny at ...1248... Sun Feb 5 08:13:05 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sun, 05 Feb 2006 08:13:05 +0100 Subject: [Gambas-user] Re: Release of Gambas 1.9.24 In-Reply-To: <20060205041915.6578D129D0@...773...> References: <20060205041915.6578D129D0@...773...> Message-ID: <43E5A581.7060504@...1248...> Now it did compile ok, Thanks. But still the problem that database manager disapear when try to make a change. I moved my database file away from the folder, removed the server. Created a new server, created a test database with test table. And it worked. The serial field was also selected on the test table. Copy backed my database file and it came in very nicely. Everything are ok. Here is also the serial field selected. Thanks for the help. Regards Rohnny From dcamposf at ...626... Sun Feb 5 10:01:52 2006 From: dcamposf at ...626... (Daniel Campos) Date: Sun, 5 Feb 2006 10:01:52 +0100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <9cf0f07b0602040920l1112aa12l@...627...> References: <9cf0f07b0602040920l1112aa12l@...627...> Message-ID: <7259b5ae0602050101m517cb8a4s@...627...> Hi: Thanks for your work, Andrea. You should look at the gnuLinex packages (for Debian), made by Jose L. Redrejo. It splits gambas in the different components available, so the user has to install only the needed part, instead of a big package. I suppose you can use the structure of these packages for your Ubuntu version: http://apt.linex.org/dists/cl/gambas/binary-i386/ All the rest of packages for other distributions (Mandiva, Fedora...) follow that schema. Regards, D. Campos 2006/2/4, Andrea Grandi : > > Hi, > > I made a .deb package for Ubuntu Breezy 5.10, you can find it here: > http://www.ptlug.org/download/packages/gambas2_1.9.24-1_i386.deb > > I hope you find it usefull! > > Bye :) > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cocozz at ...626... Sun Feb 5 11:51:11 2006 From: cocozz at ...626... (cocozz) Date: Sun, 5 Feb 2006 11:51:11 +0100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <7259b5ae0602050101m517cb8a4s@...627...> References: <9cf0f07b0602040920l1112aa12l@...627...> <7259b5ae0602050101m517cb8a4s@...627...> Message-ID: <4dfd57090602050251t3d754697mb9d3a5ca70e9b691@...627...> Thanks Andrea ;-) On 2/5/06, Daniel Campos wrote: > Hi: > > Thanks for your work, Andrea. You should look at the gnuLinex packages (for > Debian), made by Jose L. Redrejo. It splits gambas in the different > components available, so the user has to install only the needed part, > instead of a big package. I suppose you can use the structure of these > packages for your Ubuntu version: > > http://apt.linex.org/dists/cl/gambas/binary-i386/ > > All the rest of packages for other distributions (Mandiva, Fedora...) > follow that schema. > > Regards, > > D. Campos > > 2006/2/4, Andrea Grandi : > > Hi, > > > > I made a .deb package for Ubuntu Breezy 5.10, you can find it here: > > > http://www.ptlug.org/download/packages/gambas2_1.9.24-1_i386.deb > > > > I hope you find it usefull! > > > > Bye :) > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From johnhedge at ...626... Sun Feb 5 12:56:27 2006 From: johnhedge at ...626... (john hedge) Date: Sun, 5 Feb 2006 22:56:27 +1100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <4dfd57090602050251t3d754697mb9d3a5ca70e9b691@...627...> References: <9cf0f07b0602040920l1112aa12l@...627...> <7259b5ae0602050101m517cb8a4s@...627...> <4dfd57090602050251t3d754697mb9d3a5ca70e9b691@...627...> Message-ID: <6e3a096b0602050356i2689946axdf978b6570aaf710@...627...> Well done Andrea. I've been waiting for someone to make installing Gambas less of a guessing game. Now I've got the whole package installed and I can choose the bits I want without wondering what I'm missing. Thanks again. John On 2/5/06, cocozz wrote: > > Thanks Andrea ;-) > > On 2/5/06, Daniel Campos wrote: > > Hi: > > > > Thanks for your work, Andrea. You should look at the gnuLinex packages > (for > > Debian), made by Jose L. Redrejo. It splits gambas in the different > > components available, so the user has to install only the needed part, > > instead of a big package. I suppose you can use the structure of these > > packages for your Ubuntu version: > > > > http://apt.linex.org/dists/cl/gambas/binary-i386/ > > > > All the rest of packages for other distributions (Mandiva, Fedora...) > > follow that schema. > > > > Regards, > > > > D. Campos > > > > 2006/2/4, Andrea Grandi : > > > Hi, > > > > > > I made a .deb package for Ubuntu Breezy 5.10, you can find it here: > > > > > http://www.ptlug.org/download/packages/gambas2_1.9.24-1_i386.deb > > > > > > I hope you find it usefull! > > > > > > Bye :) > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > > > for problems? Stop! Download the new AJAX search engine that makes > > > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > > > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.grandi at ...626... Sun Feb 5 13:17:04 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Sun, 5 Feb 2006 13:17:04 +0100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <7259b5ae0602050101m517cb8a4s@...627...> References: <9cf0f07b0602040920l1112aa12l@...627...> <7259b5ae0602050101m517cb8a4s@...627...> Message-ID: <9cf0f07b0602050417p5eaef5f5t@...627...> Hi, > Thanks for your work, Andrea. You should look at the gnuLinex packages (for > Debian), made by Jose L. Redrejo. It splits gambas in the different > components available, so the user has to install only the needed part, > instead of a big package. I suppose you can use the structure of these > packages for your Ubuntu version: > > http://apt.linex.org/dists/cl/gambas/binary-i386/ > > All the rest of packages for other distributions (Mandiva, Fedora...) > follow that schema. I made the package using "checkinstall". I really don't know how to split it in different packages. From eilert-sprachen at ...221... Mon Feb 6 10:51:50 2006 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 06 Feb 2006 10:51:50 +0100 Subject: [Gambas-user] Error compiling 1.9.24 Message-ID: <43E71C36.5060205@...221...> Hi folks, Just because I was curious, I downloaded 1.9.24 and tried to compile it. After ./configure, I got this message: THESE COMPONENTS ARE DISABLED: - gb.corba - gb.db.mysql - gb.db.odbc - gb.db.postgresql - gb.db.sqlite - gb.gtk - gb.ldap - gb.net.curl - gb.pdf And when I compile, after a while the following happens. Does this have to do with above messages? make[4]: Entering directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c -fPIC -DPIC -o .libs/main.o if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT regexp.lo -MD -MP -MF ".deps/regexp.Tpo" -c -o regexp.lo regexp.c; \ then mv -f ".deps/regexp.Tpo" ".deps/regexp.Plo"; else rm -f ".deps/regexp.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os -MT regexp.lo -MD -MP -MF .deps/regexp.Tpo -c regexp.c -fPIC -DPIC -o .libs/regexp.o regexp.c:368: error: `PCRE_ERROR_BADUTF8_OFFSET' undeclared here (not in a function) regexp.c:368: error: initializer element is not constant regexp.c:368: error: (near initialization for `CRegexpDesc[29].val2') regexp.c:368: error: initializer element is not constant regexp.c:368: error: (near initialization for `CRegexpDesc[29]') regexp.c:370: error: initializer element is not constant regexp.c:370: error: (near initialization for `CRegexpDesc[30]') regexp.c:371: error: initializer element is not constant regexp.c:371: error: (near initialization for `CRegexpDesc[31]') regexp.c:372: error: initializer element is not constant regexp.c:372: error: (near initialization for `CRegexpDesc[32]') regexp.c:374: error: initializer element is not constant regexp.c:374: error: (near initialization for `CRegexpDesc[33]') make[4]: *** [regexp.lo] Fehler 1 make[4]: Leaving directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Leaving directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' make[2]: *** [all] Fehler 2 make[2]: Leaving directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24' make: *** [all] Fehler 2 From eilert-sprachen at ...221... Mon Feb 6 11:49:30 2006 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 06 Feb 2006 11:49:30 +0100 Subject: [Gambas-user] False Documentation for Date Message-ID: <43E729BA.4060304@...221...> In the help for the date function "WeekDay" the numbers in the example seems to be false: On my system, Sunday returns "0", not "7". So it seems to count like on American calendars. Does this depend on local settings, or can I rely on it staying this way? Rolf From lordheavy at ...512... Mon Feb 6 12:06:33 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 6 Feb 2006 12:06:33 +0100 Subject: [Gambas-user] False Documentation for Date In-Reply-To: <43E729BA.4060304@...221...> References: <43E729BA.4060304@...221...> Message-ID: <200602061206.33215.lordheavy@...512...> Le Lundi 6 F?vrier 2006 11:49, Eilert a ?crit?: > In the help for the date function "WeekDay" the numbers in the example > seems to be false: > > On my system, Sunday returns "0", not "7". So it seems to count like on > American calendars. Does this depend on local settings, or can I rely on > it staying this way? > > Rolf > Perhaps it's better to use predefined constants like gb.Sunday instead of 0 or 7 ? Does it work with predefined constants ? Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From jfabiani at ...1109... Mon Feb 6 12:54:09 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 6 Feb 2006 03:54:09 -0800 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <43E71C36.5060205@...221...> References: <43E71C36.5060205@...221...> Message-ID: <200602060354.09477.jfabiani@...1109...> On Monday 06 February 2006 01:51, Eilert wrote: > Hi folks, > > Just because I was curious, I downloaded 1.9.24 and tried to compile it. > After ./configure, I got this message: > > THESE COMPONENTS ARE DISABLED: > > - gb.corba > - gb.db.mysql > - gb.db.odbc > - gb.db.postgresql > - gb.db.sqlite > - gb.gtk > - gb.ldap > - gb.net.curl > - gb.pdf > > And when I compile, after a while the following happens. Does this have > to do with above messages? > > make[4]: Entering directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.c; \ > then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f > ".deps/main.Tpo"; exit 1; fi > mkdir .libs > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c > main.c -fPIC -DPIC -o .libs/main.o > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT regexp.lo -MD -MP -MF ".deps/regexp.Tpo" -c -o regexp.lo regexp.c; \ > then mv -f ".deps/regexp.Tpo" ".deps/regexp.Plo"; else rm -f > ".deps/regexp.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT regexp.lo -MD -MP -MF .deps/regexp.Tpo -c > regexp.c -fPIC -DPIC -o .libs/regexp.o > regexp.c:368: error: `PCRE_ERROR_BADUTF8_OFFSET' undeclared here (not in > a function) > regexp.c:368: error: initializer element is not constant > regexp.c:368: error: (near initialization for `CRegexpDesc[29].val2') > regexp.c:368: error: initializer element is not constant > regexp.c:368: error: (near initialization for `CRegexpDesc[29]') > regexp.c:370: error: initializer element is not constant > regexp.c:370: error: (near initialization for `CRegexpDesc[30]') > regexp.c:371: error: initializer element is not constant > regexp.c:371: error: (near initialization for `CRegexpDesc[31]') > regexp.c:372: error: initializer element is not constant > regexp.c:372: error: (near initialization for `CRegexpDesc[32]') > regexp.c:374: error: initializer element is not constant > regexp.c:374: error: (near initialization for `CRegexpDesc[33]') > make[4]: *** [regexp.lo] Fehler 1 > make[4]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24' > make: *** [all] Fehler 2 You need to install the development packages. For the database postgres, etc... John From gambas at ...1... Mon Feb 6 13:40:34 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 6 Feb 2006 13:40:34 +0100 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <43E71C36.5060205@...221...> References: <43E71C36.5060205@...221...> Message-ID: <200602061340.34982.gambas@...1...> On Monday 06 February 2006 10:51, Eilert wrote: > Hi folks, > > Just because I was curious, I downloaded 1.9.24 and tried to compile it. > After ./configure, I got this message: > > THESE COMPONENTS ARE DISABLED: > > - gb.corba > - gb.db.mysql > - gb.db.odbc > - gb.db.postgresql > - gb.db.sqlite > - gb.gtk > - gb.ldap > - gb.net.curl > - gb.pdf > > And when I compile, after a while the following happens. Does this have > to do with above messages? > > make[4]: Entering directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT main.lo -MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.c; \ > then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f > ".deps/main.Tpo"; exit 1; fi > mkdir .libs > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT main.lo -MD -MP -MF .deps/main.Tpo -c > main.c -fPIC -DPIC -o .libs/main.o > if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I.. -pipe -Wall -fno-strict-aliasing -Wno-unused-value -g -Os > -MT regexp.lo -MD -MP -MF ".deps/regexp.Tpo" -c -o regexp.lo regexp.c; \ > then mv -f ".deps/regexp.Tpo" ".deps/regexp.Plo"; else rm -f > ".deps/regexp.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-value -g -Os -MT regexp.lo -MD -MP -MF .deps/regexp.Tpo -c > regexp.c -fPIC -DPIC -o .libs/regexp.o > regexp.c:368: error: `PCRE_ERROR_BADUTF8_OFFSET' undeclared here (not in > a function) > regexp.c:368: error: initializer element is not constant > regexp.c:368: error: (near initialization for `CRegexpDesc[29].val2') > regexp.c:368: error: initializer element is not constant > regexp.c:368: error: (near initialization for `CRegexpDesc[29]') > regexp.c:370: error: initializer element is not constant > regexp.c:370: error: (near initialization for `CRegexpDesc[30]') > regexp.c:371: error: initializer element is not constant > regexp.c:371: error: (near initialization for `CRegexpDesc[31]') > regexp.c:372: error: initializer element is not constant > regexp.c:372: error: (near initialization for `CRegexpDesc[32]') > regexp.c:374: error: initializer element is not constant > regexp.c:374: error: (near initialization for `CRegexpDesc[33]') > make[4]: *** [regexp.lo] Fehler 1 > make[4]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' > make[2]: *** [all] Fehler 2 > make[2]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24/gb.pcre' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Leaving directory > `/raid/home/tester/Downloads/gambas2/gambas2-1.9.24' > make: *** [all] Fehler 2 > As written on the web site, please tell which distribution you use, which system, and send the complete output of configure script. Without that, how can we help you? Regards, -- Benoit Minisini From dcamposf at ...626... Mon Feb 6 14:40:04 2006 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 6 Feb 2006 14:40:04 +0100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <6e3a096b0602050356i2689946axdf978b6570aaf710@...627...> References: <9cf0f07b0602040920l1112aa12l@...627...> <7259b5ae0602050101m517cb8a4s@...627...> <4dfd57090602050251t3d754697mb9d3a5ca70e9b691@...627...> <6e3a096b0602050356i2689946axdf978b6570aaf710@...627...> Message-ID: <7259b5ae0602060540n2179110g@...627...> 2006/2/5, john hedge : > > Well done Andrea. > > I've been waiting for someone to make installing Gambas less of a guessing > game. Now I've got the whole package installed and I can choose the bits I > want without wondering what I'm missing. > > Having just a big package prevents people from download what they need without bloat. For people who need the complete environment, is just matter of creating a virtual package, for example called 'gambas' which installs all the rest of packages. That way people can choose the two ways. Regards, D, Campos -------------- next part -------------- An HTML attachment was scrubbed... URL: From timothy.marshal-nichols at ...247... Mon Feb 6 18:15:49 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Mon, 6 Feb 2006 17:15:49 -0000 Subject: [Gambas-user] False Documentation for Date In-Reply-To: <200602061206.33215.lordheavy@...512...> Message-ID: gb.Weekday appears to return the wrong result. Today (Monday) it returns 6 on my machine. However: IF Weekday(Now) = gb.Monday THEN PRINT "Monday ", Weekday(Now), gb.Monday END IF returns the right result. Use Weekday(Now) Thanks 8-{)} Timothy Marshal-Nichols -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Laurent Carlier Sent: Monday, 06 February 2006 11:07 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] False Documentation for Date Le Lundi 6 F?vrier 2006 11:49, Eilert a ?crit?: > In the help for the date function "WeekDay" the numbers in the example > seems to be false: > > On my system, Sunday returns "0", not "7". So it seems to count like on > American calendars. Does this depend on local settings, or can I rely on > it staying this way? > > Rolf > Perhaps it's better to use predefined constants like gb.Sunday instead of 0 or 7 ? Does it work with predefined constants ? Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Mon Feb 6 18:28:58 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 6 Feb 2006 12:28:58 -0500 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <43E71C36.5060205@...221...> References: <43E71C36.5060205@...221...> Message-ID: <200602061228.58385.sourceforge-raindog2@...94...> On Mon February 6 2006 04:51, Eilert wrote: > And when I compile, after a while the following happens. Does > this have to do with above messages? Sure looks like you don't have the PCRE development files installed (probably a package called "pcre-devel" or something similar) or it's too old a version, or maybe even too new a version. Without seeing what version and distro you're using and the output of your configure script I have no way to be sure. Rob From sourceforge-raindog2 at ...94... Mon Feb 6 19:19:42 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 6 Feb 2006 13:19:42 -0500 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <7259b5ae0602060540n2179110g@...627...> References: <9cf0f07b0602040920l1112aa12l@...627...> <6e3a096b0602050356i2689946axdf978b6570aaf710@...627...> <7259b5ae0602060540n2179110g@...627...> Message-ID: <200602061319.42908.sourceforge-raindog2@...94...> On Mon February 6 2006 08:40, Daniel Campos wrote: > Having just a big package prevents people from download > what they need > without bloat. For people who need the complete environment, > is just matter of creating a virtual package, for example > called 'gambas' which installs all the rest of packages. That > way people can choose the two ways. In the days following 1.0 (before Mandrake included Gambas packages in contrib) lots of people who didn't know how to add package sources or use the command line would ask me for a single gigantic RPM of Gambas so they didn't have to click on 18 different files to download them. So I made a package called "gambas-complete" that included the files from all the other packages. I stopped building that package last spring, and haven't gotten any complaints, so I guess it's just a matter of getting all those little packages into each distribution's official repositories. I agree that all the little packages are they way to go - that's the only way I was able to get Gambas installed on gambasdoc.org which has no KDE, Postgres or SDL ;) Rob From gambas at ...1... Mon Feb 6 21:43:31 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 6 Feb 2006 21:43:31 +0100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <200602061319.42908.sourceforge-raindog2@...94...> References: <9cf0f07b0602040920l1112aa12l@...627...> <7259b5ae0602060540n2179110g@...627...> <200602061319.42908.sourceforge-raindog2@...94...> Message-ID: <200602062143.31756.gambas@...1...> On Monday 06 February 2006 19:19, Rob Kudla wrote: > On Mon February 6 2006 08:40, Daniel Campos wrote: > > Having just a big package prevents people from download > > what they need > > without bloat. For people who need the complete environment, > > is just matter of creating a virtual package, for example > > called 'gambas' which installs all the rest of packages. That > > way people can choose the two ways. > > In the days following 1.0 (before Mandrake included Gambas > packages in contrib) lots of people who didn't know how to add > package sources or use the command line would ask me for a > single gigantic RPM of Gambas so they didn't have to click on 18 > different files to download them. So I made a package called > "gambas-complete" that included the files from all the other > packages. > > I stopped building that package last spring, and haven't gotten > any complaints, so I guess it's just a matter of getting all > those little packages into each distribution's official > repositories. > > I agree that all the little packages are they way to go - that's > the only way I was able to get Gambas installed on gambasdoc.org > which has no KDE, Postgres or SDL ;) > > Rob > > Anyway, the 'gambas-ide' package is there for installing everything. -- Benoit Minisini From johnhedge at ...626... Mon Feb 6 22:45:32 2006 From: johnhedge at ...626... (john hedge) Date: Tue, 7 Feb 2006 08:45:32 +1100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <7259b5ae0602060540n2179110g@...627...> References: <9cf0f07b0602040920l1112aa12l@...627...> <7259b5ae0602050101m517cb8a4s@...627...> <4dfd57090602050251t3d754697mb9d3a5ca70e9b691@...627...> <6e3a096b0602050356i2689946axdf978b6570aaf710@...627...> <7259b5ae0602060540n2179110g@...627...> Message-ID: <6e3a096b0602061345i30eae452q144ec6a96f5e9f29@...627...> My experience with installing Gambas hasn't been very good. The web site states that various packages are required but doesn't name the files specific to that requirement. If you use the Ubuntu sources.list you only get the stable version of Gambas. If you download the .deb supplied through the web site it doesn't load due to one of the dependencies being renamed. Ditto the sources.list from the Gambas web site. This .deb installed without fuss and has given me a working Gambas (and it shows in the menu without having to edit the .desktop). The fact that there are bits installed that I wont use just puts it in the same category as every other piece of software on my PC. I'm a very happy camper. On 2/7/06, Daniel Campos wrote: > > > > 2006/2/5, john hedge : > > > > Well done Andrea. > > > > I've been waiting for someone to make installing Gambas less of a > > guessing game. Now I've got the whole package installed and I can choose the > > bits I want without wondering what I'm missing. > > > > Having just a big package prevents people from download what they need > without bloat. For people who need the complete environment, is just > matter of creating a virtual package, for example called 'gambas' which > installs all the rest of packages. That way people can choose the two ways. > > Regards, > > D, Campos > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Mon Feb 6 22:49:07 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 6 Feb 2006 22:49:07 +0100 Subject: [Gambas-user] Gambas 1.9.24 package for Ubuntu 5.10 In-Reply-To: <6e3a096b0602061345i30eae452q144ec6a96f5e9f29@...627...> References: <9cf0f07b0602040920l1112aa12l@...627...> <7259b5ae0602060540n2179110g@...627...> <6e3a096b0602061345i30eae452q144ec6a96f5e9f29@...627...> Message-ID: <200602062249.07693.gambas@...1...> On Monday 06 February 2006 22:45, john hedge wrote: > My experience with installing Gambas hasn't been very good. > > The web site states that various packages are required but doesn't name the > files specific to that requirement. > > If you use the Ubuntu sources.list you only get the stable version of > Gambas. > > If you download the .deb supplied through the web site it doesn't load due > to one of the dependencies being renamed. Ditto the sources.list from the > Gambas web site. > > This .deb installed without fuss and has given me a working Gambas (and it > shows in the menu without having to edit the .desktop). The fact that there > are bits installed that I wont use just puts it in the same category as > every other piece of software on my PC. > > I'm a very happy camper. > Everything is explained in the... README file, in the source package. If something is missing, or unclear, in this file, tell me. I will fix it. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Tue Feb 7 08:30:44 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 07 Feb 2006 08:30:44 +0100 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <200602061228.58385.sourceforge-raindog2@...94...> References: <43E71C36.5060205@...221...> <200602061228.58385.sourceforge-raindog2@...94...> Message-ID: <43E84CA4.7000700@...221...> Rob Kudla schrieb: >On Mon February 6 2006 04:51, Eilert wrote: > > >>And when I compile, after a while the following happens. Does >>this have to do with above messages? >> >> > >Sure looks like you don't have the PCRE development files >installed (probably a package called "pcre-devel" or something >similar) or it's too old a version, or maybe even too new a >version. Without seeing what version and distro you're using >and the output of your configure script I have no way to be >sure. > >Rob > > Hi Rob and all others, ok ok, it's Suse 9.1, and yes, pcre-devel is installed, the version is 4.4-109.4 Well, it says, the installed version is 4.4-109.4 and the version available is 4.4-109, so I guess the installed version is a fix or patch... Does this tell you something? You really want me to quote the whole output of the configure script here? Rolf From sourceforge-raindog2 at ...94... Tue Feb 7 16:21:22 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 7 Feb 2006 10:21:22 -0500 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <43E84CA4.7000700@...221...> References: <43E71C36.5060205@...221...> <200602061228.58385.sourceforge-raindog2@...94...> <43E84CA4.7000700@...221...> Message-ID: <200602071021.22388.sourceforge-raindog2@...94...> On Tue February 7 2006 02:30, Eilert wrote: > You really want me to quote the whole output of the configure > script here? I was actually hoping you'd attach it as a file, but if you just want to copy and paste, find the first occurrence of "pcre" in its output and copy from maybe 5 lines before to 10 lines afterward. Rob From jfabiani at ...1109... Tue Feb 7 19:46:51 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 7 Feb 2006 10:46:51 -0800 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <43E84CA4.7000700@...221...> References: <43E71C36.5060205@...221...> <200602061228.58385.sourceforge-raindog2@...94...> <43E84CA4.7000700@...221...> Message-ID: <200602071046.51719.jfabiani@...1109...> On Monday 06 February 2006 23:30, Eilert wrote: > Rob Kudla schrieb: > >On Mon February 6 2006 04:51, Eilert wrote: > >>And when I compile, after a while the following happens. Does > >>this have to do with above messages? > > > >Sure looks like you don't have the PCRE development files > >installed (probably a package called "pcre-devel" or something > >similar) or it's too old a version, or maybe even too new a > >version. Without seeing what version and distro you're using > >and the output of your configure script I have no way to be > >sure. > > > >Rob > > Hi Rob and all others, > > ok ok, it's Suse 9.1, and yes, pcre-devel is installed, the version is > 4.4-109.4 > > Well, it says, the installed version is 4.4-109.4 and the version > available is 4.4-109, so I guess the installed version is a fix or patch... > > Does this tell you something? > > You really want me to quote the whole output of the configure script here? > > Rolf I realize there are others that will help you to compile but I think you should really consider upgrading your version of SUSE. SUSE 10.0 is free (OpenSUSE) and for the most part it is very easy to upgrade. If you don't I would expect that you will have security issues and development issues for the future. John From eilert-sprachen at ...221... Wed Feb 8 08:36:35 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 08 Feb 2006 08:36:35 +0100 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <200602071046.51719.jfabiani@...1109...> References: <43E71C36.5060205@...221...> <200602061228.58385.sourceforge-raindog2@...94...> <43E84CA4.7000700@...221...> <200602071046.51719.jfabiani@...1109...> Message-ID: <43E99F83.2020506@...221...> johnf schrieb: >On Monday 06 February 2006 23:30, Eilert wrote: > > >>Rob Kudla schrieb: >> >> >>>On Mon February 6 2006 04:51, Eilert wrote: >>> >>> >>>>And when I compile, after a while the following happens. Does >>>>this have to do with above messages? >>>> >>>> >>>Sure looks like you don't have the PCRE development files >>>installed (probably a package called "pcre-devel" or something >>>similar) or it's too old a version, or maybe even too new a >>>version. Without seeing what version and distro you're using >>>and the output of your configure script I have no way to be >>>sure. >>> >>>Rob >>> >>> >>Hi Rob and all others, >> >>ok ok, it's Suse 9.1, and yes, pcre-devel is installed, the version is >>4.4-109.4 >> >>Well, it says, the installed version is 4.4-109.4 and the version >>available is 4.4-109, so I guess the installed version is a fix or patch... >> >>Does this tell you something? >> >>You really want me to quote the whole output of the configure script here? >> >>Rolf >> >> >I realize there are others that will help you to compile but I think you >should really consider upgrading your version of SUSE. SUSE 10.0 is free >(OpenSUSE) and for the most part it is very easy to upgrade. If you don't I >would expect that you will have security issues and development issues for >the future. > >John > > > Well, I would very much like to upgrade to 10.0, believe me :-) The point is: This whole thing is running on our server which serves all the students as well (see www.ltsp.org). If I just "upgrade" to 10.0, I would have to restore all the little scripts and gimmiks I have applied over the last 2 years or so to make it running smoothly and it would certainly destroy all the users' (about 120) settings and so on... So this server as it runs here is "mission critical" to everyone else in the house. It's not as easy as if it was a single machine standing in my office (and even then: On the old PC which is still in use here, there is a 7.3 running, just because it's running and doing a fine job the way it is, you know). The only way I could imagine to upgrade the system without too much headache for everyone would be to include another set of harddisks into the server and setup a completely running and tweaked new system there, then copying all personal users' files over there and start and pray... :-) I've been trying to compile the 1.9.x series for a couple of times now, and usually it wanted to have some database installed. I did not see the point in having a database just to be able to compile an IDE, so I was living fine with 1.0.x, did a lot of programming with it and still am. This pcre thing was new, however, and I thought the configure script was smarter now and it might be possible to compile the new version with a little tweaking, that's why I asked. Rolf From jredrejo at ...96... Wed Feb 8 09:13:07 2006 From: jredrejo at ...96... (=?ISO-8859-1?Q?Jos=E9?= L. Redrejo =?ISO-8859-1?Q?Rodr=EDguez?=) Date: Wed, 08 Feb 2006 09:13:07 +0100 Subject: [Gambas-user] Re: Gambas 1.9.24 package for Ubuntu 5.10 (Benoit Minisini) In-Reply-To: <20060207040824.DFAE3880FC@...763...> References: <20060207040824.DFAE3880FC@...763...> Message-ID: <1139386387.8269.17.camel@...40...> El lun, 06-02-2006 a las 20:07 -0800, Benoit Minisini escribi?: > > On Monday 06 February 2006 22:45, john hedge wrote: > > My experience with installing Gambas hasn't been very good. > > > > The web site states that various packages are required but doesn't name the > > files specific to that requirement. > > > > If you use the Ubuntu sources.list you only get the stable version of > > Gambas. > > > > If you download the .deb supplied through the web site it doesn't load due > > to one of the dependencies being renamed. Ditto the sources.list from the > > Gambas web site. > > > > This .deb installed without fuss and has given me a working Gambas (and it > > shows in the menu without having to edit the .desktop). The fact that there > > are bits installed that I wont use just puts it in the same category as > > every other piece of software on my PC. > > > > I'm a very happy camper. > > > > Everything is explained in the... README file, in the source package. If > something is missing, or unclear, in this file, tell me. I will fix it. > > Regards, > Don't waste your time. I have received a lot of messages complaining for debian gambas packages in Ubuntu, but no one for people who use real Debian based distribution. The reason is very clear: Ubuntu is not a Debian based distribution, it's a Debian fork, They use very unstable libraries, and different names for some of the system core packages, so a lot of Debian packages are not compatible with ubuntu. Even worst, they upload to their repositories older versions of the packages I uploaded to Debian, so they are never updated. The solution is very easy: somebody using ubuntu should get the sources I upload to Debian, and doing this: dpkg-source -x gambas-xxx.dsc cd gambas-xxx dpkg-buildpackage will get deb packages with ubuntu right dependencies. Then they can be uploaded to somewhere to be used by Ubuntu users. Regards. From gambas at ...1... Wed Feb 8 09:21:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 8 Feb 2006 09:21:15 +0100 Subject: [Gambas-user] Re: Gambas 1.9.24 package for Ubuntu 5.10 (Benoit Minisini) In-Reply-To: <1139386387.8269.17.camel@...40...> References: <20060207040824.DFAE3880FC@...763...> <1139386387.8269.17.camel@...40...> Message-ID: <200602080921.15490.gambas@...1...> On Wednesday 08 February 2006 09:13, Jos? L. Redrejo Rodr?guez wrote: > El lun, 06-02-2006 a las 20:07 -0800, Benoit Minisini > > escribi?: > > On Monday 06 February 2006 22:45, john hedge wrote: > > > My experience with installing Gambas hasn't been very good. > > > > > > The web site states that various packages are required but doesn't name > > > the files specific to that requirement. > > > > > > If you use the Ubuntu sources.list you only get the stable version of > > > Gambas. > > > > > > If you download the .deb supplied through the web site it doesn't load > > > due to one of the dependencies being renamed. Ditto the sources.list > > > from the Gambas web site. > > > > > > This .deb installed without fuss and has given me a working Gambas (and > > > it shows in the menu without having to edit the .desktop). The fact > > > that there are bits installed that I wont use just puts it in the same > > > category as every other piece of software on my PC. > > > > > > I'm a very happy camper. > > > > Everything is explained in the... README file, in the source package. If > > something is missing, or unclear, in this file, tell me. I will fix it. > > > > Regards, > > Don't waste your time. I have received a lot of messages complaining for > debian gambas packages in Ubuntu, but no one for people who use real > Debian based distribution. The reason is very clear: > Ubuntu is not a Debian based distribution, it's a Debian fork, They use > very unstable libraries, and different names for some of the system core > packages, so a lot of Debian packages are not compatible with ubuntu. > Even worst, they upload to their repositories older versions of the > packages I uploaded to Debian, so they are never updated. > > The solution is very easy: somebody using ubuntu should get the sources > I upload to Debian, and doing this: > dpkg-source -x gambas-xxx.dsc > cd gambas-xxx > dpkg-buildpackage > will get deb packages with ubuntu right dependencies. > Then they can be uploaded to somewhere to be used by Ubuntu users. > > Regards. > OK, I understand now! Maybe Ubuntu had good reasons for not using the same package name even if I don't see them... If an Ubuntu user succeeds in creating gambas package from the debian gambas source package, please tell, and I will update the distro web site page. Regards, -- Benoit Minisini From afroehlke at ...784... Wed Feb 8 12:09:50 2006 From: afroehlke at ...784... (=?ISO-8859-15?Q?Andreas_Fr=F6hlke?=) Date: Wed, 08 Feb 2006 12:09:50 +0100 Subject: [Gambas-user] is ok Message-ID: <43E9D17E.9020508@...784...> confirm 875478 From afroehlke at ...784... Wed Feb 8 14:04:24 2006 From: afroehlke at ...784... (=?ISO-8859-15?Q?Andreas_Fr=F6hlke?=) Date: Wed, 08 Feb 2006 14:04:24 +0100 Subject: [Gambas-user] problem with "&" and mysql Message-ID: <43E9EC58.7070700@...784...> Hello, I have a problem with mysql and the charakter "&". I like to use a "INSERT"-statement with gambas like: INSERT INTO tabTest SET textfield='Hello & Bye' ; If I use this statement under phpmyadmin it will work, but with gambas it raises an error. Only without the "&"-Charakter it work. Please Help Thanks, A.Fr?hlke P.S. Sorry for my bad english, I'm from germany ;) From jfabiani at ...1109... Wed Feb 8 16:47:32 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 8 Feb 2006 07:47:32 -0800 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <43E99F83.2020506@...221...> References: <43E71C36.5060205@...221...> <200602071046.51719.jfabiani@...1109...> <43E99F83.2020506@...221...> Message-ID: <200602080747.32477.jfabiani@...1109...> On Tuesday 07 February 2006 23:36, Eilert wrote: > johnf schrieb: > >On Monday 06 February 2006 23:30, Eilert wrote: > >>Rob Kudla schrieb: > >>>On Mon February 6 2006 04:51, Eilert wrote: > >>>>And when I compile, after a while the following happens. Does > >>>>this have to do with above messages? > >>> > >>>Sure looks like you don't have the PCRE development files > >>>installed (probably a package called "pcre-devel" or something > >>>similar) or it's too old a version, or maybe even too new a > >>>version. Without seeing what version and distro you're using > >>>and the output of your configure script I have no way to be > >>>sure. > >>> > >>>Rob > >> > >>Hi Rob and all others, > >> > >>ok ok, it's Suse 9.1, and yes, pcre-devel is installed, the version is > >>4.4-109.4 > >> > >>Well, it says, the installed version is 4.4-109.4 and the version > >>available is 4.4-109, so I guess the installed version is a fix or > >> patch... > >> > >>Does this tell you something? > >> > >>You really want me to quote the whole output of the configure script > >> here? > >> > >>Rolf > > > >I realize there are others that will help you to compile but I think you > >should really consider upgrading your version of SUSE. SUSE 10.0 is free > >(OpenSUSE) and for the most part it is very easy to upgrade. If you don't > > I would expect that you will have security issues and development issues > > for the future. > > > >John > > Well, I would very much like to upgrade to 10.0, believe me :-) > > The point is: This whole thing is running on our server which serves all > the students as well (see www.ltsp.org). If I just "upgrade" to 10.0, I > would have to restore all the little scripts and gimmiks I have applied > over the last 2 years or so to make it running smoothly and it would > certainly destroy all the users' (about 120) settings and so on... So > this server as it runs here is "mission critical" to everyone else in > the house. It's not as easy as if it was a single machine standing in my > office (and even then: On the old PC which is still in use here, there > is a 7.3 running, just because it's running and doing a fine job the way > it is, you know). The only way I could imagine to upgrade the system > without too much headache for everyone would be to include another set > of harddisks into the server and setup a completely running and tweaked > new system there, then copying all personal users' files over there and > start and pray... :-) > > I've been trying to compile the 1.9.x series for a couple of times now, > and usually it wanted to have some database installed. I did not see the > point in having a database just to be able to compile an IDE, so I was > living fine with 1.0.x, did a lot of programming with it and still am. > This pcre thing was new, however, and I thought the configure script was > smarter now and it might be possible to compile the new version with a > little tweaking, that's why I asked. > > Rolf > If isn't broken don't fix it. I believe in that phase completely. I do want to say I upgraded a 9.2 with lots of users and was very successful. I did not lose any users or user info. However, for some reason I did have trouble with the DHCP settings. Other than that I can't recall doing anything. Of course the system was completely up todate from Yast and nothing but stuff from yast installs. I think the last thing is important. Yast upgrades understand only Yast installed software. John From na2492 at ...9... Wed Feb 8 16:49:07 2006 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 8 Feb 2006 16:49:07 00100 Subject: [Gambas-user] problem with "&" and mysql Message-ID: <43ea12f3.30c5.0@...9...> >Hello, > >I have a problem with mysql and the charakter "&". I like to use a >"INSERT"-statement with gambas like: > >INSERT INTO tabTest SET textfield='Hello & Bye' ; > >If I use this statement under phpmyadmin it will work, but with gambas >it raises an error. Only without the "&"-Charakter it work. >Please Help > >Thanks, A.Fr?hlke > >P.S. Sorry for my bad english, I'm from germany ;) > Salut, try it with && and think also that ' exists. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From sourceforge-raindog2 at ...94... Wed Feb 8 19:10:54 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 8 Feb 2006 13:10:54 -0500 Subject: [Gambas-user] Re: Gambas 1.9.24 package for Ubuntu 5.10 (Benoit Minisini) In-Reply-To: <200602080921.15490.gambas@...1...> References: <20060207040824.DFAE3880FC@...763...> <1139386387.8269.17.camel@...40...> <200602080921.15490.gambas@...1...> Message-ID: <200602081310.55357.sourceforge-raindog2@...94...> On Wed February 8 2006 03:21, Benoit Minisini wrote: > If an Ubuntu user succeeds in creating gambas package from the > debian gambas source package, please tell, and I will update > the distro web site page. Also, if an Ubuntu user gets a set of packages successfully made (i.e. gambas-runtime, gambas-gb-qt, gambas-ide, etc.) but doesn't have hosting for them, I'm willing to set aside some space on Binara's server for them. The same is true for any other top-20 distributions for which Gambas isn't already packaged in an official or unstable repository (my definition of top 20 is based on the default "last 6 months" setting on distrowatch.com's top 100 list, right on their home page, currently including Ubuntu, SUSE, Mandriva, Fedora, MEPIS, Damn Small, Debian, KNOPPIX, Slackware, Gentoo, Kubuntu, FreeBSD, PCLinuxOS, Vector, KANOTIX, Xandros, PC-BSD, CentOS, SLAX and Puppy. Yeah, Red Hat isn't on there, but Red Hat isn't gonna be able to run any recent Gambas releases anyway....) If it can't be had via your distro's normal repositories, I'll host it till it is if you do the packaging. The more I look at klik, the more I want to try to get Gambas working under klik as well.... when I have time. But I guess the whole point of klik is to use their repositories, so the above offer is moot for klik. Rob From sourceforge-raindog2 at ...94... Wed Feb 8 19:24:25 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 8 Feb 2006 13:24:25 -0500 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <43E99F83.2020506@...221...> References: <43E71C36.5060205@...221...> <200602071046.51719.jfabiani@...1109...> <43E99F83.2020506@...221...> Message-ID: <200602081324.25963.sourceforge-raindog2@...94...> On Wed February 8 2006 02:36, Eilert wrote: > did a lot of programming with it and still am. This pcre thing > was new, however, and I thought the configure script was > smarter now and it might be possible to compile the new > version with a little tweaking, that's why I asked. I looked it up, and indeed, pcre 4.4 is too old to use gb.pcre (because of a new error code in 4.5 which I exposed as a class constant.) If you feel like getting your hands dirty you can find the line in the source that references PCRE_ERROR_BADUTF8_OFFSET (line 368 of regexp.c) and replace PCRE_ERROR_BADUTF8_OFFSET with some random number like 65535. That should at least take care of your PCRE problems. The constant will be meaningless in your Gambas install, but since that version of PCRE will never throw that error anyway it doesn't matter. If I understood automake, I'd send a patch to make the configure script look for pcre 4.5 instead of just pcre so that other people wouldn't have this problem. Rob From kztyrvlq at ...966... Wed Feb 8 21:37:05 2006 From: kztyrvlq at ...966... (A Person) Date: Wed, 08 Feb 2006 17:07:05 -0330 Subject: [Gambas-user] Suse 10 + Gambas 1.0.14 = ? Message-ID: <43EA5671.9080203@...966...> Good Day All . . . I have looked about and searched and I am unable to locate Gambas 1.0.14 for SuSE 10. The usual locations still have 1.0.13. Anyone know where I can get a copy? Thanx. Paul From na2492 at ...9... Wed Feb 8 22:43:36 2006 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 08 Feb 2006 22:43:36 +0100 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <200602080747.32477.jfabiani@...1109...> References: <43E71C36.5060205@...221...> <200602071046.51719.jfabiani@...1109...> <43E99F83.2020506@...221...> <200602080747.32477.jfabiani@...1109...> Message-ID: <1139435016.7047.28.camel@...37...> Salut, if you want to try an update, i can give you that. look at the attached mvGentoo.sh The tar command I found once at SuSe-help. With that I moved and move linux installations from reiserfs to ext3 , from bad looking disk to new once, and this way I use to backup my Systems. Ok that needs disk space, but with a well written grub, a disk crash, makes you loos a day or less if you cron works not only at start time. A reboot to your backup, and work continues. For a 40 GB Installation it took about 18 min. So you can test your updates. To say: the log is not important, but took huge space. When moving installations, I start the box with a Knoppix. The backups, I never needed, to replay them back , but used to reuse Files lost or after bad changes. Amnicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: mvGentoo Type: application/x-shellscript Size: 244 bytes Desc: not available URL: From ronstk at ...239... Wed Feb 8 22:43:53 2006 From: ronstk at ...239... (ron) Date: Wed, 8 Feb 2006 22:43:53 +0100 Subject: [Gambas-user] Re: Gambas 1.9.24 package for Ubuntu 5.10 (Benoit Minisini) In-Reply-To: <200602081310.55357.sourceforge-raindog2@...94...> References: <20060207040824.DFAE3880FC@...763...> <200602080921.15490.gambas@...1...> <200602081310.55357.sourceforge-raindog2@...94...> Message-ID: <200602082243.55206.ronstk@...239...> On Wednesday 08 February 2006 19:10, Rob Kudla wrote: ---8< > The more I look at klik, the more I want to try to get Gambas > working under klik as well.... when I have time. But I guess > the whole point of klik is to use their repositories, so the > above offer is moot for klik. > > Rob > > Hello Rob, I did actual installed using klik and it worked. But I had also some little problems. The way the last version of klik differs against a early version. There are two places in the /tmp map. 1) /tmp/app with the numbers also to put in fstab and as image with cloop 2) /tmp/klik with all the files and maps as inside the image. The start with the made kmenu entry does not work in one click. It opens a window and you have to select the gambas entry yourself. The parameter from the deskstop file is not correctly passed to the klik .zapp stub. The other problem has todo with readonly attributes. I had not enough time to go deep in what goes wrong exactly. Still I like the idea, but I understand Benoits point for self compile from source, to get a very simple install with klik. The redhat install i did this week was indead not correct working. Greets Ron. From gambas at ...1... Wed Feb 8 23:33:43 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 8 Feb 2006 23:33:43 +0100 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <200602081324.25963.sourceforge-raindog2@...94...> References: <43E71C36.5060205@...221...> <43E99F83.2020506@...221...> <200602081324.25963.sourceforge-raindog2@...94...> Message-ID: <200602082333.43480.gambas@...1...> On Wednesday 08 February 2006 19:24, Rob Kudla wrote: > On Wed February 8 2006 02:36, Eilert wrote: > > did a lot of programming with it and still am. This pcre thing > > was new, however, and I thought the configure script was > > smarter now and it might be possible to compile the new > > version with a little tweaking, that's why I asked. > > I looked it up, and indeed, pcre 4.4 is too old to use gb.pcre > (because of a new error code in 4.5 which I exposed as a class > constant.) > > If you feel like getting your hands dirty you can find the line > in the source that references PCRE_ERROR_BADUTF8_OFFSET (line > 368 of regexp.c) and replace PCRE_ERROR_BADUTF8_OFFSET with some > random number like 65535. That should at least take care of > your PCRE problems. > > The constant will be meaningless in your Gambas install, but > since that version of PCRE will never throw that error anyway it > doesn't matter. > > If I understood automake, I'd send a patch to make the configure > script look for pcre 4.5 instead of just pcre so that other > people wouldn't have this problem. > > Rob > Maybe you should use the version constants defined in pcre.h: PCRE_MAJOR and PCRE_MINOR. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Thu Feb 9 00:05:59 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 8 Feb 2006 18:05:59 -0500 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <200602082333.43480.gambas@...1...> References: <43E71C36.5060205@...221...> <200602081324.25963.sourceforge-raindog2@...94...> <200602082333.43480.gambas@...1...> Message-ID: <200602081806.00085.sourceforge-raindog2@...94...> On Wed February 8 2006 17:33, Benoit Minisini wrote: > Maybe you should use the version constants defined in pcre.h: > PCRE_MAJOR and PCRE_MINOR. Oh, that would be too smart. :P -------------- next part -------------- --- regexp.c~ 2005-01-25 18:00:37.000000000 -0500 +++ regexp.c 2006-02-08 18:04:35.000000000 -0500 @@ -365,7 +365,11 @@ GB_CONSTANT("MatchLimit", "i", PCRE_ERROR_MATCHLIMIT), GB_CONSTANT("Callout", "i", PCRE_ERROR_CALLOUT), GB_CONSTANT("BadUTF8", "i", PCRE_ERROR_BADUTF8), +#if (((PCRE_MAJOR == 4) && (PCRE_MINOR < 5)) || (PCRE_MAJOR < 4)) + GB_CONSTANT("BadUTF8Offset", "i", 65535), /* PCRE_ERROR_BADUTF8_OFFSET not defined < 4.5 */ +#else GB_CONSTANT("BadUTF8Offset", "i", PCRE_ERROR_BADUTF8_OFFSET), +#endif //GB_METHOD("SubMatch", ".RegexpSubmatches", CREGEXP_submatch, "(Index)i"), GB_PROPERTY_SELF("SubMatches", ".RegExpSubmatches"), GB_PROPERTY_READ("Text", "s", CREGEXP_Text), /* this is the string matched by the entire pattern */ From smiefert at ...784... Thu Feb 9 08:05:42 2006 From: smiefert at ...784... (Stefan Miefert) Date: Thu, 09 Feb 2006 08:05:42 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43E9EC58.7070700@...784...> References: <43E9EC58.7070700@...784...> Message-ID: <43EAE9C6.40404@...784...> \& > > > I have a problem with mysql and the charakter "&". I like to use a > "INSERT"-statement with gambas like: > > INSERT INTO tabTest SET textfield='Hello & Bye' ; > > If I use this statement under phpmyadmin it will work, but with gambas > it raises an error. Only without the "&"-Charakter it work. > Please Help > > Thanks, A.Fr?hlke > > P.S. Sorry for my bad english, I'm from germany ;) > From afroehlke at ...784... Thu Feb 9 08:14:30 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Thu, 09 Feb 2006 08:14:30 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43ea12f3.30c5.0@...9...> References: <43ea12f3.30c5.0@...9...> Message-ID: <43EAEBD6.4050602@...784...> Charlie Reinl schrieb: >>Hello, >> >>I have a problem with mysql and the charakter "&". I like to use a >>"INSERT"-statement with gambas like: >> >>INSERT INTO tabTest SET textfield='Hello & Bye' ; >> >>If I use this statement under phpmyadmin it will work, but with gambas >>it raises an error. Only without the "&"-Charakter it work. >>Please Help >> >>Thanks, A.Fr?hlke >> >>P.S. Sorry for my bad english, I'm from germany ;) >> > > Salut, > > try it with && and think also that ' exists. > > Amicalment > Charlie > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, It don't work. My "new" SQL-statement was: INSERT INTO tabTest SET textfield='Hello && Bye' ; I also tried this: INSERT INTO tabTest SET textfield='Hello \& Bye' ; but it also don't work. Have anyone an idea? Thanks A.Fr?hlke From gambas at ...1... Thu Feb 9 09:13:04 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 9 Feb 2006 09:13:04 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EAEBD6.4050602@...784...> References: <43ea12f3.30c5.0@...9...> <43EAEBD6.4050602@...784...> Message-ID: <200602090913.04512.gambas@...1...> On Thursday 09 February 2006 08:14, Andreas Fr?hlke wrote: > Charlie Reinl schrieb: > >>Hello, > >> > >>I have a problem with mysql and the charakter "&". I like to use a > >>"INSERT"-statement with gambas like: > >> > >>INSERT INTO tabTest SET textfield='Hello & Bye' ; > >> > >>If I use this statement under phpmyadmin it will work, but with gambas > >>it raises an error. Only without the "&"-Charakter it work. > >>Please Help > >> > >>Thanks, A.Fr?hlke > >> > >>P.S. Sorry for my bad english, I'm from germany ;) > > > > Salut, > > > > try it with && and think also that ' exists. > > > > Amicalment > > Charlie > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > > makes searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hi, > > It don't work. My "new" SQL-statement was: > > INSERT INTO tabTest SET textfield='Hello && Bye' ; > This should work there. What happens *exactly* ? The syntax of the substitution functions is a bit strange, I should change it maybe... At the moment, '&X' is replaced by the value of the X-th argument if X is a number of one or two digits greater than zero, and if not, it is replaced by 'X'. Regards, -- Benoit Minisini From afroehlke at ...784... Thu Feb 9 09:33:58 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Thu, 09 Feb 2006 09:33:58 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <200602090913.04512.gambas@...1...> References: <43ea12f3.30c5.0@...9...> <43EAEBD6.4050602@...784...> <200602090913.04512.gambas@...1...> Message-ID: <43EAFE76.50603@...784...> Benoit Minisini schrieb: > On Thursday 09 February 2006 08:14, Andreas Fr?hlke wrote: > >>Charlie Reinl schrieb: >> >>>>Hello, >>>> >>>>I have a problem with mysql and the charakter "&". I like to use a >>>>"INSERT"-statement with gambas like: >>>> >>>>INSERT INTO tabTest SET textfield='Hello & Bye' ; >>>> >>>>If I use this statement under phpmyadmin it will work, but with gambas >>>>it raises an error. Only without the "&"-Charakter it work. >>>>Please Help >>>> >>>>Thanks, A.Fr?hlke >>>> >>>>P.S. Sorry for my bad english, I'm from germany ;) >>> >>>Salut, >>> >>>try it with && and think also that ' exists. >>> >>>Amicalment >>>Charlie >>>* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log >>>files for problems? Stop! Download the new AJAX search engine that >>>makes searching your log files as easy as surfing the web. DOWNLOAD >>>SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 >>>_______________________________________________ >>>Gambas-user mailing list >>>Gambas-user at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>Hi, >> >>It don't work. My "new" SQL-statement was: >> >>INSERT INTO tabTest SET textfield='Hello && Bye' ; >> > > > This should work there. What happens *exactly* ? > > The syntax of the substitution functions is a bit strange, I should change it > maybe... > > At the moment, '&X' is replaced by the value of the X-th argument if X is a > number of one or two digits greater than zero, and if not, it is replaced by > 'X'. > > Regards, > > Hello, If I use the sql statement with gambas like this: db.exec("INSERT INTO tabTest SET textfield='Hello & Bye' ;") ERROR: Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Hello & Bye'' at line 1 also I tried: db.exec("INSERT INTO tabTest SET textfield='Hello && Bye' ;") ERROR: Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Hello && Bye'' at line 1 and: db.exec("INSERT INTO tabTest SET textfield='Hello \\& Bye' ;") ERROR: Query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Hello \& Bye'' at line 1 but nothing work. Only it works if I delete the "&" charakter, but i cant't do this, because than I must correct each userinput and correct existing data with "&"-charakter in each table. Please Help Thanks A.Fr?hlke -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From gambas at ...1... Thu Feb 9 09:37:53 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 9 Feb 2006 09:37:53 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EAFE76.50603@...784...> References: <43ea12f3.30c5.0@...9...> <200602090913.04512.gambas@...1...> <43EAFE76.50603@...784...> Message-ID: <200602090937.53651.gambas@...1...> On Thursday 09 February 2006 09:33, Andreas Fr?hlke wrote: > Benoit Minisini schrieb: > > On Thursday 09 February 2006 08:14, Andreas Fr?hlke wrote: > >>Charlie Reinl schrieb: > >>>>Hello, > >>>> > >>>>I have a problem with mysql and the charakter "&". I like to use a > >>>>"INSERT"-statement with gambas like: > >>>> > >>>>INSERT INTO tabTest SET textfield='Hello & Bye' ; > >>>> > >>>>If I use this statement under phpmyadmin it will work, but with gambas > >>>>it raises an error. Only without the "&"-Charakter it work. > >>>>Please Help > >>>> > >>>>Thanks, A.Fr?hlke > >>>> > >>>>P.S. Sorry for my bad english, I'm from germany ;) > >>> > >>>Salut, > >>> > >>>try it with && and think also that ' exists. > >>> > >>>Amicalment > >>>Charlie > >>>* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > >>> > >>> > >>>------------------------------------------------------- > >>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log > >>>files for problems? Stop! Download the new AJAX search engine that > >>>makes searching your log files as easy as surfing the web. DOWNLOAD > >>>SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > >>>_______________________________________________ > >>>Gambas-user mailing list > >>>Gambas-user at lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >>Hi, > >> > >>It don't work. My "new" SQL-statement was: > >> > >>INSERT INTO tabTest SET textfield='Hello && Bye' ; > > > > This should work there. What happens *exactly* ? > > > > The syntax of the substitution functions is a bit strange, I should > > change it maybe... > > > > At the moment, '&X' is replaced by the value of the X-th argument if X is > > a number of one or two digits greater than zero, and if not, it is > > replaced by 'X'. > > > > Regards, > > Hello, > > If I use the sql statement with gambas like this: > > db.exec("INSERT INTO tabTest SET textfield='Hello & Bye' ;") > ERROR: > Query failed: You have an error in your SQL syntax; check the manual > that corresponds to your MySQL server version for the right syntax to > use near 'Hello & Bye'' at line 1 > > > also I tried: > > db.exec("INSERT INTO tabTest SET textfield='Hello && Bye' ;") > ERROR: > Query failed: You have an error in your SQL syntax; check the manual > that corresponds to your MySQL server version for the right syntax to > use near 'Hello && Bye'' at line 1 > > and: > > db.exec("INSERT INTO tabTest SET textfield='Hello \\& Bye' ;") > ERROR: > Query failed: You have an error in your SQL syntax; check the manual > that corresponds to your MySQL server version for the right syntax to > use near 'Hello \& Bye'' at line 1 > > > but nothing work. Only it works if I delete the "&" charakter, but i > cant't do this, because than I must correct each userinput and correct > existing data with "&"-charakter in each table. > > Please Help > > Thanks A.Fr?hlke Remove the ';'. This is not part of SQL syntax! -- Benoit Minisini From arie99 at ...1352... Thu Feb 9 09:42:30 2006 From: arie99 at ...1352... (Arie Hol) Date: Thu, 09 Feb 2006 16:42:30 +0800 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EAFE76.50603@...784...> References: <200602090913.04512.gambas@...1...> Message-ID: <43EB70F6.30043.27B3C8@...40...> On 9 Feb 2006 at 9:33, Andreas Fr?hlke wrote: 8<------------ snip ----------->8 Instead of using : db.exec("INSERT INTO tabTest SET textfield='Hello \\& Bye' ;") Try this : db.exec("INSERT INTO tabTest SET textfield='Hello \& Bye' ;") In the top example you are escaping the \ and not the & The system thinks you want to use \& as the desired characters. To escape a character only use one \ Regards Arie ------------------------------------------------------------------ For the concert of life, nobody has a program. ------------------------------------------------------------------ From afroehlke at ...784... Thu Feb 9 10:13:53 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Thu, 09 Feb 2006 10:13:53 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <200602090937.53651.gambas@...1...> References: <43ea12f3.30c5.0@...9...> <200602090913.04512.gambas@...1...> <43EAFE76.50603@...784...> <200602090937.53651.gambas@...1...> Message-ID: <43EB07D1.2060603@...784...> Benoit Minisini schrieb: > On Thursday 09 February 2006 09:33, Andreas Fr?hlke wrote: > >>Benoit Minisini schrieb: >> >>>On Thursday 09 February 2006 08:14, Andreas Fr?hlke wrote: >>> >>>>Charlie Reinl schrieb: >>>> >>>>>>Hello, >>>>>> >>>>>>I have a problem with mysql and the charakter "&". I like to use a >>>>>>"INSERT"-statement with gambas like: >>>>>> >>>>>>INSERT INTO tabTest SET textfield='Hello & Bye' ; >>>>>> >>>>>>If I use this statement under phpmyadmin it will work, but with gambas >>>>>>it raises an error. Only without the "&"-Charakter it work. >>>>>>Please Help >>>>>> >>>>>>Thanks, A.Fr?hlke >>>>>> >>>>>>P.S. Sorry for my bad english, I'm from germany ;) >>>>> >>>>>Salut, >>>>> >>>>>try it with && and think also that ' exists. >>>>> >>>>>Amicalment >>>>>Charlie >>>>>* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log >>>>>files for problems? Stop! Download the new AJAX search engine that >>>>>makes searching your log files as easy as surfing the web. DOWNLOAD >>>>>SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 >>>>>_______________________________________________ >>>>>Gambas-user mailing list >>>>>Gambas-user at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>>Hi, >>>> >>>>It don't work. My "new" SQL-statement was: >>>> >>>>INSERT INTO tabTest SET textfield='Hello && Bye' ; >>> >>>This should work there. What happens *exactly* ? >>> >>>The syntax of the substitution functions is a bit strange, I should >>>change it maybe... >>> >>>At the moment, '&X' is replaced by the value of the X-th argument if X is >>>a number of one or two digits greater than zero, and if not, it is >>>replaced by 'X'. >>> >>>Regards, >> >>Hello, >> >>If I use the sql statement with gambas like this: >> >> db.exec("INSERT INTO tabTest SET textfield='Hello & Bye' ;") >>ERROR: >>Query failed: You have an error in your SQL syntax; check the manual >>that corresponds to your MySQL server version for the right syntax to >>use near 'Hello & Bye'' at line 1 >> >> >>also I tried: >> >> db.exec("INSERT INTO tabTest SET textfield='Hello && Bye' ;") >>ERROR: >>Query failed: You have an error in your SQL syntax; check the manual >>that corresponds to your MySQL server version for the right syntax to >>use near 'Hello && Bye'' at line 1 >> >>and: >> >> db.exec("INSERT INTO tabTest SET textfield='Hello \\& Bye' ;") >>ERROR: >>Query failed: You have an error in your SQL syntax; check the manual >>that corresponds to your MySQL server version for the right syntax to >>use near 'Hello \& Bye'' at line 1 >> >> >>but nothing work. Only it works if I delete the "&" charakter, but i >>cant't do this, because than I must correct each userinput and correct >>existing data with "&"-charakter in each table. >> >>Please Help >> >>Thanks A.Fr?hlke > > > Remove the ';'. This is not part of SQL syntax! > the same error, without ";" -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From afroehlke at ...784... Thu Feb 9 10:19:38 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Thu, 09 Feb 2006 10:19:38 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EB70F6.30043.27B3C8@...40...> References: <200602090913.04512.gambas@...1...> <43EB70F6.30043.27B3C8@...40...> Message-ID: <43EB092A.6040101@...784...> Arie Hol schrieb: > > On 9 Feb 2006 at 9:33, Andreas Fr?hlke wrote: > > 8<------------ snip ----------->8 > > Instead of using : > > db.exec("INSERT INTO tabTest SET textfield='Hello \\& Bye' ;") > > Try this : > > db.exec("INSERT INTO tabTest SET textfield='Hello \& Bye' ;") > > > In the top example you are escaping the \ and not the & > > The system thinks you want to use \& as the desired characters. > > To escape a character only use one \ > > > Regards Arie > ------------------------------------------------------------------ > For the concert of life, nobody has a program. > ------------------------------------------------------------------ > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user if I use only one "\" in gambas it raises an error: Bad charakter constant in string This is because gambas use the "\" itselfs as charakter to mark bad strings. So I must use "\\&" to say gambas to send "\&" to the mysql server. -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From gambas at ...1... Thu Feb 9 10:24:18 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 9 Feb 2006 10:24:18 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EB07D1.2060603@...784...> References: <43ea12f3.30c5.0@...9...> <200602090937.53651.gambas@...1...> <43EB07D1.2060603@...784...> Message-ID: <200602091024.18323.gambas@...1...> On Thursday 09 February 2006 10:13, Andreas Fr?hlke wrote: > > the same error, without ";" Which database driver do you use? -- Benoit Minisini From eilert-sprachen at ...221... Thu Feb 9 10:25:02 2006 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 09 Feb 2006 10:25:02 +0100 Subject: [Gambas-user] Error compiling 1.9.24 In-Reply-To: <200602081324.25963.sourceforge-raindog2@...94...> References: <43E71C36.5060205@...221...> <200602071046.51719.jfabiani@...1109...> <43E99F83.2020506@...221...> <200602081324.25963.sourceforge-raindog2@...94...> Message-ID: <43EB0A6E.2060701@...221...> Rob Kudla schrieb: >If you feel like getting your hands dirty you can find the line >in the source that references PCRE_ERROR_BADUTF8_OFFSET (line >368 of regexp.c) and replace PCRE_ERROR_BADUTF8_OFFSET with some >random number like 65535. That should at least take care of >your PCRE problems. > > > No problem, now it ran through completely for the first time ever, and the binaries seem to be ok. Thanks a lot! Rolf From isy21 at ...1082... Thu Feb 9 10:17:41 2006 From: isy21 at ...1082... (Ignatius Syofian) Date: Thu, 9 Feb 2006 16:17:41 +0700 Subject: [Gambas-user] Inputbox Message-ID: <200602091617.41593.isy21@...1082...> Hi, If i want to ask user to input some value in messagebox like How many card you want ? then user can type a value i.e 5 (means 5 card) I means something like inputbox message. How can i do something like this in gambas? -- Thanks in advance Regards, Ignatius Syofian From nigel at ...38... Thu Feb 9 11:20:31 2006 From: nigel at ...38... (nigel at ...38...) Date: Thu, 9 Feb 2006 11:20:31 +0100 (CET) Subject: [Gambas-user] problem with "&" and mysql Message-ID: <6013739.1139480431053.JavaMail.www@...834...> I can confirm that with gambas 1.9.24 and mysql 5 that db.exec("Insert into tablename set fieldname = 'Hello && Goodbye') works for me. Try setting DB.Debug = True prior to the statement to check what is actually being passed to mysql. Regards Nigel > Message Received: Feb 09 2006, 09:25 AM > From: "Benoit Minisini" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: Re: [Gambas-user] problem with "&" and mysql > > On Thursday 09 February 2006 10:13, Andreas Fr?hlke wrote: > > > > the same error, without ";" > > Which database driver do you use? > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From nigel at ...38... Thu Feb 9 11:44:51 2006 From: nigel at ...38... (nigel at ...38...) Date: Thu, 9 Feb 2006 11:44:51 +0100 (CET) Subject: [Gambas-user] problem with "&" and mysql Message-ID: <27296398.1139481891703.JavaMail.www@...792...> Appologies there should have been a closing quote: db.exec("insert into tablename set fieldname = 'Hello && Goodbye'") > Message Received: Feb 09 2006, 10:21 AM > From: nigel at ...38... > To: gambas-user at lists.sourceforge.net > Cc: > Subject: Re: [Gambas-user] problem with "&" and mysql > > I can confirm that with gambas 1.9.24 and mysql 5 that > db.exec("Insert into tablename set fieldname = 'Hello && Goodbye') works for me. > > Try setting DB.Debug = True prior to the statement to check what is actually being passed to > mysql. > > Regards > > Nigel > > > > Message Received: Feb 09 2006, 09:25 AM > > From: "Benoit Minisini" > > To: gambas-user at lists.sourceforge.net > > Cc: > > Subject: Re: [Gambas-user] problem with "&" and mysql > > > > On Thursday 09 February 2006 10:13, Andreas Fr?hlke wrote: > > > > > > the same error, without ";" > > > > Which database driver do you use? > > > > -- > > Benoit Minisini > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From afroehlke at ...784... Thu Feb 9 11:58:46 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Thu, 09 Feb 2006 11:58:46 +0100 Subject: [Gambas-user] Inputbox In-Reply-To: <200602091617.41593.isy21@...1082...> References: <200602091617.41593.isy21@...1082...> Message-ID: <43EB2066.3040900@...784...> Ignatius Syofian schrieb: > Hi, > > If i want to ask user to input some value in messagebox like > > How many card you want ? > > then user can type a value i.e 5 (means 5 card) > > I means something like inputbox message. > > How can i do something like this in gambas? > Hello, I think theres nothing like the VB InputBox in Gambas. You must make your own. Use a simple Form(With: A TextBox, and two buttons), with a Public Function Like "GetInput" in this form: ############################################################# 'Deklarations private bOK as boolean Public Function GetInput() as string 'This function you must Call me.ShowModal if bOK = true then return me.textbox1.text end if end public sub command1_click() 'Ok-Click bok = true me.close end public sub command2_click() 'Cancel-Click bok = false me.close end ############################################################# Example for calling this form: ############################################################# private sub Test() dim f as form1 msgbox(f.GetInput) end ############################################################# -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From afroehlke at ...784... Thu Feb 9 12:02:35 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Thu, 09 Feb 2006 12:02:35 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <200602091024.18323.gambas@...1...> References: <43ea12f3.30c5.0@...9...> <200602090937.53651.gambas@...1...> <43EB07D1.2060603@...784...> <200602091024.18323.gambas@...1...> Message-ID: <43EB214B.9090303@...784...> Benoit Minisini schrieb: > On Thursday 09 February 2006 10:13, Andreas Fr?hlke wrote: > >>the same error, without ";" > > > Which database driver do you use? > gambas version: 1.0.3 mysql version: 4.0.24 -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From afroehlke at ...784... Thu Feb 9 12:51:05 2006 From: afroehlke at ...784... (=?UTF-8?B?QW5kcmVhcyBGcsO2aGxrZQ==?=) Date: Thu, 09 Feb 2006 12:51:05 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <6013739.1139480431053.JavaMail.www@...834...> References: <6013739.1139480431053.JavaMail.www@...834...> Message-ID: <43EB2CA9.6060501@...784...> nigel at ...38... schrieb: > I can confirm that with gambas 1.9.24 and mysql 5 that > db.exec("Insert into tablename set fieldname = 'Hello && Goodbye') works for me. > > Try setting DB.Debug = True prior to the statement to check what is actually being passed to > mysql. > > Regards > > Nigel > > > >>Message Received: Feb 09 2006, 09:25 AM >>From: "Benoit Minisini" >>To: gambas-user at lists.sourceforge.net >>Cc: >>Subject: Re: [Gambas-user] problem with "&" and mysql >> >>On Thursday 09 February 2006 10:13, Andreas Fr?hlke wrote: >> >>>the same error, without ";" >> >>Which database driver do you use? >> >>-- >>Benoit Minisini >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, I set db.debug = true and here is the result: I send: INSERT INTO AfTest SET Text='Hello & Bye' mysql receives: mysql: 0x81b33b0: INSERT INTO AfTest SET Text='Hello INSERT INTO AfTest SET Text='Hello & Bye' This is very strange. I'Dont have an Idea to solve this problem. From mconfortino at ...1153... Thu Feb 9 13:55:38 2006 From: mconfortino at ...1153... (Marcelo Confortino) Date: Thu, 09 Feb 2006 09:55:38 -0300 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EB2CA9.6060501@...784...> References: <6013739.1139480431053.JavaMail.www@...834...> <43EB2CA9.6060501@...784...> Message-ID: <43EB3BCA.1080306@...1153...> Andreas Fr?hlke wrote: > nigel at ...38... schrieb: >> I can confirm that with gambas 1.9.24 and mysql 5 that >> db.exec("Insert into tablename set fieldname = 'Hello && Goodbye') >> works for me. >> >> Try setting DB.Debug = True prior to the statement to check what is >> actually being passed to >> mysql. >> >> Regards >> >> Nigel >> >> >> >>> Message Received: Feb 09 2006, 09:25 AM >>> From: "Benoit Minisini" >>> To: gambas-user at lists.sourceforge.net >>> Cc: Subject: Re: [Gambas-user] problem with "&" and mysql >>> >>> On Thursday 09 February 2006 10:13, Andreas Fr?hlke wrote: >>> >>>> the same error, without ";" >>> >>> Which database driver do you use? >>> >>> -- >>> Benoit Minisini >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. Do you grep through >>> log files >>> for problems? Stop! Download the new AJAX search engine that makes >>> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi, > > I set db.debug = true and here is the result: > > I send: > INSERT INTO AfTest SET Text='Hello & Bye' > > mysql receives: > mysql: 0x81b33b0: INSERT INTO AfTest SET Text='Hello INSERT INTO > AfTest SET Text='Hello & Bye' > > This is very strange. I'Dont have an Idea to solve this problem. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Try: db.exec("insert into table (fieldname) values ('Hello & Bye')") Marcelo. From afroehlke at ...784... Thu Feb 9 14:45:09 2006 From: afroehlke at ...784... (=?UTF-8?B?QW5kcmVhcyBGcsO2aGxrZQ==?=) Date: Thu, 09 Feb 2006 14:45:09 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EB3BCA.1080306@...1153...> References: <6013739.1139480431053.JavaMail.www@...834...> <43EB2CA9.6060501@...784...> <43EB3BCA.1080306@...1153...> Message-ID: <43EB4765.7020304@...784...> Marcelo Confortino schrieb: > Andreas Fr?hlke wrote: > >>nigel at ...38... schrieb: >> >>>I can confirm that with gambas 1.9.24 and mysql 5 that >>>db.exec("Insert into tablename set fieldname = 'Hello && Goodbye') >>>works for me. >>> >>>Try setting DB.Debug = True prior to the statement to check what is >>>actually being passed to >>>mysql. >>> >>>Regards >>> >>>Nigel >>> >>> >>> >>> >>>>Message Received: Feb 09 2006, 09:25 AM >>>>From: "Benoit Minisini" >>>>To: gambas-user at lists.sourceforge.net >>>>Cc: Subject: Re: [Gambas-user] problem with "&" and mysql >>>> >>>>On Thursday 09 February 2006 10:13, Andreas Fr?hlke wrote: >>>> >>>> >>>>>the same error, without ";" >>>> >>>>Which database driver do you use? >>>> >>>>-- >>>>Benoit Minisini >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.net email is sponsored by: Splunk Inc. Do you grep through >>>>log files >>>>for problems? Stop! Download the new AJAX search engine that makes >>>>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 >>>>_______________________________________________ >>>>Gambas-user mailing list >>>>Gambas-user at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Splunk Inc. Do you grep through >>>log files >>>for problems? Stop! Download the new AJAX search engine that makes >>>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>>http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 >>>_______________________________________________ >>>Gambas-user mailing list >>>Gambas-user at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>Hi, >> >>I set db.debug = true and here is the result: >> >>I send: >>INSERT INTO AfTest SET Text='Hello & Bye' >> >>mysql receives: >>mysql: 0x81b33b0: INSERT INTO AfTest SET Text='Hello INSERT INTO >>AfTest SET Text='Hello & Bye' >> >>This is very strange. I'Dont have an Idea to solve this problem. >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log >>files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > Try: > > db.exec("insert into table (fieldname) values ('Hello & Bye')") > > Marcelo. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user It's only an other syntax for the INSERT-statement, but i tried it. This also don't work. -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From timothy.marshal-nichols at ...247... Thu Feb 9 16:22:57 2006 From: timothy.marshal-nichols at ...247... (Timothy Marshal-Nichols) Date: Thu, 9 Feb 2006 15:22:57 -0000 Subject: [Gambas-user] Inputbox In-Reply-To: <200602091617.41593.isy21@...1082...> Message-ID: On the site: http://forum.stormweb.no I have provided an example of an InputBox Form/Class that can be used in Gambas Go to "Application / Code Snippets" then "InputBox" Thanks 8-{)} Timothy Marshal-Nichols -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Ignatius Syofian Sent: Thursday, 09 February 2006 09:18 To: gambas-user at lists.sourceforge.net Subject: [Gambas-user] Inputbox Hi, If i want to ask user to input some value in messagebox like How many card you want ? then user can type a value i.e 5 (means 5 card) I means something like inputbox message. How can i do something like this in gambas? -- Thanks in advance Regards, Ignatius Syofian ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From oczykota at ...988... Thu Feb 9 17:12:58 2006 From: oczykota at ...988... (Arkadiusz Zychewicz) Date: Thu, 09 Feb 2006 17:12:58 +0100 Subject: [Gambas-user] Polish translation Gamas documentation Message-ID: <43EB6A0A.4020106@...988...> Hi, I saw that for Gambas is documentation in Wiki and there is the place for polish translation but nothing are translated. So, some one are take care on it if not I'm want to. Arek. From jfabiani at ...1109... Thu Feb 9 17:54:20 2006 From: jfabiani at ...1109... (johnf) Date: Thu, 9 Feb 2006 08:54:20 -0800 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EB4765.7020304@...784...> References: <6013739.1139480431053.JavaMail.www@...834...> <43EB3BCA.1080306@...1153...> <43EB4765.7020304@...784...> Message-ID: <200602090854.20271.jfabiani@...1109...> On Thursday 09 February 2006 05:45, Andreas Fr?hlke wrote: > > It's only an other syntax for the INSERT-statement, but i tried it. This > also don't work. OK I think you will have to start fresh. Are you able to insert any data into the table (the same table that started this)? John From na2492 at ...9... Thu Feb 9 20:09:18 2006 From: na2492 at ...9... (Charlie Reinl) Date: Thu, 9 Feb 2006 20:09:18 00100 Subject: [Gambas-user] Inputbox Message-ID: <43eb935e.4e5f.0@...9...> > >On the site: > http://forum.stormweb.no >I have provided an example of an InputBox Form/Class that can be used in >Gambas > >Go to "Application / Code Snippets" then "InputBox" > >Thanks > >8-{)} Timothy Marshal-Nichols > > > >-----Original Message----- >From: gambas-user-admin at lists.sourceforge.net >[mailto:gambas-user-admin at lists.sourceforge.net]On Behalf Of Ignatius >Syofian >Sent: Thursday, 09 February 2006 09:18 >To: gambas-user at lists.sourceforge.net >Subject: [Gambas-user] Inputbox > > >Hi, > >If i want to ask user to input some value in messagebox like > >How many card you want ? > >then user can type a value i.e 5 (means 5 card) > >I means something like inputbox message. > >How can i do something like this in gambas? > >-- >Thanks in advance > >Regards, > > >Ignatius Syofian Salut, in gambas-1.0.x you find in Help a (type inputbox) InputBox.html then look for InputBox-0.0.2.tar.gz Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambas at ...1353... Fri Feb 10 04:09:59 2006 From: gambas at ...1353... (Wojtek) Date: Fri, 10 Feb 2006 04:09:59 +0100 Subject: [Gambas-user] Polish translation Gamas documentation In-Reply-To: <43EB6A0A.4020106@...988...> References: <43EB6A0A.4020106@...988...> Message-ID: <200602100409.59712.gambas@...1353...> Dnia czwartek, 9 lutego 2006 17:12, Arkadiusz Zychewicz napisa?: > I saw that for Gambas is documentation in Wiki and there is the place > for polish translation but nothing are translated. > So, some one are take care on it if not I'm want to. OK -- Wojciech Saltarski From gambas at ...1... Fri Feb 10 08:07:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 10 Feb 2006 08:07:28 +0100 Subject: [Gambas-user] Polish translation Gamas documentation In-Reply-To: <43EB6A0A.4020106@...988...> References: <43EB6A0A.4020106@...988...> Message-ID: <200602100807.28490.gambas@...1...> On Thursday 09 February 2006 17:12, Arkadiusz Zychewicz wrote: > Hi, > I saw that for Gambas is documentation in Wiki and there is the place > for polish translation but nothing are translated. > So, some one are take care on it if not I'm want to. > > Arek. > Do you want a wiki account ? -- Benoit Minisini From afroehlke at ...784... Fri Feb 10 08:35:27 2006 From: afroehlke at ...784... (=?UTF-8?B?QW5kcmVhcyBGcsO2aGxrZQ==?=) Date: Fri, 10 Feb 2006 08:35:27 +0100 Subject: [Gambas-user] problem with "&" and mysql In-Reply-To: <200602090854.20271.jfabiani@...1109...> References: <6013739.1139480431053.JavaMail.www@...834...> <43EB3BCA.1080306@...1153...> <43EB4765.7020304@...784...> <200602090854.20271.jfabiani@...1109...> Message-ID: <43EC423F.2090803@...784...> johnf schrieb: > On Thursday 09 February 2006 05:45, Andreas Fr?hlke wrote: > >>It's only an other syntax for the INSERT-statement, but i tried it. This >>also don't work. > > > OK I think you will have to start fresh. > > Are you able to insert any data into the table (the same table that started > this)? > > John > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Yes, if theres no Value wich includes an "&" it will work. -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From matthias-laur at ...978... Fri Feb 10 08:44:16 2006 From: matthias-laur at ...978... (Matthias Laur) Date: Fri, 10 Feb 2006 08:44:16 +0100 Subject: AW: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EC423F.2090803@...784...> Message-ID: <0ML2ov-1F7Swz458r-0000c4@...979...> Hi Andreas, can you insert the statement with '&' in the mysql table from an other interface without gambas. Maybe it is a mysql problem. If you use Gambas 1.0.3 I would update at first. The newest stable is 1.0.14. Regards, Matthis -----Urspr?ngliche Nachricht----- Von: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Andreas Fr?hlke Gesendet: Freitag, 10. Februar 2006 08:35 An: gambas-user at lists.sourceforge.net Betreff: Re: [Gambas-user] problem with "&" and mysql johnf schrieb: > On Thursday 09 February 2006 05:45, Andreas Fr?hlke wrote: > >>It's only an other syntax for the INSERT-statement, but i tried it. This >>also don't work. > > > OK I think you will have to start fresh. > > Are you able to insert any data into the table (the same table that started > this)? > > John > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Yes, if theres no Value wich includes an "&" it will work. -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From hendri at ...1354... Fri Feb 10 09:05:15 2006 From: hendri at ...1354... (hendri) Date: Fri, 10 Feb 2006 16:05:15 +0800 Subject: [Gambas-user] the power of gambas In-Reply-To: <43eb935e.4e5f.0@...9...> Message-ID: <000701c62e18$b9db7d20$a400a8c0@...1355...> Is anyone ever used gambas for build some enterprise application (database client server)? Maybe you know if anyone already sell his/her gambas application (the enterprise app one)? Sorry if my english bad. Thanks From afroehlke at ...784... Fri Feb 10 09:22:29 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Fri, 10 Feb 2006 09:22:29 +0100 Subject: [Gambas-user] the power of gambas In-Reply-To: <000701c62e18$b9db7d20$a400a8c0@...1355...> References: <000701c62e18$b9db7d20$a400a8c0@...1355...> Message-ID: <43EC4D45.8040501@...784...> hendri schrieb: > Is anyone ever used gambas for build some enterprise application > (database client server)? > > Maybe you know if anyone already sell his/her gambas application (the > enterprise app one)? > > Sorry if my english bad. > > Thanks > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hello, I'm working for a callcenter and we use self programmed application in our enterprise, but we don't sell it. We have only little problems with gambas, but they were not so bad ;) . -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From afroehlke at ...784... Fri Feb 10 09:23:11 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Fri, 10 Feb 2006 09:23:11 +0100 Subject: AW: [Gambas-user] problem with "&" and mysql In-Reply-To: <0ML2ov-1F7Swz458r-0000c4@...979...> References: <0ML2ov-1F7Swz458r-0000c4@...979...> Message-ID: <43EC4D6F.5080805@...784...> Matthias Laur schrieb: > Hi Andreas, > can you insert the statement with '&' in the mysql table from an other > interface without gambas. Maybe it is a mysql problem. > > If you use Gambas 1.0.3 I would update at first. The newest stable is > 1.0.14. > > Regards, > Matthis > > > > > -----Urspr?ngliche Nachricht----- > Von: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Andreas > Fr?hlke > Gesendet: Freitag, 10. Februar 2006 08:35 > An: gambas-user at lists.sourceforge.net > Betreff: Re: [Gambas-user] problem with "&" and mysql > > johnf schrieb: > >>On Thursday 09 February 2006 05:45, Andreas Fr?hlke wrote: >> >> >>>It's only an other syntax for the INSERT-statement, but i tried it. This >>>also don't work. >> >> >>OK I think you will have to start fresh. >> >>Are you able to insert any data into the table (the same table that > > started > >>this)? >> >>John >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user > > Yes, if theres no Value wich includes an "&" it will work. > in PHP-MyAdmin it will work. It's only a problem with gambas. -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From Tuxforall at ...17... Fri Feb 10 15:58:21 2006 From: Tuxforall at ...17... (Tuxforall at ...17...) Date: Fri, 10 Feb 2006 15:58:21 +0100 (MET) Subject: [Gambas-user] PRINT INPUT and Umlauts Message-ID: <7893.1139583501@...1356...> Hy is that normal? PRINT "Bitte geben Sie die gew?nschte Zahl ein" INPUT A <-2 PRINT A ->0 and so PRINT "Bitte geben Sie die gewuenschte Zahl ein" INPUT A <-2 PRINT A ->2 Gru? -- DSL-Aktion wegen gro?er Nachfrage bis 28.2.2006 verl?ngert: GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl From jfabiani at ...1109... Fri Feb 10 16:38:50 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 10 Feb 2006 07:38:50 -0800 Subject: AW: [Gambas-user] problem with "&" and mysql In-Reply-To: <43EC4D6F.5080805@...784...> References: <0ML2ov-1F7Swz458r-0000c4@...979...> <43EC4D6F.5080805@...784...> Message-ID: <200602100738.50944.jfabiani@...1109...> On Friday 10 February 2006 00:23, Andreas Fr?hlke wrote: > Matthias Laur schrieb: > > Hi Andreas, > > can you insert the statement with '&' in the mysql table from an other > > interface without gambas. Maybe it is a mysql problem. > > > > If you use Gambas 1.0.3 I would update at first. The newest stable is > > 1.0.14. > > > > Regards, > > Matthis > > > > > > > > > > -----Urspr?ngliche Nachricht----- > > Von: gambas-user-admin at lists.sourceforge.net > > [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Andreas > > Fr?hlke > > Gesendet: Freitag, 10. Februar 2006 08:35 > > An: gambas-user at lists.sourceforge.net > > Betreff: Re: [Gambas-user] problem with "&" and mysql > > > > johnf schrieb: > >>On Thursday 09 February 2006 05:45, Andreas Fr?hlke wrote: > >>>It's only an other syntax for the INSERT-statement, but i tried it. This > >>>also don't work. > >> > >>OK I think you will have to start fresh. > >> > >>Are you able to insert any data into the table (the same table that > > > > started > > > >>this)? > >> > >>John > > > > Yes, if theres no Value wich includes an "&" it will work. > > in PHP-MyAdmin it will work. It's only a problem with gambas. I can't test your version of Gambas. So please upgrade to the lastest then retest. John From sourceforge-raindog2 at ...94... Fri Feb 10 17:46:19 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 10 Feb 2006 11:46:19 -0500 Subject: [Gambas-user] the power of gambas In-Reply-To: <000701c62e18$b9db7d20$a400a8c0@...1355...> References: <000701c62e18$b9db7d20$a400a8c0@...1355...> Message-ID: <200602101146.20202.sourceforge-raindog2@...94...> On Fri February 10 2006 03:05, hendri wrote: > Is anyone ever used gambas for build some enterprise > application (database client server)? Yes, most of the Gambas applications I've written for clients fall into that category. > Maybe you know if anyone already sell his/her gambas > application (the enterprise app one)? I got paid to write them for my clients, but we've never sold any of them to other customers afterward. I'm not aware of anyone selling an application written in Gambas yet. Rob From na2492 at ...9... Fri Feb 10 17:50:36 2006 From: na2492 at ...9... (Charlie Reinl) Date: Fri, 10 Feb 2006 17:50:36 00100 Subject: AW: [Gambas-user] problem with "&" and mysql Message-ID: <43ecc45c.518a.0@...9...> >Matthias Laur schrieb: >> Hi Andreas, >> can you insert the statement with '&' in the mysql table from an other >> interface without gambas. Maybe it is a mysql problem. >> >> If you use Gambas 1.0.3 I would update at first. The newest stable is >> 1.0.14. >> >> Regards, >> Matthis ------snip >> >> Yes, if theres no Value wich includes an "&" it will work. >> >in PHP-MyAdmin it will work. It's only a problem with gambas. > >-- >Mit freundlichen Gr??en aus Onsabr?ck. > >Andreas Fr?hlke > Salut , PUBLIC SUB btnOK_Click() DIM rTest AS Result meConn.Handle.Begin IF sWhat <> "EDIT" THEN rTest = meConn.Handle.Create("crm_Customers") rTest!guid = Main.UUID.getUUID() rTest!mandnr = Main.sysMandNr ELSE rTest = meConn.Handle.Edit("crm_Customers", "guid = &1", sGUID) ENDIF rTest!id = TextBox7.Text rTest!mcode = TextBox8.Text rTest!fon = TextBox9.Text rTest!mail = TextBox10.Text rTest!name1 = TextBox11.Text rTest!city = TextBox12.Text rTest.Update meConn.Handle.Commit ME.Close(TRUE) CATCH message.Warning(Replace(Error.Text, ".", "." & gb.NewLine)) END with the upper Code the &, on my box finshed in the Database. This is my Box: ----------------- gambas ---------------------------------------------------------------- gbx-1.0.14 /usr/bin/gbx ----------------- gambas2 ---------------------------------------------------------------- gbx2-1.9.24 /usr/local/bin/gbx2 ----------------- X -------------------------------------------------------------------- X Window System Version 6.8.2 Release Date: 9 February 2005 X Protocol Version 11, Revision 0, Release 6.8.2 Build Operating System: Linux 2.6.8-gentoo-r3 i686 [ELF] Current Operating System: Linux gentoo01 2.6.14-gentoo-r5 #1 SMP PREEMPT Sun Jan 29 23:42:07 CET 2006 i686 Build Date: 29 December 2005 Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present ----------------- kernel ---------------------------------------------------------------- Linux gentoo01 2.6.14-gentoo-r5 #1 SMP PREEMPT Sun Jan 29 23:42:07 CET 2006 i686 AMD Athlon(tm) MP AuthenticAMD GNU/Linux ----------------- Release -------------------------------------------------------------- Gentoo Base System version 1.6.14 ----------------- QT and KDE ------------------------------------------------------------ Qt: 3.3.4 KDE: 3.4.3 KDE Daemon: $Id: kded.cpp 380816 2005-01-21 15:36:26Z waba $ ----------------- gcc -------------------------------------------------------------------- gcc (GCC) 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8) Copyright ? 2003 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht f?r VERKAUFBARKEIT oder F?R SPEZIELLE ZWECKE. ----------------- make ---------------------------------------------------------------- GNU Make 3.80 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ----------------- autoconf ---------------------------------------------------------------- autoconf (GNU Autoconf) 2.59 Written by David J. MacKenzie and Akim Demaille. Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ----------------- automake ---------------------------------------------------------------- automake (GNU automake) 1.9.6 Written by Tom Tromey . Copyright 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ----------------- mySql ---------------------------------------------------------------- mysql Ver 14.7 Distrib 4.1.14, for pc-linux-gnu (i686) using readline 5.0 ----------------- PostgreSQL ------------------------------------------------------------ psql (PostgreSQL) 8.0.4 enth?lt Unterst?tzung f?r Kommandozeilenbearbeitung ----------------- SQLite ---------------------------------------------------------------- 2.8.15 ----------------- SQLite3 ---------------------------------------------------------------- 3.2.1 Try the attached script, all what you see below about my box was written by that script Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * -------------- next part -------------- A non-text attachment was scrubbed... Name: sysInfo.sh Type: application/x-shellscript Size: 2721 bytes Desc: not available URL: From gambas at ...1... Fri Feb 10 19:56:49 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 10 Feb 2006 19:56:49 +0100 Subject: AW: [Gambas-user] problem with "&" and mysql In-Reply-To: <43ecc45c.518a.0@...9...> References: <43ecc45c.518a.0@...9...> Message-ID: <200602101956.49845.gambas@...1...> On Friday 10 February 2006 18:50, Charlie Reinl wrote: > > Salut , > > PUBLIC SUB btnOK_Click() > DIM rTest AS Result > meConn.Handle.Begin > IF sWhat <> "EDIT" THEN > rTest = meConn.Handle.Create("crm_Customers") > rTest!guid = Main.UUID.getUUID() > rTest!mandnr = Main.sysMandNr > ELSE > rTest = meConn.Handle.Edit("crm_Customers", "guid = &1", sGUID) > ENDIF > rTest!id = TextBox7.Text > rTest!mcode = TextBox8.Text > rTest!fon = TextBox9.Text > rTest!mail = TextBox10.Text > rTest!name1 = TextBox11.Text > rTest!city = TextBox12.Text > rTest.Update > meConn.Handle.Commit > ME.Close(TRUE) > CATCH > message.Warning(Replace(Error.Text, ".", "." & gb.NewLine)) > END > > with the upper Code the &, on my box finshed in the Database. > What are you talking about precisely? -- Benoit Minisini From gambas at ...1... Fri Feb 10 19:59:03 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 10 Feb 2006 19:59:03 +0100 Subject: [Gambas-user] PRINT INPUT and Umlauts In-Reply-To: <7893.1139583501@...1356...> References: <7893.1139583501@...1356...> Message-ID: <200602101959.03959.gambas@...1...> On Friday 10 February 2006 15:58, Tuxforall at ...17... wrote: > Hy > > is that normal? > > PRINT "Bitte geben Sie die gew?nschte Zahl ein" > INPUT A <-2 > PRINT A ->0 > > and so > > PRINT "Bitte geben Sie die gewuenschte Zahl ein" > INPUT A <-2 > PRINT A ->2 > > Gru? No problem there. Which version of Gambas do you use? What is the datatype of A ? You should better send a complete code when you find a bug. Regards, -- Benoit Minisini From gambas at ...1... Fri Feb 10 20:37:42 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 10 Feb 2006 20:37:42 +0100 Subject: [Gambas-user] Bug in the networking component Message-ID: <200602102037.42331.gambas@...1...> Hi, As it seems that Daniel does not have the time to do it :-) I fixed the bug in the networking component that prevented more than five connection to a server socket. Here is the patch for the stable and the development version (this is the same file). Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: CServerSocket.c Type: text/x-csrc Size: 15177 bytes Desc: not available URL: From rohnny at ...1248... Fri Feb 10 21:23:07 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Fri, 10 Feb 2006 21:23:07 +0100 Subject: [Gambas-user] Re: Gambas 1.9.24 package for Ubuntu 5.10 (Benoit Minisini) In-Reply-To: <20060208214703.F1B0B8890B@...763...> References: <20060208214703.F1B0B8890B@...763...> Message-ID: <43ECF62B.8070604@...1248...> I'm running Ubuntu breezy and I have tried the dpkg without any luck. This is the result. rohnny at ...1008...:~/Desktop/gambas2-1.9.24$ dpkg-source -x gambas2-1.9.24 dpkg-source: error: cannot open .dsc file ./gambas2-1.9.24: Ingen slik fil eller filkatalog rohnny at ...1008...:~/Desktop/gambas2-1.9.24$ cd .. rohnny at ...1008...:~/Desktop$ dpkg-source -x gambas2-1.9.24 dpkg-source: error: syntax error in source control file ./gambas2-1.9.24 at line 0: empty file Is there something I miss.? Regards Rohnny -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From nando_f at ...951... Fri Feb 10 22:17:50 2006 From: nando_f at ...951... (nando) Date: Fri, 10 Feb 2006 16:17:50 -0500 Subject: [Gambas-user] the power of gambas In-Reply-To: <200602101146.20202.sourceforge-raindog2@...94...> References: <000701c62e18$b9db7d20$a400a8c0@...1355...> <200602101146.20202.sourceforge-raindog2@...94...> Message-ID: <20060210211512.M35198@...951...> Friends, I have spent the last year writing 'real-time' applications for the company I work for where the livelyhood of hundreds it depends on. It will be sold else where too soon. Gambas has performed wonderfully!! -Fernando ---------- Original Message ----------- From: Rob Kudla To: gambas-user at lists.sourceforge.net Sent: Fri, 10 Feb 2006 11:46:19 -0500 Subject: Re: [Gambas-user] the power of gambas > On Fri February 10 2006 03:05, hendri wrote: > > Is anyone ever used gambas for build some enterprise > > application (database client server)? > > Yes, most of the Gambas applications I've written for clients > fall into that category. > > > Maybe you know if anyone already sell his/her gambas > > application (the enterprise app one)? > > I got paid to write them for my clients, but we've never sold any > of them to other customers afterward. I'm not aware of anyone > selling an application written in Gambas yet. > > Rob > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From hendri at ...1354... Sat Feb 11 01:29:30 2006 From: hendri at ...1354... (hendri) Date: Sat, 11 Feb 2006 08:29:30 +0800 Subject: [Gambas-user] the power of gambas In-Reply-To: <20060210211512.M35198@...951...> Message-ID: <000b01c62ea2$3f573fa0$a400a8c0@...1355...> Thanks for the information. My company want to switch from foxpro for dos to gambas. I already try to make a small program using gambas with mysql but I found difficulty of making a report. Is there any application like seagate crystal report for gambas? if gambas can run scanner too? I mean like microsoft component of image scanner and image viewer. -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of nando Sent: Saturday, February 11, 2006 5:18 AM To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] the power of gambas Friends, I have spent the last year writing 'real-time' applications for the company I work for where the livelyhood of hundreds it depends on. It will be sold else where too soon. Gambas has performed wonderfully!! -Fernando -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of nando Sent: Saturday, February 11, 2006 5:18 AM To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] the power of gambas Friends, I have spent the last year writing 'real-time' applications for the company I work for where the livelyhood of hundreds it depends on. It will be sold else where too soon. Gambas has performed wonderfully!! -Fernando ---------- Original Message ----------- From: Rob Kudla To: gambas-user at lists.sourceforge.net Sent: Fri, 10 Feb 2006 11:46:19 -0500 Subject: Re: [Gambas-user] the power of gambas > On Fri February 10 2006 03:05, hendri wrote: > > Is anyone ever used gambas for build some enterprise > > application (database client server)? > > Yes, most of the Gambas applications I've written for clients > fall into that category. > > > Maybe you know if anyone already sell his/her gambas > > application (the enterprise app one)? > > I got paid to write them for my clients, but we've never sold any > of them to other customers afterward. I'm not aware of anyone > selling an application written in Gambas yet. > > Rob > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Sat Feb 11 08:52:25 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 11 Feb 2006 02:52:25 -0500 Subject: [Gambas-user] the power of gambas In-Reply-To: <000b01c62ea2$3f573fa0$a400a8c0@...1355...> References: <000b01c62ea2$3f573fa0$a400a8c0@...1355...> Message-ID: <200602110252.26228.sourceforge-raindog2@...94...> On Fri February 10 2006 19:29, hendri wrote: > I already try to make a small program using gambas with mysql > but I found difficulty of making a report. Is there any > application like seagate crystal report for gambas? Not yet, but there's someone working on one already. > if gambas can run scanner too? > I mean like microsoft component of image scanner and image > viewer. I have personally used Gambas with the "scanimage" program to write an interface to a scanner for a document management system, but there is no "gb.sane" component yet for dealing with scanners directly. (SANE is to Linux as TWAIN is to Windows.) Rob From Tuxforall at ...17... Sat Feb 11 14:55:09 2006 From: Tuxforall at ...17... (Tuxforall at ...17...) Date: Sat, 11 Feb 2006 14:55:09 +0100 (MET) Subject: [Gambas-user] Re:PRINT INPUT and Umlauts Message-ID: <5677.1139666109@...1358...> ups ok DIM A AS Integer PRINT "Bitte geben Sie die gew?nschte Zahl ein" INPUT A <-2 PRINT A ->0 and so PRINT "Bitte geben Sie die gewuenschte Zahl ein" INPUT A <-2 PRINT A ->2 gambas 1.9.23 and 1.9.24 Gru? -- DSL-Aktion wegen gro?er Nachfrage bis 28.2.2006 verl?ngert: GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl From katsancat at ...11... Sat Feb 11 17:10:48 2006 From: katsancat at ...11... (Bertand-Xavier M.) Date: Sat, 11 Feb 2006 17:10:48 +0100 Subject: [Gambas-user] Re:PRINT INPUT and Umlauts In-Reply-To: <5677.1139666109@...1358...> References: <5677.1139666109@...1358...> Message-ID: <200602111710.49141.katsancat@...11...> On Saturday 11 February 2006 14:55, Tuxforall at ...17... wrote: > ups ok > > DIM A AS Integer > > PRINT "Bitte geben Sie die gew?nschte Zahl ein" > INPUT A <-2 > PRINT A ->0 Hi, To the question "Was that normal?" : Output always says -2 here although i doubt anything would cost -2 bucks. From na2492 at ...9... Sat Feb 11 18:21:54 2006 From: na2492 at ...9... (Charlie Reinl) Date: Sat, 11 Feb 2006 18:21:54 00100 Subject: [Gambas-user] Re:PRINT INPUT and Umlauts Message-ID: <43ee1d32.4721.0@...9...> >ups ok > >DIM A AS Integer > >PRINT "Bitte geben Sie die gew?nschte Zahl ein" > INPUT A <-2 > PRINT A ->0 > > and so > > PRINT "Bitte geben Sie die gewuenschte Zahl ein" > INPUT A <-2 > PRINT A ->2 > >gambas 1.9.23 and 1.9.24 > >Gru? > Salut this is the code. PUBLIC SUB Main() DIM A AS Integer PRINT "system.Language = " & system.Language PRINT "Bitte geben Sie die gew?nschte Zahl ein" INPUT A '< -2 PRINT A '- > 0 'AND so PRINT "Bitte geben Sie die gewuenschte Zahl ein" INPUT A '< -2 PRINT A '- > 2 END this is the output on the gambas2-1.024 console: system.Language = de_DE at ...33... Bitte geben Sie die gew?Œnschte Zahl ein 2 2 Bitte geben Sie die gewuenschte Zahl ein 2 2 seams to work right for me (only the umlaut is bad) Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From michael.roemhild at ...1359... Sun Feb 12 10:53:06 2006 From: michael.roemhild at ...1359... (Michael =?iso-8859-1?q?R=F6mhild?=) Date: Sun, 12 Feb 2006 10:53:06 +0100 Subject: [Gambas-user] Frage Message-ID: <200602121053.06319.michael.roemhild@...1359...> Hey, I can't see then selected item on Dir/FileView. PUBLIC SUB DirView1_DblClick() message(DirView1.??????????) END What are the properties for these components? roemi From michael.roemhild at ...1359... Sun Feb 12 16:06:21 2006 From: michael.roemhild at ...1359... (Michael =?iso-8859-1?q?R=F6mhild?=) Date: Sun, 12 Feb 2006 16:06:21 +0100 Subject: [Gambas-user] Frage In-Reply-To: <200602121053.06319.michael.roemhild@...1359...> References: <200602121053.06319.michael.roemhild@...1359...> Message-ID: <200602121606.21584.michael.roemhild@...1359...> It is to easy ..... DirView1.Current R?mi > Hey, > > I can't see then selected item on Dir/FileView. > > PUBLIC SUB DirView1_DblClick() > message(DirView1.??????????) > END > > What are the properties for these components? > > roemi > > From katsancat at ...11... Sun Feb 12 17:31:16 2006 From: katsancat at ...11... (Bertand-Xavier M.) Date: Sun, 12 Feb 2006 17:31:16 +0100 Subject: [Gambas-user] Bug in the networking component In-Reply-To: <200602102037.42331.gambas@...1...> References: <200602102037.42331.gambas@...1...> Message-ID: <200602121731.16872.katsancat@...11...> On Friday 10 February 2006 20:37, Benoit Minisini wrote: > Hi, > > As it seems that Daniel does not have the time to do it :-) I fixed the bug > in the networking component that prevented more than five connection to a > server socket. > > Here is the patch for the stable and the development version (this is the > same file). > > Regards, Hello, Thanks for the update! Here's a suggestion: add a new property to the ServerSocket class: Count, which would return the number of connected child sockets. It would be very practical by avoiding the gambas programmer to declare a global variable to keep track of this value. It would fit well to this server class. Best Regards, BXM From hendri at ...1354... Mon Feb 13 07:29:29 2006 From: hendri at ...1354... (hendri) Date: Mon, 13 Feb 2006 14:29:29 +0800 Subject: [Gambas-user] gambas & kugar... Message-ID: <001101c63066$db103df0$a400a8c0@...1355...> Hi all, How can I call my kugar report (anything.kud) from my gambas application? You know like if we call seagate crystal report (anything.rpt) from visual basic app. How about sending parameter(s)? I have a gambas form modul contains date textbox for I want to send this date as a parameter to my kugar report so it could show it. Thanks for the helping guys... From jfabiani at ...1109... Mon Feb 13 19:05:12 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 13 Feb 2006 10:05:12 -0800 Subject: [Gambas-user] gambas & kugar... In-Reply-To: <001101c63066$db103df0$a400a8c0@...1355...> References: <001101c63066$db103df0$a400a8c0@...1355...> Message-ID: <200602131005.12277.jfabiani@...1109...> I believe kugar will use dcop. Take a look at the kate example. John On Sunday 12 February 2006 22:29, hendri wrote: > Hi all, > > How can I call my kugar report (anything.kud) from my gambas > application? > You know like if we call seagate crystal report (anything.rpt) from > visual basic app. > > How about sending parameter(s)? > I have a gambas form modul contains date textbox for I want to send this > date as a parameter to my kugar report so it could show it. > > Thanks for the helping guys... > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From hendri at ...1354... Tue Feb 14 04:56:29 2006 From: hendri at ...1354... (hendri) Date: Tue, 14 Feb 2006 11:56:29 +0800 Subject: [Gambas-user] make package error Message-ID: <000801c6311a$a28eb510$a400a8c0@...1355...> I build gambas app and run it and it's ok But when I try to make a package the build's fail I'm using gambas 1.9.24 with fedora core 3. How can I fix this? Thanks From katsancat at ...11... Tue Feb 14 09:16:40 2006 From: katsancat at ...11... (Bertand-Xavier M.) Date: Tue, 14 Feb 2006 09:16:40 +0100 Subject: [Gambas-user] Re:PRINT INPUT and Umlauts In-Reply-To: <43ee1d32.4721.0@...9...> References: <43ee1d32.4721.0@...9...> Message-ID: <200602140916.40325.katsancat@...11...> > seams to work right for me (only the umlaut is bad) Hi, To display special characters in the console -like inflexions on wovels- you have to use the chr function on the character ASCII representation. Here are 4 attempts to display the euro symbol: funny to note that the only one that appears fine in the code won't during execution. SUB MAIN PRINT "euro: ?" PRINT "euro: \xa4" PRINT Chr(&Ha4) PRINT Chr(164) END Regards, BXM From jfabiani at ...1109... Wed Feb 15 04:03:21 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 14 Feb 2006 19:03:21 -0800 Subject: [Gambas-user] anybody have a parser Message-ID: <200602141903.21963.jfabiani@...1109...> Hi, I need a parser to parse out the special characters for SQL statements. I.e. I need to replace " ' ", " ; ", and other special characters in "textarea" controls so that I can use "Update" and "Insert" statements. Actually, I should parse all controls. John From sourceforge-raindog2 at ...94... Wed Feb 15 04:56:15 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 14 Feb 2006 22:56:15 -0500 Subject: [Gambas-user] anybody have a parser In-Reply-To: <200602141903.21963.jfabiani@...1109...> References: <200602141903.21963.jfabiani@...1109...> Message-ID: <200602142256.15303.sourceforge-raindog2@...94...> On Tue February 14 2006 22:03, johnf wrote: > I need a parser to parse out the special characters for SQL > statements. I.e. I need to replace " ' ", " ; ", and other > special characters in "textarea" controls so that I can use > "Update" and "Insert" statements. Actually, I should parse > all controls. The Connection.Exec method automatically quotes your parameters ("arguments" in gb.db parlance), but if you want to do it manually for some reason you can use Connection.Quote. http://www.gambasdoc.org/help/comp/gb.db/connection/exec http://www.gambasdoc.org/help/comp/gb.db/connection/quote Rob From jfabiani at ...1109... Wed Feb 15 06:25:47 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 14 Feb 2006 21:25:47 -0800 Subject: [Gambas-user] anybody have a parser In-Reply-To: <200602142256.15303.sourceforge-raindog2@...94...> References: <200602141903.21963.jfabiani@...1109...> <200602142256.15303.sourceforge-raindog2@...94...> Message-ID: <200602142125.47473.jfabiani@...1109...> On Tuesday 14 February 2006 19:56, Rob Kudla wrote: > On Tue February 14 2006 22:03, johnf wrote: > > I need a parser to parse out the special characters for SQL > > statements. I.e. I need to replace " ' ", " ; ", and other > > special characters in "textarea" controls so that I can use > > "Update" and "Insert" statements. Actually, I should parse > > all controls. > > The Connection.Exec method automatically quotes your parameters > ("arguments" in gb.db parlance), but if you want to do it > manually for some reason you can use Connection.Quote. > > http://www.gambasdoc.org/help/comp/gb.db/connection/exec > http://www.gambasdoc.org/help/comp/gb.db/connection/quote > > Rob Thanks for the response. I'm using 1.9.24 and using "DB.Quote(textarea.Text)" does not work for me. Just adding a " ' " (a single quote) to the text will cause the update statement to fail. The single quote is not escaped correctly. However, it does appear to work if the string is not multi-line. John From sourceforge-raindog2 at ...94... Wed Feb 15 07:51:57 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 15 Feb 2006 01:51:57 -0500 Subject: [Gambas-user] anybody have a parser In-Reply-To: <200602142125.47473.jfabiani@...1109...> References: <200602141903.21963.jfabiani@...1109...> <200602142256.15303.sourceforge-raindog2@...94...> <200602142125.47473.jfabiani@...1109...> Message-ID: <200602150151.57760.sourceforge-raindog2@...94...> On Wed February 15 2006 00:25, johnf wrote: > Thanks for the response. I'm using 1.9.24 and using > "DB.Quote(textarea.Text)" does not work for me. Just adding a > " ' " (a single quote) to the text will cause the update > statement to fail. The single quote is not escaped correctly. > However, it does appear to work if the string is not > multi-line. Yeah, that's because DB.Quote (in gb.db.mysql, at least) seems to put the quoted string in backticks, so single quotes wouldn't hurt it. Sticking backticks in your string, however, does cause DB.Quote to not work so well. Same with putting in a newline. I'd call that a bug. I think that whatever algorithm is used in PHP's "mysql_real_escape_string" function is probably a better idea, but unfortunately I don't have time right now to add the missing quotable entities to gb.db.mysql (having never looked at that code before.) Rob From jfabiani at ...1109... Wed Feb 15 08:05:31 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 14 Feb 2006 23:05:31 -0800 Subject: [Gambas-user] anybody have a parser In-Reply-To: <200602150151.57760.sourceforge-raindog2@...94...> References: <200602141903.21963.jfabiani@...1109...> <200602142125.47473.jfabiani@...1109...> <200602150151.57760.sourceforge-raindog2@...94...> Message-ID: <200602142305.31249.jfabiani@...1109...> On Tuesday 14 February 2006 22:51, Rob Kudla wrote: > On Wed February 15 2006 00:25, johnf wrote: > > Thanks for the response. I'm using 1.9.24 and using > > "DB.Quote(textarea.Text)" does not work for me. Just adding a > > " ' " (a single quote) to the text will cause the update > > statement to fail. The single quote is not escaped correctly. > > However, it does appear to work if the string is not > > multi-line. > > Yeah, that's because DB.Quote (in gb.db.mysql, at least) seems to > put the quoted string in backticks, so single quotes wouldn't > hurt it. Sticking backticks in your string, however, does cause > DB.Quote to not work so well. Same with putting in a newline. > I'd call that a bug. > > I think that whatever algorithm is used in PHP's > "mysql_real_escape_string" function is probably a better idea, > but unfortunately I don't have time right now to add the missing > quotable entities to gb.db.mysql (having never looked at that > code before.) > > Rob Again thanks. BTW I'm using Postgres. Another issue, is it possible to read the return string that database engine returns? Like aVariant = connection.exec("update table set company = 'mystring' ;") Will aVariant contain the response from the database engine? Something like "Query returned successfully: 1 rows affected, 36 ms execution time." John From sourceforge-raindog2 at ...94... Wed Feb 15 08:21:22 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 15 Feb 2006 02:21:22 -0500 Subject: [Gambas-user] anybody have a parser In-Reply-To: <200602142305.31249.jfabiani@...1109...> References: <200602141903.21963.jfabiani@...1109...> <200602150151.57760.sourceforge-raindog2@...94...> <200602142305.31249.jfabiani@...1109...> Message-ID: <200602150221.22484.sourceforge-raindog2@...94...> On Wed February 15 2006 02:05, johnf wrote: > Will aVariant contain the response from the database engine? > Something like "Query returned successfully: 1 rows affected, > 36 ms execution time." I think that string is something generated by the query software itself, and all the database returns is the number of rows affected... but the result of Connection.Exec is a Result object (i.e. a recordset) if anything's returned at all. Maybe Result.Count returns the number of rows affected in an insert/update operation? I've never tried that. Rob From jfabiani at ...1109... Wed Feb 15 08:38:44 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 14 Feb 2006 23:38:44 -0800 Subject: [Gambas-user] anybody have a parser In-Reply-To: <200602150221.22484.sourceforge-raindog2@...94...> References: <200602141903.21963.jfabiani@...1109...> <200602142305.31249.jfabiani@...1109...> <200602150221.22484.sourceforge-raindog2@...94...> Message-ID: <200602142338.44152.jfabiani@...1109...> On Tuesday 14 February 2006 23:21, Rob Kudla wrote: > On Wed February 15 2006 02:05, johnf wrote: > > Will aVariant contain the response from the database engine? > > Something like "Query returned successfully: 1 rows affected, > > 36 ms execution time." > > I think that string is something generated by the query software > itself, and all the database returns is the number of rows > affected... but the result of Connection.Exec is a Result object > (i.e. a recordset) if anything's returned at all. > > Maybe Result.Count returns the number of rows affected in an > insert/update operation? I've never tried that. > > Rob I wish result.count returned the string. But it is = 0. At the moment I'm having trouble with the connection.exec("update set field = 'string' where field = 'string' ") not respecting my "where" clause. Any thoughts? John From jfabiani at ...1109... Wed Feb 15 09:01:14 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 15 Feb 2006 00:01:14 -0800 Subject: [Gambas-user] Is there a limit to exec string Message-ID: <200602150001.14657.jfabiani@...1109...> Hi, Is there a limit to the length of the string that a connection.exec(string) can accept? Does it truncate? When I pass a string with a length of 370 chars I think it is truncating the string. John From jeronimo.sanchez at ...626... Wed Feb 15 09:56:29 2006 From: jeronimo.sanchez at ...626... (Jeronimo Sanchez) Date: Wed, 15 Feb 2006 09:56:29 +0100 Subject: [Gambas-user] problem install gambas, fedora core 3 In-Reply-To: <200601301000.13496.sourceforge-raindog2@...94...> References: <200601301000.13496.sourceforge-raindog2@...94...> Message-ID: <1139993789.8377.12.camel@...37...> You can install Gambas from an RPM package using the following repository: http://centos.karan.org/el4/extras/stable/i386/RPMS I used it for CentOS 4.2. As far as I know, this repository is also compatible with Redhat EL4 and Fedora, so you can give it a try and let's us know the result. In http://centos.karan.org you can get detailed instructions on how to configure yum in order to install packages from this repository. BTW: last available version is gambas-1.0.13. Regards/Jeronimo On Mon, 2006-01-30 at 10:00 -0500, Rob Kudla wrote: > On Mon January 30 2006 03:24, T C wrote: > > when i try to install gambas usin the command on > > http://gambas.sourceforge.net/ > > yum install gambas* > > Try yum install gambas*1.0.13* maybe? Sorry if that doesn't > work.... I haven't used yum. The instructions on the website > assumed that only the current version of Gambas would be in the > repository at any given time, and I guess someone forgot to > clean the old ones out this time. > > Rob > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From afroehlke at ...784... Wed Feb 15 10:30:11 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Wed, 15 Feb 2006 10:30:11 +0100 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <200602150001.14657.jfabiani@...1109...> References: <200602150001.14657.jfabiani@...1109...> Message-ID: <43F2F4A3.3080908@...784...> johnf schrieb: > Hi, > Is there a limit to the length of the string that a connection.exec(string) > can accept? Does it truncate? When I pass a string with a length of 370 > chars I think it is truncating the string. > > John > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user hello, i think there is a limit, but I don't no wich. But I've tested a SQL-String wich was over 4000 charakters long and it will work. Andreas -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From gambas at ...1... Wed Feb 15 12:07:12 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 15 Feb 2006 12:07:12 +0100 Subject: [Gambas-user] anybody have a parser In-Reply-To: <200602150151.57760.sourceforge-raindog2@...94...> References: <200602141903.21963.jfabiani@...1109...> <200602142125.47473.jfabiani@...1109...> <200602150151.57760.sourceforge-raindog2@...94...> Message-ID: <200602151207.12196.gambas@...1...> On Wednesday 15 February 2006 07:51, Rob Kudla wrote: > On Wed February 15 2006 00:25, johnf wrote: > > Thanks for the response. I'm using 1.9.24 and using > > "DB.Quote(textarea.Text)" does not work for me. Just adding a > > " ' " (a single quote) to the text will cause the update > > statement to fail. The single quote is not escaped correctly. > > However, it does appear to work if the string is not > > multi-line. > > Yeah, that's because DB.Quote (in gb.db.mysql, at least) seems to > put the quoted string in backticks, so single quotes wouldn't > hurt it. Sticking backticks in your string, however, does cause > DB.Quote to not work so well. Same with putting in a newline. > I'd call that a bug. You mistake DB.Quote() with DB.Subst(). DB.Quote is used for quoting table and field names inside a query. I update the documentation to make it clearer :-) P.S. I cannot ssh to the documentation server anymore :-/ Regards, -- Benoit Minisini From gambas at ...1... Wed Feb 15 12:09:02 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 15 Feb 2006 12:09:02 +0100 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <43F2F4A3.3080908@...784...> References: <200602150001.14657.jfabiani@...1109...> <43F2F4A3.3080908@...784...> Message-ID: <200602151209.02234.gambas@...1...> On Wednesday 15 February 2006 10:30, Andreas Fr?hlke wrote: > johnf schrieb: > > Hi, > > Is there a limit to the length of the string that a > > connection.exec(string) can accept? Does it truncate? When I pass a > > string with a length of 370 chars I think it is truncating the string. > > > > John > > There is no theorical limit, but the database backend can limit the size of a request. You should read the documentation of your database server to know more. For example, a mySQL request cannot be larger than 1 Mb - I may be wrong, this is just an example :-) Regards, -- Benoit Minisini From nigel at ...38... Wed Feb 15 12:09:11 2006 From: nigel at ...38... (nigel at ...38...) Date: Wed, 15 Feb 2006 12:09:11 +0100 (CET) Subject: [Gambas-user] problem with "&" and mysql Message-ID: <15962606.1140001751548.JavaMail.www@...1133...> Andreas, Could you try updating to the latest stable version and rerun with Debug on. You will need the '&&' in the statement. Regards Nigel > Message Received: Feb 09 2006, 11:50 AM > From: "Andreas Fr?hlke" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: Re: [Gambas-user] problem with "&" and mysql > > nigel at ...38... schrieb: > > I can confirm that with gambas 1.9.24 and mysql 5 that > > db.exec("Insert into tablename set fieldname = 'Hello && Goodbye') works for me. > > > > Try setting DB.Debug = True prior to the statement to check what is actually being passed to > > mysql. > > > > Regards > > > > Nigel > > > > > > > >>Message Received: Feb 09 2006, 09:25 AM > >>From: "Benoit Minisini" > >>To: gambas-user at lists.sourceforge.net > >>Cc: > >>Subject: Re: [Gambas-user] problem with "&" and mysql > >> > >>On Thursday 09 February 2006 10:13, Andreas Fr?hlke wrote: > >> > >>>the same error, without ";" > >> > >>Which database driver do you use? > >> > >>-- > >>Benoit Minisini > >> > >> > >> > >>------------------------------------------------------- > >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > >>for problems? Stop! Download the new AJAX search engine that makes > >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > >>_______________________________________________ > >>Gambas-user mailing list > >>Gambas-user at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi, > > I set db.debug = true and here is the result: > > I send: > INSERT INTO AfTest SET Text='Hello & Bye' > > mysql receives: > mysql: 0x81b33b0: INSERT INTO AfTest SET Text='Hello INSERT INTO AfTest > SET Text='Hello & Bye' > > This is very strange. I'Dont have an Idea to solve this problem. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rolf.frogs at ...221... Wed Feb 15 14:37:21 2006 From: rolf.frogs at ...221... (rolf) Date: Wed, 15 Feb 2006 14:37:21 +0100 Subject: [Gambas-user] Values of a string with a given font size Message-ID: <200602151437.21393.rolf.frogs@...221...> Hi, is it possible to get the length and hight of a string with a given font in pixels. This will allow to adjust the controls on screens with different resolutions. Many thanks Rolf Schmidt From eilert-sprachen at ...221... Wed Feb 15 16:39:34 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 15 Feb 2006 16:39:34 +0100 Subject: [Gambas-user] Values of a string with a given font size In-Reply-To: <200602151437.21393.rolf.frogs@...221...> References: <200602151437.21393.rolf.frogs@...221...> Message-ID: <43F34B36.5030508@...221...> Hi Rolf :-) rolf schrieb: >Hi, > >is it possible to get the length and hight of a string with a given font in >pixels. > > Yes, there is a font.height and font.width property you can read out giving a string, just let me look it up... Well, for example you can write hoehe = Button1.Font.Height("OK") breite = Button1.Font.Width("OK") >This will allow to adjust the controls on screens with different resolutions > > >Many thanks >Rolf Schmidt > > Hope it helps! Rolf-Werner Eilert From jeronimo.sanchez at ...626... Wed Feb 15 17:15:05 2006 From: jeronimo.sanchez at ...626... (Jeronimo Sanchez) Date: Wed, 15 Feb 2006 17:15:05 +0100 Subject: [Gambas-user] Gambas2 binary RPM package Message-ID: <1140020106.4225.6.camel@...37...> Hello there, Does anyone know where can I get a Gambas2 binary RPM package for CentOS/Redhat/Fedora (not sources)? Thanks a lot in advance. BR/Jeronimo From sourceforge-raindog2 at ...94... Wed Feb 15 17:26:20 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 15 Feb 2006 11:26:20 -0500 Subject: [Gambas-user] anybody have a parser In-Reply-To: <200602151207.12196.gambas@...1...> References: <200602141903.21963.jfabiani@...1109...> <200602150151.57760.sourceforge-raindog2@...94...> <200602151207.12196.gambas@...1...> Message-ID: <200602151126.20464.sourceforge-raindog2@...94...> On Wed February 15 2006 06:07, Benoit Minisini wrote: > P.S. I cannot ssh to the documentation server anymore :-/ That shouldn't have happened, but my business partner did put in a new firewall recently. You get connection refused, or connection timed out, or bad password? Rob From sourceforge-raindog2 at ...94... Wed Feb 15 17:25:02 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 15 Feb 2006 11:25:02 -0500 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <200602150001.14657.jfabiani@...1109...> References: <200602150001.14657.jfabiani@...1109...> Message-ID: <200602151125.02682.sourceforge-raindog2@...94...> On Wed February 15 2006 03:01, johnf wrote: > Is there a limit to the length of the string that a > connection.exec(string) can accept? Does it truncate? When I > pass a string with a length of 370 chars I think it is > truncating the string. 370 characters is way too short to be truncating a SQL query.... I've written MySQL queries that were like 4K. (Don't ask, it was ugly.) Does Postgres maybe have some logging facility so you can see what queries have been run? Rob From jfabiani at ...1109... Wed Feb 15 20:52:41 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 15 Feb 2006 11:52:41 -0800 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <200602151125.02682.sourceforge-raindog2@...94...> References: <200602150001.14657.jfabiani@...1109...> <200602151125.02682.sourceforge-raindog2@...94...> Message-ID: <200602151152.41344.jfabiani@...1109...> On Wednesday 15 February 2006 08:25, Rob Kudla wrote: > On Wed February 15 2006 03:01, johnf wrote: > > Is there a limit to the length of the string that a > > connection.exec(string) can accept? Does it truncate? When I > > pass a string with a length of 370 chars I think it is > > truncating the string. > > 370 characters is way too short to be truncating a SQL query.... > I've written MySQL queries that were like 4K. (Don't ask, it > was ugly.) > > Does Postgres maybe have some logging facility so you can see > what queries have been run? > > Rob It took a while but I figured out how to turn on the logging. So the postgres database engine sees everything but the "where" clause then I discovered I wasn't actually sending the "where" clause. Thanks for everyones help. So the programmer bites it again.... Still I did learn that Gambas does not have anyway to see the return messages. John From gambas at ...1... Wed Feb 15 21:00:03 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 15 Feb 2006 21:00:03 +0100 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <200602151152.41344.jfabiani@...1109...> References: <200602150001.14657.jfabiani@...1109...> <200602151125.02682.sourceforge-raindog2@...94...> <200602151152.41344.jfabiani@...1109...> Message-ID: <200602152100.03297.gambas@...1...> On Wednesday 15 February 2006 20:52, johnf wrote: > On Wednesday 15 February 2006 08:25, Rob Kudla wrote: > > On Wed February 15 2006 03:01, johnf wrote: > > > Is there a limit to the length of the string that a > > > connection.exec(string) can accept? Does it truncate? When I > > > pass a string with a length of 370 chars I think it is > > > truncating the string. > > > > 370 characters is way too short to be truncating a SQL query.... > > I've written MySQL queries that were like 4K. (Don't ask, it > > was ugly.) > > > > Does Postgres maybe have some logging facility so you can see > > what queries have been run? > > > > Rob > > It took a while but I figured out how to turn on the logging. So the > postgres database engine sees everything but the "where" clause then I > discovered I wasn't actually sending the "where" clause. Thanks for > everyones help. So the programmer bites it again.... Still I did learn > that Gambas does not have anyway to see the return messages. > John > To see the queries sent to the database server, set DB.Debug to TRUE. Regards, -- Benoit Minisini From jfabiani at ...1109... Wed Feb 15 21:21:50 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 15 Feb 2006 12:21:50 -0800 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <200602152100.03297.gambas@...1...> References: <200602150001.14657.jfabiani@...1109...> <200602151152.41344.jfabiani@...1109...> <200602152100.03297.gambas@...1...> Message-ID: <200602151221.51051.jfabiani@...1109...> On Wednesday 15 February 2006 12:00, Benoit Minisini wrote: > On Wednesday 15 February 2006 20:52, johnf wrote: > > On Wednesday 15 February 2006 08:25, Rob Kudla wrote: > > > On Wed February 15 2006 03:01, johnf wrote: > > > > Is there a limit to the length of the string that a > > > > connection.exec(string) can accept? Does it truncate? When I > > > > pass a string with a length of 370 chars I think it is > > > > truncating the string. > > > > > > 370 characters is way too short to be truncating a SQL query.... > > > I've written MySQL queries that were like 4K. (Don't ask, it > > > was ugly.) > > > > > > Does Postgres maybe have some logging facility so you can see > > > what queries have been run? > > > > > > Rob > > > > It took a while but I figured out how to turn on the logging. So the > > postgres database engine sees everything but the "where" clause then I > > discovered I wasn't actually sending the "where" clause. Thanks for > > everyones help. So the programmer bites it again.... Still I did learn > > that Gambas does not have anyway to see the return messages. > > John > > To see the queries sent to the database server, set DB.Debug to TRUE. > > Regards, It is true that if I had DB.Debug = true I might have seen the fact I was not sending the "where" clause. But does DB.Debug report any messages from database engine? Is there a way to read the return messages? John From gambas at ...1... Wed Feb 15 21:26:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 15 Feb 2006 21:26:46 +0100 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <200602151221.51051.jfabiani@...1109...> References: <200602150001.14657.jfabiani@...1109...> <200602152100.03297.gambas@...1...> <200602151221.51051.jfabiani@...1109...> Message-ID: <200602152126.46814.gambas@...1...> On Wednesday 15 February 2006 21:21, johnf wrote: > On Wednesday 15 February 2006 12:00, Benoit Minisini wrote: > > On Wednesday 15 February 2006 20:52, johnf wrote: > > > On Wednesday 15 February 2006 08:25, Rob Kudla wrote: > > > > On Wed February 15 2006 03:01, johnf wrote: > > > > > Is there a limit to the length of the string that a > > > > > connection.exec(string) can accept? Does it truncate? When I > > > > > pass a string with a length of 370 chars I think it is > > > > > truncating the string. > > > > > > > > 370 characters is way too short to be truncating a SQL query.... > > > > I've written MySQL queries that were like 4K. (Don't ask, it > > > > was ugly.) > > > > > > > > Does Postgres maybe have some logging facility so you can see > > > > what queries have been run? > > > > > > > > Rob > > > > > > It took a while but I figured out how to turn on the logging. So the > > > postgres database engine sees everything but the "where" clause then I > > > discovered I wasn't actually sending the "where" clause. Thanks for > > > everyones help. So the programmer bites it again.... Still I did > > > learn that Gambas does not have anyway to see the return messages. > > > John > > > > To see the queries sent to the database server, set DB.Debug to TRUE. > > > > Regards, > > It is true that if I had DB.Debug = true I might have seen the fact I was > not sending the "where" clause. But does DB.Debug report any messages from > database engine? Is there a way to read the return messages? > John > If the database engine returns an error, the error string is added to the gambas error message. Regards, -- Benoit Minisini From jfabiani at ...1109... Wed Feb 15 21:48:39 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 15 Feb 2006 12:48:39 -0800 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <200602152126.46814.gambas@...1...> References: <200602150001.14657.jfabiani@...1109...> <200602151221.51051.jfabiani@...1109...> <200602152126.46814.gambas@...1...> Message-ID: <200602151248.39811.jfabiani@...1109...> On Wednesday 15 February 2006 12:26, Benoit Minisini wrote: > On Wednesday 15 February 2006 21:21, johnf wrote: > > On Wednesday 15 February 2006 12:00, Benoit Minisini wrote: > > > On Wednesday 15 February 2006 20:52, johnf wrote: > > > > On Wednesday 15 February 2006 08:25, Rob Kudla wrote: > > > > > On Wed February 15 2006 03:01, johnf wrote: > > > > > > Is there a limit to the length of the string that a > > > > > > connection.exec(string) can accept? Does it truncate? When I > > > > > > pass a string with a length of 370 chars I think it is > > > > > > truncating the string. > > > > > > > > > > 370 characters is way too short to be truncating a SQL query.... > > > > > I've written MySQL queries that were like 4K. (Don't ask, it > > > > > was ugly.) > > > > > > > > > > Does Postgres maybe have some logging facility so you can see > > > > > what queries have been run? > > > > > > > > > > Rob > > > > > > > > It took a while but I figured out how to turn on the logging. So the > > > > postgres database engine sees everything but the "where" clause then > > > > I discovered I wasn't actually sending the "where" clause. Thanks > > > > for everyones help. So the programmer bites it again.... Still I > > > > did learn that Gambas does not have anyway to see the return > > > > messages. John > > > > > > To see the queries sent to the database server, set DB.Debug to TRUE. > > > > > > Regards, > > > > It is true that if I had DB.Debug = true I might have seen the fact I was > > not sending the "where" clause. But does DB.Debug report any messages > > from database engine? Is there a way to read the return messages? > > John > > If the database engine returns an error, the error string is added to the > gambas error message. > > Regards, I sort of knew that but I was hoping for something that told me how many records were effected, etc... Thanks John From jfabiani at ...1109... Thu Feb 16 06:22:21 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 15 Feb 2006 21:22:21 -0800 Subject: [Gambas-user] Line Continuation Symbol Message-ID: <200602152122.21347.jfabiani@...1109...> On another forum there was a suggestion that "+*-_" can be used as Line Continuation Symbols. Is this correct? When I try it does not seem to work. 1.9.24 John From karl at ...1303... Thu Feb 16 07:32:03 2006 From: karl at ...1303... (Karl Martindale) Date: Thu, 16 Feb 2006 17:32:03 +1100 Subject: [Gambas-user] Line Continuation Symbol In-Reply-To: <200602152122.21347.jfabiani@...1109...> References: <200602152122.21347.jfabiani@...1109...> Message-ID: <43F41C63.1070701@...1303...> I don't believe there's a need for a continuation char. You can break a string across lines like: foo = "This spans two" & "lines" -Karl. johnf wrote: > On another forum there was a suggestion that "+*-_" can be used as Line > Continuation Symbols. Is this correct? When I try it does not seem to work. > 1.9.24 > > John > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Feb 16 11:37:21 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 16 Feb 2006 11:37:21 +0100 Subject: [Gambas-user] Line Continuation Symbol In-Reply-To: <200602152122.21347.jfabiani@...1109...> References: <200602152122.21347.jfabiani@...1109...> Message-ID: <200602161137.21235.gambas@...1...> On Thursday 16 February 2006 06:22, johnf wrote: > On another forum there was a suggestion that "+*-_" can be used as Line > Continuation Symbols. Is this correct? When I try it does not seem to > work. 1.9.24 > > John > The rule is the following: if an operator cannot find its right operand on the current line, it automatically jumps to the next line. Regards, -- Benoit Minisini From jfabiani at ...1109... Thu Feb 16 16:55:17 2006 From: jfabiani at ...1109... (johnf) Date: Thu, 16 Feb 2006 07:55:17 -0800 Subject: [Gambas-user] Line Continuation Symbol In-Reply-To: <200602161137.21235.gambas@...1...> References: <200602152122.21347.jfabiani@...1109...> <200602161137.21235.gambas@...1...> Message-ID: <200602160755.17532.jfabiani@...1109...> On Thursday 16 February 2006 02:37, Benoit Minisini wrote: > The rule is the following: if an operator cannot find its right operand on > the current line, it automatically jumps to the next line What if the left hand operand is very long and the programmer would like to break it up on multi-lines? Actually, what is happening to me is I would like to have some formating to allow easy reading. IF Object.Class(tabControl) <> "TableView" AND Object.Class(tabControl) <> "ToolButton" AND Object.Class(tabControl) <> "TextLabel" AND Object.Class(tabControl) <> "GridView" AND Object.Class(tabControl) <> "Separator" THEN The above is one line. And I would like: IF Object.Class(tabControl) <> "TableView" AND Object.Class(tabControl) <> "ToolButton" AND Object.Class(tabControl) <> "TextLabel" AND Object.Class(tabControl) <> "GridView" AND Object.Class(tabControl) <> "Separator" THEN John From admin at ...1080... Fri Feb 17 13:54:14 2006 From: admin at ...1080... (Werner Staudacher) Date: Fri, 17 Feb 2006 13:54:14 +0100 Subject: [Gambas-user] QSettings: failed to open file '/etc/qt3/qt_plugins_3.3rc' Message-ID: <43F5C776.8000800@...1080...> Hi all Somebody knows what is the message "QSettings: failed to open file '/etc/qt3/qt_plugins_3.3rc'" in the direct-output-window when i start a project in gambas environment? The project runs then well so far. I am shure that i did not change any settings nor install/update any program. I use gambas 1.0.13 on a debian distro. The project uses gb, gb.qt and gb.qt.ext Thanks, Staudi From lordheavy at ...512... Fri Feb 17 14:34:01 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Fri, 17 Feb 2006 14:34:01 +0100 Subject: [Gambas-user] QSettings: failed to open file '/etc/qt3/qt_plugins_3.3rc' In-Reply-To: <43F5C776.8000800@...1080...> References: <43F5C776.8000800@...1080...> Message-ID: <200602171434.01127.lordheavy@...512...> Le Vendredi 17 F?vrier 2006 13:54, Werner Staudacher a ?crit?: > Hi all > > Somebody knows what is the message "QSettings: failed to open file > '/etc/qt3/qt_plugins_3.3rc'" in the direct-output-window when i start a > project in gambas environment? The project runs then well so far. > I am shure that i did not change any settings nor install/update any > program. > I use gambas 1.0.13 on a debian distro. > The project uses gb, gb.qt and gb.qt.ext > > Thanks, Staudi > It's a Qt problem, not a gambas problem. It failed to load some settings/config file. -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From mwebb at ...1362... Fri Feb 17 09:41:03 2006 From: mwebb at ...1362... (mike webb) Date: Fri, 17 Feb 2006 08:41:03 +0000 Subject: [Gambas-user] compiling interperter in windows Message-ID: <43F58C1F.8040409@...1362...> attempting to compile gambas interpreter in windows using mingw. tried the command ./configure --disable-x --disable-qt --disable-intl receiving the following errors/warnings WARNING: *** external internationalization library is disabled WARNING: *** external charset conversion libarary is disabled WARNING: *** external gettext libarary is disabled WARNING: *** QT component is disabled then the show stopper error: *** libX11 not found i'm not wanting to use the internationalization libarary or charset or gettext or qt or x. i'm just wanting to compile the interpreter. could you give me the exact configure command and options to perform this task ??? thank you. From jfabiani at ...1109... Fri Feb 17 18:40:48 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 17 Feb 2006 09:40:48 -0800 Subject: [Gambas-user] newbie dumb question Message-ID: <200602170940.48948.jfabiani@...1109...> Hi, I'd like to subclass a textbox and then use it in the visual windows editor. Just drop on a form. Is this possible? I.e use my special textbox with extra properties, etc... If you have used visual foxpro then you know I can do this all day. If it is possible is there an example anywhere? John From gambas at ...1229... Sat Feb 18 12:50:42 2006 From: gambas at ...1229... (Fabricio Santos) Date: Sat, 18 Feb 2006 12:50:42 +0100 Subject: [Gambas-user] Is Linux Skype done with Gambas? Message-ID: <1140263442.14711.3.camel@...37...> Viva a todos, The interface looks so similar in the look and feal... -fs From gambas at ...1... Sat Feb 18 13:08:52 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 18 Feb 2006 13:08:52 +0100 Subject: [Gambas-user] Is Linux Skype done with Gambas? In-Reply-To: <1140263442.14711.3.camel@...37...> References: <1140263442.14711.3.camel@...37...> Message-ID: <200602181308.53250.gambas@...1...> On Saturday 18 February 2006 12:50, Fabricio Santos wrote: > Viva a todos, > > The interface looks so similar in the look and feal... > > -fs > No idea. I don't think so. The look & feel of GUI comes from the QT library (if the gambas program don't use the gb.gtk component of course). Regards, -- Benoit Minisini From gambas at ...1... Sat Feb 18 13:10:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 18 Feb 2006 13:10:27 +0100 Subject: [Gambas-user] Is there a limit to exec string In-Reply-To: <200602151248.39811.jfabiani@...1109...> References: <200602150001.14657.jfabiani@...1109...> <200602152126.46814.gambas@...1...> <200602151248.39811.jfabiani@...1109...> Message-ID: <200602181310.28016.gambas@...1...> On Wednesday 15 February 2006 21:48, johnf wrote: > On Wednesday 15 February 2006 12:26, Benoit Minisini wrote: > > On Wednesday 15 February 2006 21:21, johnf wrote: > > > On Wednesday 15 February 2006 12:00, Benoit Minisini wrote: > > > > On Wednesday 15 February 2006 20:52, johnf wrote: > > > > > On Wednesday 15 February 2006 08:25, Rob Kudla wrote: > > > > > > On Wed February 15 2006 03:01, johnf wrote: > > > > > > > Is there a limit to the length of the string that a > > > > > > > connection.exec(string) can accept? Does it truncate? When I > > > > > > > pass a string with a length of 370 chars I think it is > > > > > > > truncating the string. > > > > > > > > > > > > 370 characters is way too short to be truncating a SQL query.... > > > > > > I've written MySQL queries that were like 4K. (Don't ask, it > > > > > > was ugly.) > > > > > > > > > > > > Does Postgres maybe have some logging facility so you can see > > > > > > what queries have been run? > > > > > > > > > > > > Rob > > > > > > > > > > It took a while but I figured out how to turn on the logging. So > > > > > the postgres database engine sees everything but the "where" clause > > > > > then I discovered I wasn't actually sending the "where" clause. > > > > > Thanks for everyones help. So the programmer bites it again.... > > > > > Still I did learn that Gambas does not have anyway to see the > > > > > return messages. John > > > > > > > > To see the queries sent to the database server, set DB.Debug to TRUE. > > > > > > > > Regards, > > > > > > It is true that if I had DB.Debug = true I might have seen the fact I > > > was not sending the "where" clause. But does DB.Debug report any > > > messages from database engine? Is there a way to read the return > > > messages? John > > > > If the database engine returns an error, the error string is added to the > > gambas error message. > > > > Regards, > > I sort of knew that but I was hoping for something that told me how many > records were effected, etc... Thanks > John > Number of affected records ? This is in the TODO list :-) -- Benoit Minisini From gambas at ...1... Sat Feb 18 13:11:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 18 Feb 2006 13:11:28 +0100 Subject: [Gambas-user] make package error In-Reply-To: <000801c6311a$a28eb510$a400a8c0@...1355...> References: <000801c6311a$a28eb510$a400a8c0@...1355...> Message-ID: <200602181311.28663.gambas@...1...> On Tuesday 14 February 2006 04:56, hendri wrote: > I build gambas app and run it and it's ok > But when I try to make a package the build's fail > > I'm using gambas 1.9.24 with fedora core 3. > > How can I fix this? > > Thanks > Making a package with the development IDE is deprecated. Do not use it! Regards, -- Benoit Minisini From gambas at ...1... Sat Feb 18 17:52:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 18 Feb 2006 17:52:51 +0100 Subject: [Gambas-user] Release of Gambas 1.9.25 Message-ID: <200602181752.51690.gambas@...1...> Banzai! There are two new important components in this version: * gb.image, that allows you to apply various effects on Image objects: - Adjust brightness, contrast, intensity. - Create gradients. - Flatten. - Fade. - Make it gray. - Desaturate. - Threshold. - Solarize. - Normalize. - Equalize. - Invert. - Emboss. - Edge. - Despeckle. - Charcoal. - OilPaint. - Blur. - Sharpen. - Spread. - Shade. - Swirl. - Wave. - Noise. - Implode. This component shoule be compatible with gb.qt, gb.gtk, and any other component that provide an image creator hook. * gb.db.form, that provides some data bound controls, i.e. controls that can display and edit database records automatically. THIS DEVELOPMENT IS SPONSORED (AND PAYED (I hope so :-))) BY GNULINEX AND THE SPANISH REGION OF EXTREMADURA. To Daniel Campos: * If you can send me a pretty logo of you for that... * The component relies on TableView, and so cannot be used by gb.gtk at the moment. Do you plan to make a TableView in gb.gtk? * I couldn't go to Malaga, because of a bad flu. IMPORTANT: This component is highly experimental yet! To test it: - Run the 'Database' example, and create a database named 'test', create the tables with the button 'Create', and fill them with the 'Fill' button. - Then, open the gb.db.form project in the source tree, and run it. You will see... If you cannot connect, check the database connection parameters in the Main module. In a few words, here are the principle: The DataSource control is a Container that is linked to a specific database table. Each data control inside the DataSource are automatically linked to it. IMPORTANT: the table must have a primary key. The DataBrowser control provides a little control panel to navigate through the DataSource record, and a list of the records of the DataSource. The DataControl is a control that allow to edit a specific field of the current DataSource record. The DataCombo is a control that allow to edit a field that is actually a key of another table. Instead of displaying the key, its goal is to display another field of the foreign table. The DataView is a list view of all records inside a DataSource. It is used internally by the DataBrowser. Note that DataSource can be imbricated. Then, the inner DataSource is constrained by the values of the primary key of the parent DataSource. This is used in the gb.db.form project example. Tell me what you think about that. There are many things to improve and debug yet... Otherwise, there are two important changes that can break your projects: * The RENAME instruction was... renamed, as MOVE. * The Load() method of Image, Picture and Drawing classes is now static, and returns a newly created object. Finally, here is the changelog: --8<-------------------------------------------------------------------------- DEVELOPMENT ENVIRONMENT * BUG: Translation of component names are used now. * NEW: String[] properties are managed now. * BUG: Selecting all controls on a form updates the property window correctly now. * BUG: Toolbox panels are intelligently sorted now. * BUG: Big images are now stretched in the project treeview. INTERPRETER * NEW: The image and picture hooks syntax has changed. * NEW: The image and picture API has been enhanced. * NEW: _compare is a new special method used for comparing an object with another during a sort. * NEW: System.User now returns the same static object as the User class. * NEW: String[].Join() now can take an extra optional argument that is an escape string added to the beginning and the end of each joined element. * BUG: The event inheritance now works correctly with interpreted classes * BUG: Calling a method on an anonymous reference now works correctly if the called method does not always have the same number of arguments. * NEW: Implementation of the new IS operator (see below). * BUG: The Subst() instruction now interprets the '&&' sequence as a single '&'. * NEW: Path names now interprets the '~' character like the shell does. * BUG: INPUT now works correctly with more than one argument. * BUG: The debugger now prints string expressions without corrupting memory anymore. COMPILER * NEW: The RENAME/AS instruction was replaced by the MOVE/TO instruction. * NEW: Class names are detected at compilation time now. * BUG: When declaring several local variables on the same line, each one can have its own initialization expression now. * BUG: Internal subroutines, i.e. those that are associated with an instruction, cannot be called directly anymore. * NEW: The syntax '[]' now returns NULL. * NEW: A new subroutine named Comp(), that compare two strings. * NEW: IS is a new operator that returns if an object is an instance of a specified class, or one of its child classes. EVAL COMPONENT * BUG: Now class names are displayed with the same color as datatypes. DATABASE COMPONENT * NEW: The Firebird driver was merged into the source tree. * BUG: The current database is now correctly tracked, and cannot point at an already freed object anymore. * BUG: Connection.Version now correctly checks that the database is opened. * NEW: Connection.Opened returns if a connection is opened. * NEW: Connection.Limit() is a new method that makes the next SQL request only return a specified number of rows. This method returns the connection object, so that you can use the following syntax: DB.Limit(X).Exec(...) The limit is reset to infinity once used. * NEW: Information on how to limit the result of a SQL query is filled by the open_database() driver function. * BUG: Connection.Delete() does not leak memory anymore. * NEW: Writing to a serial field is silently ignored now. NETWORKING COMPONENT * BUG: Now ServerSocket can accept more than five connections without crashing anymore. * NEW: ServerSocket is now enumerable, and returns each connected socket. * NEW: ServerSocket.Count returns the number of connected sockets. QT COMPONENT * NEW: Image.Load() is now a static method that returns a newly created image from a file. * NEW: Picture.Load() is now a static method that returns a newly created picture from a file. * NEW: Drawing.Load() is now a static method that returns a newly created drawing from a file. * NEW: The Image constructor now takes an extra optional parameter that indicates if the image has an alpha channel. * NEW: Image.Transparent is a new property that indicates if an image has an alpha channel. * NEW: Image.Depth is read-only now. * NEW: Label.Padding is a new property that represents the pixel padding between the label border and the label text. * BUG: The Label.AutoResize property was enabled again, but is now TRUE by default. * BUG: Image conversion methods were fixed. GTK+ COMPONENT * NEW: Image.Load() is now a static method that returns a newly created image from a file. * NEW: Picture.Load() is now a static method that returns a newly created image from a file. * BUG: The HSV/RGB color conversion method now use the same value range than the QT component. * BUG: Loaded images are automatically converted to a 32-bits per pixel format. * BUG: Image conversion methods were fixed. PCRE COMPONENT * BUG: The PCRE component should now compile with older versions of libpcre. IMAGE COMPONENT * NEW: This is a new component for applying many various effects on images. The effects source code was ported from the KDE libkdefx library, which includes itself some ImageMagick algorithms, and from the KolourPaint program. DATABASE FORM COMPONENT * NEW: This component implements data bound controls. It provides the following new controls: DataSource, DataBrowser, DataView, DataControl and DataCombo. It is highly experimental at the moment. --8<-------------------------------------------------------------------------- Enjoy it! -- Benoit Minisini From gambas at ...1... Sat Feb 18 20:17:32 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 18 Feb 2006 20:17:32 +0100 Subject: [Gambas-user] Release of Gambas 1.9.25 In-Reply-To: <200602181752.51690.gambas@...1...> References: <200602181752.51690.gambas@...1...> Message-ID: <200602182017.32279.gambas@...1...> On Saturday 18 February 2006 17:52, Benoit Minisini wrote: > Banzai! > > [...] I forgot something in the changelog! The old deprecated syntax "OPEN xxx AS file" is not supported anymore. You must use "file = OPEN xxx" instead. Regards, -- Benoit Minisini From a.grandi at ...626... Sun Feb 19 00:37:29 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Sun, 19 Feb 2006 00:37:29 +0100 Subject: [Gambas-user] Gambas 1.9.25 package for Ubuntu 5.10 (NO FLAME PLEASE) Message-ID: <9cf0f07b0602181537h585fc86fu@...627...> Hi :) as usual... I made the package for Ubuntu 5.10 This package does NOT include these components: - firebird driver - postgres driver - ldap You can find it here: http://www.ptlug.org/download/packages/gambas2_1.9.25-1_i386.deb p.s: this package is provided AS IS. Who is interested in it, can use it, who is not, please don't use it. Thanks. Please don't flame :) Enjoy! From dcamposf at ...626... Sun Feb 19 11:47:35 2006 From: dcamposf at ...626... (Daniel Campos) Date: Sun, 19 Feb 2006 11:47:35 +0100 Subject: [Gambas-user] Gambas 1.9.25 package for Ubuntu 5.10 (NO FLAME PLEASE) In-Reply-To: <9cf0f07b0602181537h585fc86fu@...627...> References: <9cf0f07b0602181537h585fc86fu@...627...> Message-ID: <7259b5ae0602190247u5abd14edo@...627...> OK, we won't give you more ideas or comments in the fuure :-) 2006/2/19, Andrea Grandi : > > Hi :) > > as usual... I made the package for Ubuntu 5.10 > This package does NOT include these components: > > - firebird driver > - postgres driver > - ldap > > You can find it here: > http://www.ptlug.org/download/packages/gambas2_1.9.25-1_i386.deb > > p.s: this package is provided AS IS. Who is interested in it, can use > it, who is not, please don't use it. Thanks. > > Please don't flame :) > Enjoy! > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sun Feb 19 17:25:33 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 19 Feb 2006 17:25:33 +0100 Subject: [Gambas-user] Release of Gambas 1.9.25 In-Reply-To: <200602182017.32279.gambas@...1...> References: <200602181752.51690.gambas@...1...> <200602182017.32279.gambas@...1...> Message-ID: <200602191725.33600.gambas@...1...> On Saturday 18 February 2006 20:17, Benoit Minisini wrote: > On Saturday 18 February 2006 17:52, Benoit Minisini wrote: > > Banzai! > > > > [...] > > I forgot something in the changelog! > > The old deprecated syntax "OPEN xxx AS file" is not supported anymore. You > must use "file = OPEN xxx" instead. > > Regards, I forgot something again... The Result.Move*() methods now return TRUE when no record is available anymore. Until now, they did the contrary, and it was not want I wanted. The Result methods of the stable version of Gambas do behave correctly. Sorry for the inconvenience and for the breaking of your projects... But AFAIK nobody noticed this difference! :-) Regards, -- Benoit Minisini From gambas at ...1... Sun Feb 19 17:29:41 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 19 Feb 2006 17:29:41 +0100 Subject: [Gambas-user] Line Continuation Symbol In-Reply-To: <200602160755.17532.jfabiani@...1109...> References: <200602152122.21347.jfabiani@...1109...> <200602161137.21235.gambas@...1...> <200602160755.17532.jfabiani@...1109...> Message-ID: <200602191729.41201.gambas@...1...> On Thursday 16 February 2006 16:55, johnf wrote: > On Thursday 16 February 2006 02:37, Benoit Minisini wrote: > > The rule is the following: if an operator cannot find its right operand > > on the current line, it automatically jumps to the next line > > What if the left hand operand is very long and the programmer would like to > break it up on multi-lines? Actually, what is happening to me is I would > like to have some formating to allow easy reading. > > IF Object.Class(tabControl) <> "TableView" AND Object.Class(tabControl) <> > "ToolButton" AND Object.Class(tabControl) <> "TextLabel" AND > Object.Class(tabControl) <> "GridView" AND Object.Class(tabControl) <> > "Separator" THEN > > The above is one line. > > And I would like: > IF Object.Class(tabControl) <> "TableView" AND > Object.Class(tabControl) <> "ToolButton" AND > Object.Class(tabControl) <> "TextLabel" AND > Object.Class(tabControl) <> "GridView" AND > Object.Class(tabControl) <> "Separator" THEN > John > This syntax works, try it :-) -- Benoit Minisini From gambas at ...1... Sun Feb 19 17:39:44 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 19 Feb 2006 17:39:44 +0100 Subject: [Gambas-user] problem install gambas, fedora core 3 In-Reply-To: <1139993789.8377.12.camel@...37...> References: <200601301000.13496.sourceforge-raindog2@...94...> <1139993789.8377.12.camel@...37...> Message-ID: <200602191739.44886.gambas@...1...> On Wednesday 15 February 2006 09:56, Jeronimo Sanchez wrote: > You can install Gambas from an RPM package using the following > repository: > > http://centos.karan.org/el4/extras/stable/i386/RPMS > > I used it for CentOS 4.2. As far as I know, this repository is also > compatible with Redhat EL4 and Fedora, so you can give it a try and > let's us know the result. In http://centos.karan.org you can get > detailed instructions on how to configure yum in order to install > packages from this repository. > > BTW: last available version is gambas-1.0.13. > > Regards/Jeronimo > I added this information on the web site. Regards, -- Benoit Minisini From mwebb at ...1362... Sun Feb 19 14:10:12 2006 From: mwebb at ...1362... (mike webb) Date: Sun, 19 Feb 2006 13:10:12 +0000 Subject: [Gambas-user] compiling interperter in windows In-Reply-To: <43F58C1F.8040409@...1362...> References: <43F58C1F.8040409@...1362...> Message-ID: <43F86E34.4030602@...1362...> mike webb wrote: > attempting to compile gambas interpreter in windows using mingw. > tried the command > ./configure --disable-x --disable-qt --disable-intl > receiving the following errors/warnings > > WARNING: *** external internationalization library is disabled > WARNING: *** external charset conversion libarary is disabled > WARNING: *** external gettext libarary is disabled > WARNING: *** QT component is disabled > > then the show stopper > > error: *** libX11 not found > > i'm not wanting to use the internationalization libarary or charset or > gettext or qt or x. i'm just wanting to compile the interpreter. > could you give me the exact configure command and options to perform > this task ??? > thank you. > > bummer, guess no one knows how to compile just the interpeter. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Feb 19 20:32:58 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 19 Feb 2006 20:32:58 +0100 Subject: [Gambas-user] compiling interperter in windows In-Reply-To: <43F58C1F.8040409@...1362...> References: <43F58C1F.8040409@...1362...> Message-ID: <200602192032.58266.gambas@...1...> On Friday 17 February 2006 09:41, mike webb wrote: > attempting to compile gambas interpreter in windows using mingw. > tried the command > ./configure --disable-x --disable-qt --disable-intl > receiving the following errors/warnings > > WARNING: *** external internationalization library is disabled > WARNING: *** external charset conversion libarary is disabled > WARNING: *** external gettext libarary is disabled > WARNING: *** QT component is disabled > > then the show stopper > > error: *** libX11 not found > > i'm not wanting to use the internationalization libarary or charset or > gettext or qt or x. i'm just wanting to compile the interpreter. > could you give me the exact configure command and options to perform > this task ??? > thank you. > > Which version do you try to compile? -- Benoit Minisini From daniel at ...1364... Mon Feb 20 02:00:45 2006 From: daniel at ...1364... (Daniel) Date: Mon, 20 Feb 2006 02:00:45 +0100 Subject: [Gambas-user] dim var1, var2, ... as OneObject !!! Message-ID: <43F914BD.1040706@...1364...> hello with gambas 1.9.25 this code don't work dim var1, var2, var3 as OneObject (tested with Result and ResultField) and now if i do var1+"." the context help don't work !!! daniel From sourceforge-raindog2 at ...94... Mon Feb 20 02:02:49 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 19 Feb 2006 20:02:49 -0500 Subject: [Gambas-user] compiling interperter in windows In-Reply-To: <43F86E34.4030602@...1362...> References: <43F58C1F.8040409@...1362...> <43F86E34.4030602@...1362...> Message-ID: <200602192002.50131.sourceforge-raindog2@...94...> On Sun February 19 2006 08:10, mike webb wrote: > bummer, guess no one knows how to compile just the > interpeter. Benoit might, but he doesn't post every day. You should give him more time to respond. Rob From rohnny at ...1248... Mon Feb 20 06:55:59 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Mon, 20 Feb 2006 06:55:59 +0100 Subject: [Gambas-user] Re:dim var1, var2, ... as OneObject !!! In-Reply-To: <20060220040901.3C34E88C35@...763...> References: <20060220040901.3C34E88C35@...763...> Message-ID: <43F959EF.70307@...1248...> ttlesaigon.be> < < * dim var1, var2, ... as OneObject !!!* < < 2006-02-19 17:01 < < < < < < hello Hi everyone, Can anyone point me in the right direction please, ( I don't have a clue). I am a long standing Delphi programmer - and have written lots of quite sizable applications, but I actually quite dislike the operating system upon which it runs. I would love to be able to do as much on Xandros , but I think that is a /long way off./ Gambas looks like it is headed in the right direction, but I am having hells own trouble getting my head around database connection of any kind- mysql or whatever. ( I had more than a little trouble getting Gambas 1.9.24 to work on Xandros- but it is up and running) Thinking that it might help I installed XAMPP php,perl,mysql, etc -- But I am - still in the dark - any connections I try just fail-- sorry to be so thick. -- Regards Llew Ashdown -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lucris.vcf Type: text/x-vcard Size: 179 bytes Desc: not available URL: From jfabiani at ...1109... Mon Feb 20 07:38:32 2006 From: jfabiani at ...1109... (johnf) Date: Sun, 19 Feb 2006 22:38:32 -0800 Subject: [Gambas-user] Database Access In-Reply-To: <43F95DAB.6090208@...1366...> References: <43F95DAB.6090208@...1366...> Message-ID: <200602192238.32870.jfabiani@...1109...> On Sunday 19 February 2006 22:11, Llew Ashdown wrote: > Hi everyone, > Can anyone point me in the right direction please, ( I don't have a clue). > I am a long standing Delphi programmer - and have written lots of quite > sizable applications, but I actually quite dislike the operating system > upon which it runs. > I would love to be able to do as much on Xandros , but I think that is a > /long way off./ > > Gambas looks like it is headed in the right direction, but I am having > hells own trouble getting my head around database connection of any > kind- mysql or whatever. > ( I had more than a little trouble getting Gambas 1.9.24 to work on > Xandros- but it is up and running) > Thinking that it might help I installed XAMPP php,perl,mysql, etc -- > But I am - still in the dark - any connections I try just fail-- sorry > to be so thick. Show us your code. Maybe we can then help. Also take a look at the database example. John From eilert-sprachen at ...221... Mon Feb 20 08:21:48 2006 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 20 Feb 2006 08:21:48 +0100 Subject: [Gambas-user] Date Picker locale? Message-ID: <43F96E0C.40301@...221...> Moin, The Date Picker doesn't care about locale, does it? It only shows international date and English texts here. Is there a way to make it look more German? ;-) Thanks for your help. Rolf From gambas at ...1... Mon Feb 20 10:13:02 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 20 Feb 2006 10:13:02 +0100 Subject: [Gambas-user] Date Picker locale? In-Reply-To: <43F96E0C.40301@...221...> References: <43F96E0C.40301@...221...> Message-ID: <200602201013.02888.gambas@...1...> On Monday 20 February 2006 08:21, Eilert wrote: > Moin, > > The Date Picker doesn't care about locale, does it? It only shows > international date and English texts here. Is there a way to make it > look more German? ;-) > > Thanks for your help. > > Rolf > DatePicker is a KDE widget. It seems that every label is translated, but that the entry widget that displays the date in only in english format. I think I forgot to initialize something in the KDE libraries... But what? :-) Regards, -- Benoit Minisini From lucris at ...1366... Mon Feb 20 10:14:19 2006 From: lucris at ...1366... (Llew Ashdown) Date: Mon, 20 Feb 2006 19:14:19 +1000 Subject: [Gambas-user] Database Access In-Reply-To: <200602192238.32870.jfabiani@...1109...> References: <43F95DAB.6090208@...1366...> <200602192238.32870.jfabiani@...1109...> Message-ID: <43F9886B.9080704@...1366...> johnf wrote: >On Sunday 19 February 2006 22:11, Llew Ashdown wrote: > > >>Hi everyone, >>Can anyone point me in the right direction please, ( I don't have a clue). >>I am a long standing Delphi programmer - and have written lots of quite >>sizable applications, but I actually quite dislike the operating system >>upon which it runs. >>I would love to be able to do as much on Xandros , but I think that is a >>/long way off./ >> >>Gambas looks like it is headed in the right direction, but I am having >>hells own trouble getting my head around database connection of any >>kind- mysql or whatever. >>( I had more than a little trouble getting Gambas 1.9.24 to work on >>Xandros- but it is up and running) >>Thinking that it might help I installed XAMPP php,perl,mysql, etc -- >>But I am - still in the dark - any connections I try just fail-- sorry >>to be so thick. >> >> >Show us your code. Maybe we can then help. Also take a look at the database >example. >John > >That's one of the problems, the (Database) example won't even work. > > The problem is much lower down than you are thinking-- I don't have any code. IE in delphi (or dbisam) a *database* is just any directory. a table is any dbisam table within that directory.(so simple)no user no password. I simply create that table or those tables within that directory and point the components to it -- done. Just what is supposed to go in these boxes ? Image of Data setup Type (I can Sellect) Ok---- What is Host? ( I have Tried http://localhost) to no effect What is Database? (Is this simply a directory, and if so which one will work for mysql -- an so on) I am not even sure if I need to specify myself as user or some linux default. And can I use any password.( I imagine so ) very sorry ---- I did say I know *nothing* -- I cannot get the first toe in the water. I am not having any trouble with most other things about Gambas, in fact it all appears to work great. Thanks again. >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- Regards Llew Ashdown -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot7.png Type: image/png Size: 16961 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lucris.vcf Type: text/x-vcard Size: 193 bytes Desc: not available URL: From gambas at ...1... Mon Feb 20 10:17:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 20 Feb 2006 10:17:27 +0100 Subject: [Gambas-user] dim var1, var2, ... as OneObject !!! In-Reply-To: <43F914BD.1040706@...1364...> References: <43F914BD.1040706@...1364...> Message-ID: <200602201017.28012.gambas@...1...> On Monday 20 February 2006 02:00, Daniel wrote: > hello > with gambas 1.9.25 this code don't work > dim var1, var2, var3 as OneObject (tested with Result and ResultField) > and now if i do var1+"." the context help don't work !!! > > daniel > The poor context help doesn't understand the new DIM syntax yet... Regards, -- Benoit Minisini From neil at ...233... Mon Feb 20 11:12:02 2006 From: neil at ...233... (neil lewis) Date: Mon, 20 Feb 2006 10:12:02 +0000 Subject: [Gambas-user] Database Access In-Reply-To: <43F9886B.9080704@...1366...> References: <43F95DAB.6090208@...1366...> <200602192238.32870.jfabiani@...1109...> <43F9886B.9080704@...1366...> Message-ID: <43F995F2.6000104@...233...> Hi Llew, Hope I can provide some help here. First, it's good that you have given examples of how you have set up databases for use with your previous Delphi programs, because that immediately points to the cause of some of your problems. I take it from your post that you are new to Linux as a whole, so I can understand your confusion. Mostly, the problem for newbies is the realisation that Linux is desiged from the ground up as a networked system and so almost all services in Linux are run on a client/server basis. This is true for things as diverse as the X-server (graphics system), ALSA (sound) and yes, databases such as MySQL/PostgreSQL. You first have to have a running server before you can connect a client to it. Obviously, this is a little more complex to set up than a simpler system which assumes that everything you need is located on your own PC, but the huge advantage is that no assumptions are made about the physical locations of the server or client. Once set up, the system will work just as well on a one PC as it will on a LAN, WAN or indeed the Internet and the actual physical arrangement will be transparent in most cases. Sorry to go on a bit about this, but it's pretty fundamental to understanding why Linux so often does stuff differently to Windows. Having got that out of the way, some of your problems should now make sense. First, you must install, configure and start a (for example) MySQL database server. This can be on te same PC you want to use as the client. With that going, you can create a database on the server. (I'd suggest that you also install phpMyAdmin as it's probably the easiest way to administer a MySQL server, inbcluding adding databases, adding and manipulating tables and handling backup/restore of data among other functions. You say you already have php installed, so I guess you also already have a web server (eg Apache.) installed and working. These will be needed to use phpMyAdmin.) When you install MySQL you will need to run a couple of console commands to set up the initial access permissions for the root user. Your ditribution should provde details. If not, either check the (excellent) documentation on the MySQL web site or let me know if you have a problem. With your MySQL server functioning and a database created, you are ready to make a connectin to it from Gambas or any other program which supports MySQL connections. The Host is the address of the computer where the MySQL server is located. (or it's name if you have added it to your /etc/hosts file or have a nameserver running) The user is the MySQL user name you have specified in your MySQL configuration as having rights to access the database in question. The password is the MySQL password associated with the MySQL user, also specified in the configuration. All the above settings can be configured easily from the phpMyAdmin interface if you are unused to a command line envirnment. Once you put the correct into into the connection dialog, you should connect with no problems. I'm sure al of the above sounds horrendous - I know it did to me as a newbie a couple of years ago - but honestly, once you have MySQL working it's realy very easy to use, very powerful and very fast. Not only that, but if you later get into web database applications such as dynamic websites, then you will quickly discover that not only do most hosts provide MySQL databases, but most of them also use badged versions of phpMyAdmin for user administration. All the best, Neil Lewis (photobod), London. Llew Ashdown wrote: > johnf wrote: >> On Sunday 19 February 2006 22:11, Llew Ashdown wrote: >> >>> Hi everyone, >>> Can anyone point me in the right direction please, ( I don't have a clue). >>> I am a long standing Delphi programmer - and have written lots of quite >>> sizable applications, but I actually quite dislike the operating system >>> upon which it runs. >>> I would love to be able to do as much on Xandros , but I think that is a >>> /long way off./ >>> >>> Gambas looks like it is headed in the right direction, but I am having >>> hells own trouble getting my head around database connection of any >>> kind- mysql or whatever. >>> ( I had more than a little trouble getting Gambas 1.9.24 to work on >>> Xandros- but it is up and running) >>> Thinking that it might help I installed XAMPP php,perl,mysql, etc -- >>> But I am - still in the dark - any connections I try just fail-- sorry >>> to be so thick. >>> >> Show us your code. Maybe we can then help. Also take a look at the database >> example. >> John >> >> That's one of the problems, the (Database) example won't even work. >> > The problem is much lower down than you are thinking-- I don't have > any code. > IE in delphi (or dbisam) a *database* is just any directory. > a table is any dbisam table within that directory.(so simple)no user > no password. > I simply create that table or those tables within that directory and > point the components to it -- done. > > Just what is supposed to go in these boxes ? > Image of Data setup > > Type (I can Sellect) Ok---- > What is Host? ( I have Tried http://localhost) to no effect > What is Database? (Is this simply a directory, and if so which one > will work for mysql -- an so on) > I am not even sure if I need to specify myself as user or some linux > default. > And can I use any password.( I imagine so ) > very sorry ---- > I did say I know *nothing* -- I cannot get the first toe in the water. > > I am not having any trouble with most other things about Gambas, in > fact it all appears to work great. > > Thanks again. > > > > > >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > -- > Regards > > Llew Ashdown > From lucris at ...1366... Mon Feb 20 13:16:14 2006 From: lucris at ...1366... (Llew Ashdown) Date: Mon, 20 Feb 2006 22:16:14 +1000 Subject: [Gambas-user] Database Access In-Reply-To: <43F995F2.6000104@...233...> References: <43F95DAB.6090208@...1366...> <200602192238.32870.jfabiani@...1109...> <43F9886B.9080704@...1366...> <43F995F2.6000104@...233...> Message-ID: <43F9B30E.7070308@...1366...> Niel, Thanks heaps for taking the time to give me this in depth detail. You have me tagged (almost) exactly. I actually work a little with PhpMyadmin to modify some of the data on the website I administer a full post nuke site, for DanceSport Queensland. dsq.org.au And I have Installed a local server on my Linux machine which has phpMyadmin abilities and and full php perl, mysql etc ( and I can access this on this machine or my network with http://localhost.) I believe you have given me the rest of the keys I need to understand what I have already been doing, and to probably interface with the data system that Gambas is using. It will take me a little time to get my head around it. But again thanks heaps. I will be back in a day or 2, hopefully with a good outcome. Regards Llew neil lewis wrote: >Hi Llew, > >Hope I can provide some help here. > >First, it's good that you have given examples of how you have set up >databases for use with your previous Delphi programs, because that >immediately points to the cause of some of your problems. > >I take it from your post that you are new to Linux as a whole, so I can >understand your confusion. Mostly, the problem for newbies is the >realisation that Linux is desiged from the ground up as a networked >system and so almost all services in Linux are run on a client/server >basis. This is true for things as diverse as the X-server (graphics >system), ALSA (sound) and yes, databases such as MySQL/PostgreSQL. You >first have to have a running server before you can connect a client to >it. Obviously, this is a little more complex to set up than a simpler >system which assumes that everything you need is located on your own PC, >but the huge advantage is that no assumptions are made about the >physical locations of the server or client. Once set up, the system will >work just as well on a one PC as it will on a LAN, WAN or indeed the >Internet and the actual physical arrangement will be transparent in most >cases. > >Sorry to go on a bit about this, but it's pretty fundamental to >understanding why Linux so often does stuff differently to Windows. > >Having got that out of the way, some of your problems should now make >sense. First, you must install, configure and start a (for example) >MySQL database server. This can be on te same PC you want to use as the >client. With that going, you can create a database on the server. (I'd >suggest that you also install phpMyAdmin as it's probably the easiest >way to administer a MySQL server, inbcluding adding databases, adding >and manipulating tables and handling backup/restore of data among other >functions. You say you already have php installed, so I guess you also >already have a web server (eg Apache.) installed and working. These will >be needed to use phpMyAdmin.) When you install MySQL you will need to >run a couple of console commands to set up the initial access >permissions for the root user. Your ditribution should provde details. >If not, either check the (excellent) documentation on the MySQL web site >or let me know if you have a problem. > >With your MySQL server functioning and a database created, you are ready >to make a connectin to it from Gambas or any other program which >supports MySQL connections. >The Host is the address of the computer where the MySQL server is >located. (or it's name if you have added it to your /etc/hosts file or >have a nameserver running) >The user is the MySQL user name you have specified in your MySQL >configuration as having rights to access the database in question. >The password is the MySQL password associated with the MySQL user, also >specified in the configuration. > >All the above settings can be configured easily from the phpMyAdmin >interface if you are unused to a command line envirnment. > >Once you put the correct into into the connection dialog, you should >connect with no problems. > >I'm sure al of the above sounds horrendous - I know it did to me as a >newbie a couple of years ago - but honestly, once you have MySQL working >it's realy very easy to use, very powerful and very fast. Not only that, >but if you later get into web database applications such as dynamic >websites, then you will quickly discover that not only do most hosts >provide MySQL databases, but most of them also use badged versions of >phpMyAdmin for user administration. > >All the best, > >Neil Lewis (photobod), London. > > >Llew Ashdown wrote: > > >>johnf wrote: >> >> >>>On Sunday 19 February 2006 22:11, Llew Ashdown wrote: >>> >>> >>> >>>>Hi everyone, >>>>Can anyone point me in the right direction please, ( I don't have a clue). >>>>I am a long standing Delphi programmer - and have written lots of quite >>>>sizable applications, but I actually quite dislike the operating system >>>>upon which it runs. >>>>I would love to be able to do as much on Xandros , but I think that is a >>>>/long way off./ >>>> >>>>Gambas looks like it is headed in the right direction, but I am having >>>>hells own trouble getting my head around database connection of any >>>>kind- mysql or whatever. >>>>( I had more than a little trouble getting Gambas 1.9.24 to work on >>>>Xandros- but it is up and running) >>>>Thinking that it might help I installed XAMPP php,perl,mysql, etc -- >>>>But I am - still in the dark - any connections I try just fail-- sorry >>>>to be so thick. >>>> >>>> >>>> >>>Show us your code. Maybe we can then help. Also take a look at the database >>>example. >>>John >>> >>>That's one of the problems, the (Database) example won't even work. >>> >>> >>> >>The problem is much lower down than you are thinking-- I don't have >>any code. >>IE in delphi (or dbisam) a *database* is just any directory. >>a table is any dbisam table within that directory.(so simple)no user >>no password. >>I simply create that table or those tables within that directory and >>point the components to it -- done. >> >>Just what is supposed to go in these boxes ? >>Image of Data setup >> >>Type (I can Sellect) Ok---- >>What is Host? ( I have Tried http://localhost) to no effect >>What is Database? (Is this simply a directory, and if so which one >>will work for mysql -- an so on) >>I am not even sure if I need to specify myself as user or some linux >>default. >>And can I use any password.( I imagine so ) >>very sorry ---- >>I did say I know *nothing* -- I cannot get the first toe in the water. >> >>I am not having any trouble with most other things about Gambas, in >>fact it all appears to work great. >> >>Thanks again. >> >> >> >> >> >> >> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >>>for problems? Stop! Download the new AJAX search engine that makes >>>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >>>_______________________________________________ >>>Gambas-user mailing list >>>Gambas-user at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >>> >>-- >>Regards >> >>Llew Ashdown >> >> >> > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- Regards Llew Ashdown -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lucris.vcf Type: text/x-vcard Size: 193 bytes Desc: not available URL: From mwebb at ...1362... Mon Feb 20 07:54:50 2006 From: mwebb at ...1362... (mike webb) Date: Mon, 20 Feb 2006 06:54:50 +0000 Subject: [Gambas-user] compiling interperter in windows In-Reply-To: <200602192032.58266.gambas@...1...> References: <43F58C1F.8040409@...1362...> <200602192032.58266.gambas@...1...> Message-ID: <43F967BA.9010008@...1362...> Benoit Minisini wrote: >On Friday 17 February 2006 09:41, mike webb wrote: > > >>attempting to compile gambas interpreter in windows using mingw. >>tried the command >>./configure --disable-x --disable-qt --disable-intl >>receiving the following errors/warnings >> >>WARNING: *** external internationalization library is disabled >>WARNING: *** external charset conversion libarary is disabled >>WARNING: *** external gettext libarary is disabled >>WARNING: *** QT component is disabled >> >>then the show stopper >> >>error: *** libX11 not found >> >>i'm not wanting to use the internationalization libarary or charset or >>gettext or qt or x. i'm just wanting to compile the interpreter. >>could you give me the exact configure command and options to perform >>this task ??? >>thank you. >> >> >> >> > >Which version do you try to compile? > >version 1.0.14 > willing to try to compile which every version you feel has the best chance, won't be used for production. From daniel at ...1364... Mon Feb 20 16:32:25 2006 From: daniel at ...1364... (Daniel) Date: Mon, 20 Feb 2006 16:32:25 +0100 Subject: [Gambas-user] dim var1, var2, ... as OneObject !!! In-Reply-To: <200602201017.28012.gambas@...1...> References: <43F914BD.1040706@...1364...> <200602201017.28012.gambas@...1...> Message-ID: <43F9E109.5010309@...1364...> Benoit Minisini wrote: >On Monday 20 February 2006 02:00, Daniel wrote: > > >>hello >>with gambas 1.9.25 this code don't work >>dim var1, var2, var3 as OneObject (tested with Result and ResultField) >>and now if i do var1+"." the context help don't work !!! >> >>daniel >> >> >> > >The poor context help doesn't understand the new DIM syntax yet... > >Regards, > > > ok thank's daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Mon Feb 20 17:23:48 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 20 Feb 2006 11:23:48 -0500 Subject: [Gambas-user] Database Access In-Reply-To: <43F9886B.9080704@...1366...> References: <43F95DAB.6090208@...1366...> <200602192238.32870.jfabiani@...1109...> <43F9886B.9080704@...1366...> Message-ID: <200602201123.49115.sourceforge-raindog2@...94...> On Mon February 20 2006 04:14, Llew Ashdown wrote: > IE in delphi (or dbisam) a *database* is just any directory. > a table is any dbisam table within that directory.(so > simple)no user no password. > I simply create that table or those tables within that > directory and point the components to it -- done. OK, you've been using file-based databases, whereas MySQL and Postgres are client/server-based databases (meaning the database can be on another computer if you want.) Client/server databases are pretty much required for any major database application, even in Delphi, because of the flexibility and security they allow. Anytime you want to have people on two or more computers updating the same database, it has to be client/server. But if you've been using file-based databases already, and they work fine for your purposes, try selecting Sqlite as the database type because that's what Sqlite is. I think the "host" is then the path to the directory full of database files, and "username" and "password" can be left blank. You'll need to create those files, either using the sqlite3 program or in the Gambas Database Manager, prior to running your program (it's possible to write your program to create the databases at runtime, but since you're still new to Gambas I'd say worry about that later.) Rob From maillists at ...1367... Mon Feb 20 20:43:56 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Mon, 20 Feb 2006 11:43:56 -0800 Subject: [Gambas-user] Static executibles Message-ID: <1140464636.17584.0.camel@...1368...> About a year ago I switched all my desktops from Windows to Fedora 3 & 4 with considerable success. Now that I've become familiar with Linux I started doing a little programming. I'm familiar with MSVB so coming across Gambas was a nice surprise. It has a lot of incredible features that make programming in Linux a breeze. One thing I did like about VB apps was simply dropping MSVBM60.DLL on a machine to get the apps to work. Any chance of being able to compile static executables in the near future? Or perhaps a hefty gambas runtime library I can drop on a machine along with my app? After a bit of futzing around I managed to get my apps to work on my other machines via YUM gambas-runtime* and gambas-gb-qt*. It installed quite a bit of extra packages though. Thanx for you work guys! Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From maillists at ...1367... Mon Feb 20 20:44:18 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Mon, 20 Feb 2006 11:44:18 -0800 Subject: [Gambas-user] Two questions: Images in binaries & networking Message-ID: <1140464658.17584.3.camel@...1368...> Hello again. #1) I'm building a project that uses a number of small icon images. They're stored in the project directory under "images". Is there anyway to store images inside your final binary executable? Conveniently speaking of course. If not, I suppose I could find a way to convert the image files to base64 strings and store them in the project then dump them to image files in the executable directory if they don't already exist. #2) I'd like to find a way to browse a network, see available servers, view file shares, etc. Preferably in SAMBA. I'm under the impression Gambas isn't quite this advanced yet. But it does have a networking component of which I haven't found much documentation or sample projects. Any tips on this? TIA, Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From sourceforge-raindog2 at ...94... Mon Feb 20 21:48:03 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 20 Feb 2006 15:48:03 -0500 Subject: [Gambas-user] Static executibles In-Reply-To: <1140464636.17584.0.camel@...1368...> References: <1140464636.17584.0.camel@...1368...> Message-ID: <200602201548.03643.sourceforge-raindog2@...94...> On Mon February 20 2006 14:43, GuruLounge - MailLists wrote: > Any chance of being able to compile static executables in the > near future? Or perhaps a hefty gambas runtime library I can > drop on a machine along with my app? There'd have to be a lot of work done on the interpreter (to make it a library like VB's DLL, and to be able to include all the components) before you could really attempt that. I think that a more likely solution will be that the Klik single-file distro-independent system will take off. Then you just have to make sure the end user has the Klik client and send them a CMG file (or if it's a publicly available app and you put it in the klik repository, a link to klik://yourapp.) > After a bit of futzing around I managed to get my apps to work > on my other machines via YUM gambas-runtime* and > gambas-gb-qt*. It installed quite a bit of extra packages > though. They may have been the dependencies needed for gambas-gb-qt. My gambas2-gb-qt RPM package on this laptop needs these resources: gambas2-runtime = 1.9.20 libqt-mt.so.3 >= 3.2 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libgcc_s.so.1 libm.so.6 libm.so.6(GLIBC_2.0) libpthread.so.0 libqt-mt.so.3 libstdc++.so.6 libstdc++.so.6(GLIBCXX_3.4) All of which are provided by: gambas2-runtime-1.9.20-1rk glibc-2.3.5-5mdk libgcc1-4.0.1-4mdk libqt3-3.3.4-19mdk libstdc++6-4.0.1-4mdk Does that look like the list of stuff it wanted to install? Rob From gambas at ...1... Mon Feb 20 22:45:14 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 20 Feb 2006 22:45:14 +0100 Subject: [Gambas-user] Date Picker locale? In-Reply-To: <43F96E0C.40301@...221...> References: <43F96E0C.40301@...221...> Message-ID: <200602202245.15317.gambas@...1...> On Monday 20 February 2006 08:21, Eilert wrote: > Moin, > > The Date Picker doesn't care about locale, does it? It only shows > international date and English texts here. Is there a way to make it > look more German? ;-) > > Thanks for your help. > > Rolf > OK, I found the problem. Just that the country code in KDE must be set in lowercase, whereas the ISO norm says it is in uppercase. I join the patch for the development version. Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp Type: text/x-c++src Size: 4595 bytes Desc: not available URL: From gambas at ...1... Mon Feb 20 23:41:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 20 Feb 2006 23:41:28 +0100 Subject: [Gambas-user] Search for a volunteer Message-ID: <200602202341.28684.gambas@...1...> Hi, Does anyone have the time to make an equivalent of the DatePicker control, but entirely in Gambas? It would be cool :-) Regards, -- Benoit Minisini From marcel at ...1370... Tue Feb 21 08:56:02 2006 From: marcel at ...1370... (Marcel Beekman) Date: Tue, 21 Feb 2006 07:56:02 +0000 Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #1716 - 6 msgs In-Reply-To: <20060221040807.B5650123E7@...773...> References: <20060221040807.B5650123E7@...773...> Message-ID: <20060221075602.3f9dfc88@...1371...> @GuruLounge - Runtime > After a bit of futzing around I managed to get my apps to work on my > other machines via YUM gambas-runtime* and gambas-gb-qt*. It installed > quite a bit of extra packages though. For Vector Linux Joe1962 has build a runtime package (Gambas 1.0.14 stable). We could do that for the top 10 distro's. Kind regards, Marcel @Benoit Minisini - DatePicker > Does anyone have the time to make an equivalent of the DatePicker control, but > entirely in Gambas? > > It would be cool :-) You can use the code of the datepicker I've written for my latest project. Create a form with a panel called pnlCalendar and four buttons for next/prev year and next/prev month. Kind regards, Marcel Code: ' Gambas class file PRIVATE iMonth AS Integer PRIVATE iThisMonth AS Integer PRIVATE iThisYear AS Integer PRIVATE iYear AS Integer PRIVATE iDay AS Integer PRIVATE dToday AS Date PUBLIC SelectedDate AS String PUBLIC SUB btnDay_Click() DIM sIdInfo AS String sIdInfo = LAST.Text SelectedDate = Right("0" & sIdInfo, 2) & "-" & Right("0" & Str(iMonth+1),2) & "-" & iYear ME.Hide END PRIVATE FUNCTION GetMonthDays(iMonth AS Integer) AS Integer DIM aiMonth[12] AS Integer DIM bLeap AS Boolean DIM iLeap AS Integer aiMonth[0] = 31 aiMonth[1] = 28 aiMonth[2] = 31 aiMonth[3] = 30 aiMonth[4] = 31 aiMonth[5] = 30 aiMonth[6] = 31 aiMonth[7] = 31 aiMonth[8] = 30 aiMonth[9] = 31 aiMonth[10] = 30 aiMonth[11] = 31 iLeap = (iYear) MOD 4 bLeap = FALSE IF iLeap = 0 THEN bLeap = TRUE ENDIF IF iMonth = 1 AND bLeap = TRUE THEN RETURN 29 ELSE RETURN aiMonth[iMonth] ENDIF END PRIVATE FUNCTION GetMonthName(iMonth AS Integer) AS String DIM asMonth[13] AS String asMonth[0] = "Januari" asMonth[1] = "Februari" asMonth[2] = "Maart" asMonth[3] = "April" asMonth[4] = "Mei" asMonth[5] = "Juni" asMonth[6] = "Juli" asMonth[7] = "Augustus" asMonth[8] = "September" asMonth[9] = "Oktober" asMonth[10] = "November" asMonth[11] = "December" RETURN asMonth[iMonth] END PRIVATE FUNCTION GetDayName(iDay AS Integer) AS String DIM asDay[7] AS String ' dutch abrev. asDay[0] = "Zo" asDay[1] = "Ma" asDay[2] = "Di" asDay[3] = "Wo" asDay[4] = "Do" asDay[5] = "Vr" asDay[6] = "Za" RETURN asDay[iDay] END PUBLIC SUB Button1_Click() ME.close END PRIVATE SUB DisplayMonthYear() lblMonth.Text = GetMonthName(iMonth) & " " & iYear END PRIVATE SUB ShowDays() DIM lblDay AS Label DIM i AS Integer FOR i = 0 TO 6 lblDay = NEW Label(pnlCalendar) lblDay.X = i * 40 + 60 lblDay.Y = 20 lblDay.Width = 41 lblDay.Height = 28 lblDay.Font.Italic = TRUE lblDay.Font.Size = 12 lblDay.BackColor = &Hccccff& lblDay.Border = 1 lblDay.Alignment = 4 lblDay.Text = GetDayName(i) NEXT END PRIVATE SUB ClearCalendar() DIM hControl AS Control FOR EACH hControl IN pnlCalendar.Children Object.Call(hControl, "Delete") NEXT END PRIVATE SUB BuildCalendar() DIM i AS Integer DIM iStart AS Integer DIM iEnd AS Integer DIM lblDay AS label DIM btnDay AS button DIM iY AS Integer DIM iPos AS Integer DIM iPrevMonth AS Integer DIM iNextMonth AS Integer ClearCalendar() ShowDays() DisplayMonthYear() Button2.Text = "<< " & (iYear - 1) iPrevMonth = iMonth - 1 IF iMonth = 0 THEN iPrevMonth = 11 Button3.Text = "< " & Left(GetMonthName(iPrevMonth),3) & "." iNextMonth = iMonth + 1 IF iMonth = 11 THEN iNextMonth = 0 Button4.Text = Left(GetMonthName(iNextMonth),3) & ". >" Button5.Text = (iYear + 1) & " >>" iStart = WeekDay(Date(iYear,iMonth+1,1)) iEnd = GetMonthDays(iMonth) ' days of prev month FOR i = 0 TO iStart - 1 lblDay = NEW Label(pnlCalendar) lblDay.X = i * 40 + 60 lblDay.Y = 47 lblDay.Width = 41 lblDay.Height = 28 lblDay.BackColor = &Hcccccc& lblDay.Border = 1 lblDay.Alignment = 4 lblDay.Text = "" NEXT ' show the days of this month iY = 47 iPos = iStart - 1 FOR i = 0 TO iEnd iPos = iPos + 1 IF iPos = 7 THEN iPos = 0 iY = iY + 27 ENDIF btnDay = NEW Button(pnlCalendar) AS "btnDay" btnDay.X = iPos * 40 + 60 btnDay.Y = iY btnDay.Width = 41 btnDay.Height = 28 btnDay.Font.Bold = TRUE btnDay.Font.Size = 12 IF iDay = i AND iMonth = iThisMonth AND iYear = iThisYear THEN btnDay.BackColor = &H00ff00& ELSE btnDay.BackColor = &Hffffff& ENDIF ' btnDay.Alignment = 4 btnDay.Text = Str(i+1) NEXT ' days of next month IF iPos > -1 THEN FOR i = iPos TO 6 lblDay = NEW Label(pnlCalendar) lblDay.X = i * 40 + 60 lblDay.Y = iY lblDay.Width = 41 lblDay.Height = 28 lblDay.BackColor = &Hcccccc& lblDay.Border = 1 lblDay.Alignment = 4 lblDay.Text = "" NEXT ENDIF END PUBLIC SUB Form_Open() dToday = Now() iYear =Year(dToday) iMonth = Month(dToday) - 1 iDay = Day(dToday) - 1 iThisMonth = iMonth iThisYear = iYear BuildCalendar() END ' next year PUBLIC SUB Button5_Click() iYear = iYear + 1 BuildCalendar() END ' prev year PUBLIC SUB Button2_Click() iYear = iYear - 1 BuildCalendar() END ' next month PUBLIC SUB Button4_Click() iMonth = iMonth + 1 IF iMonth = 12 THEN iMonth = 0 BuildCalendar() END ' prev month PUBLIC SUB Button3_Click() iMonth = iMonth - 1 IF iMonth = -1 THEN iMonth = 11 BuildCalendar() END From afroehlke at ...784... Tue Feb 21 09:00:00 2006 From: afroehlke at ...784... (=?ISO-8859-15?Q?Andreas_Fr=F6hlke?=) Date: Tue, 21 Feb 2006 09:00:00 +0100 Subject: [Gambas-user] Two questions: Images in binaries & networking In-Reply-To: <1140464658.17584.3.camel@...1368...> References: <1140464658.17584.3.camel@...1368...> Message-ID: <43FAC880.2030208@...784...> GuruLounge - MailLists schrieb: > Hello again. > > #1) > > I'm building a project that uses a number of small icon images. They're > stored in the project directory under "images". Is there anyway to > store images inside your final binary executable? Conveniently speaking > of course. > > If not, I suppose I could find a way to convert the image files to > base64 strings and store them in the project then dump them to image > files in the executable directory if they don't already exist. > > #2) > > I'd like to find a way to browse a network, see available servers, view > file shares, etc. Preferably in SAMBA. I'm under the impression Gambas > isn't quite this advanced yet. But it does have a networking component > of which I haven't found much documentation or sample projects. Any > tips on this? > > TIA, > Jeff > hello #1: You can store the images in PictureBoxes inside the Project. So they will be stored inside your final binary executable. If there are to many images use an collection and store each picture in Pictureboxes in it. So you don't have all the boxes on your form. #2: I don't know. ;) Andreas From afroehlke at ...784... Tue Feb 21 09:05:14 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Tue, 21 Feb 2006 09:05:14 +0100 Subject: [Gambas-user] Search for a volunteer In-Reply-To: <200602202341.28684.gambas@...1...> References: <200602202341.28684.gambas@...1...> Message-ID: <43FAC9BA.40908@...784...> Benoit Minisini schrieb: > Hi, > > Does anyone have the time to make an equivalent of the DatePicker control, but > entirely in Gambas? > > It would be cool :-) > > Regards, > Hello, I've written an DatePicker-Control in Gambas. I must modify it a little bit, then I can send it to you, if you like. Andreas -- Mit freundlichen Gr??en aus Onsabr?ck. Andreas Fr?hlke Anwendungsentwickler KiKxxl GmbH Mindener Str.127 49084 Osnabr?ck Tel.: 0541 / 330 5 445 Fax: 0541 / 330 5 100 Mail: afroehlke at ...784... WWW: http://www.kikxxl.de From maillists at ...1367... Tue Feb 21 09:30:54 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Tue, 21 Feb 2006 00:30:54 -0800 Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #1716 - 6 msgs In-Reply-To: <20060221075602.3f9dfc88@...1371...> References: <20060221040807.B5650123E7@...773...> <20060221075602.3f9dfc88@...1371...> Message-ID: <1140510654.2875.0.camel@...1368...> Cool! There's hope :D Thanx for the reply, Jeff On Tue, 2006-02-21 at 07:56 +0000, Marcel Beekman wrote: > @GuruLounge - Runtime > > > After a bit of futzing around I managed to get my apps to work on my > > other machines via YUM gambas-runtime* and gambas-gb-qt*. It installed > > quite a bit of extra packages though. > > For Vector Linux Joe1962 has build a runtime package (Gambas 1.0.14 stable). > We could do that for the top 10 distro's. > > Kind regards, > > Marcel > > > @Benoit Minisini - DatePicker > > > Does anyone have the time to make an equivalent of the DatePicker control, but > > entirely in Gambas? > > > > It would be cool :-) > > You can use the code of the datepicker I've written for my latest project. > Create a form with a panel called pnlCalendar and four buttons for next/prev year and next/prev month. > > Kind regards, > > Marcel > > > Code: > > ' Gambas class file > PRIVATE iMonth AS Integer > PRIVATE iThisMonth AS Integer > PRIVATE iThisYear AS Integer > PRIVATE iYear AS Integer > PRIVATE iDay AS Integer > PRIVATE dToday AS Date > > PUBLIC SelectedDate AS String > > PUBLIC SUB btnDay_Click() > > DIM sIdInfo AS String > > sIdInfo = LAST.Text > SelectedDate = Right("0" & sIdInfo, 2) & "-" & Right("0" & Str(iMonth+1),2) & "-" & iYear > ME.Hide > END > > PRIVATE FUNCTION GetMonthDays(iMonth AS Integer) AS Integer > > DIM aiMonth[12] AS Integer > DIM bLeap AS Boolean > DIM iLeap AS Integer > > aiMonth[0] = 31 > aiMonth[1] = 28 > aiMonth[2] = 31 > aiMonth[3] = 30 > aiMonth[4] = 31 > aiMonth[5] = 30 > aiMonth[6] = 31 > aiMonth[7] = 31 > aiMonth[8] = 30 > aiMonth[9] = 31 > aiMonth[10] = 30 > aiMonth[11] = 31 > > iLeap = (iYear) MOD 4 > bLeap = FALSE > IF iLeap = 0 THEN > bLeap = TRUE > ENDIF > > IF iMonth = 1 AND bLeap = TRUE THEN > RETURN 29 > ELSE > RETURN aiMonth[iMonth] > ENDIF > END > > PRIVATE FUNCTION GetMonthName(iMonth AS Integer) AS String > > DIM asMonth[13] AS String > > asMonth[0] = "Januari" > asMonth[1] = "Februari" > asMonth[2] = "Maart" > asMonth[3] = "April" > asMonth[4] = "Mei" > asMonth[5] = "Juni" > asMonth[6] = "Juli" > asMonth[7] = "Augustus" > asMonth[8] = "September" > asMonth[9] = "Oktober" > asMonth[10] = "November" > asMonth[11] = "December" > > RETURN asMonth[iMonth] > > END > > PRIVATE FUNCTION GetDayName(iDay AS Integer) AS String > > DIM asDay[7] AS String > > ' dutch abrev. > asDay[0] = "Zo" > asDay[1] = "Ma" > asDay[2] = "Di" > asDay[3] = "Wo" > asDay[4] = "Do" > asDay[5] = "Vr" > asDay[6] = "Za" > > RETURN asDay[iDay] > > END > > > PUBLIC SUB Button1_Click() > > ME.close > > END > > PRIVATE SUB DisplayMonthYear() > > lblMonth.Text = GetMonthName(iMonth) & " " & iYear > > END > > PRIVATE SUB ShowDays() > > DIM lblDay AS Label > DIM i AS Integer > > FOR i = 0 TO 6 > lblDay = NEW Label(pnlCalendar) > lblDay.X = i * 40 + 60 > lblDay.Y = 20 > lblDay.Width = 41 > lblDay.Height = 28 > lblDay.Font.Italic = TRUE > lblDay.Font.Size = 12 > lblDay.BackColor = &Hccccff& > lblDay.Border = 1 > lblDay.Alignment = 4 > lblDay.Text = GetDayName(i) > NEXT > END > > > PRIVATE SUB ClearCalendar() > > DIM hControl AS Control > > FOR EACH hControl IN pnlCalendar.Children > > Object.Call(hControl, "Delete") > > NEXT > > END > > > PRIVATE SUB BuildCalendar() > > DIM i AS Integer > DIM iStart AS Integer > DIM iEnd AS Integer > DIM lblDay AS label > DIM btnDay AS button > DIM iY AS Integer > DIM iPos AS Integer > DIM iPrevMonth AS Integer > DIM iNextMonth AS Integer > > ClearCalendar() > ShowDays() > DisplayMonthYear() > > Button2.Text = "<< " & (iYear - 1) > > iPrevMonth = iMonth - 1 > IF iMonth = 0 THEN iPrevMonth = 11 > Button3.Text = "< " & Left(GetMonthName(iPrevMonth),3) & "." > iNextMonth = iMonth + 1 > IF iMonth = 11 THEN iNextMonth = 0 > Button4.Text = Left(GetMonthName(iNextMonth),3) & ". >" > Button5.Text = (iYear + 1) & " >>" > > iStart = WeekDay(Date(iYear,iMonth+1,1)) > iEnd = GetMonthDays(iMonth) > > ' days of prev month > FOR i = 0 TO iStart - 1 > lblDay = NEW Label(pnlCalendar) > lblDay.X = i * 40 + 60 > lblDay.Y = 47 > lblDay.Width = 41 > lblDay.Height = 28 > lblDay.BackColor = &Hcccccc& > lblDay.Border = 1 > lblDay.Alignment = 4 > lblDay.Text = "" > NEXT > > ' show the days of this month > iY = 47 > iPos = iStart - 1 > FOR i = 0 TO iEnd > iPos = iPos + 1 > IF iPos = 7 THEN > iPos = 0 > iY = iY + 27 > ENDIF > > btnDay = NEW Button(pnlCalendar) AS "btnDay" > btnDay.X = iPos * 40 + 60 > btnDay.Y = iY > btnDay.Width = 41 > btnDay.Height = 28 > btnDay.Font.Bold = TRUE > btnDay.Font.Size = 12 > IF iDay = i AND iMonth = iThisMonth AND iYear = iThisYear THEN > btnDay.BackColor = &H00ff00& > ELSE > btnDay.BackColor = &Hffffff& > ENDIF > ' btnDay.Alignment = 4 > btnDay.Text = Str(i+1) > NEXT > > ' days of next month > IF iPos > -1 THEN > FOR i = iPos TO 6 > lblDay = NEW Label(pnlCalendar) > lblDay.X = i * 40 + 60 > lblDay.Y = iY > lblDay.Width = 41 > lblDay.Height = 28 > lblDay.BackColor = &Hcccccc& > lblDay.Border = 1 > lblDay.Alignment = 4 > lblDay.Text = "" > NEXT > ENDIF > > END > > > > PUBLIC SUB Form_Open() > > dToday = Now() > iYear =Year(dToday) > iMonth = Month(dToday) - 1 > iDay = Day(dToday) - 1 > iThisMonth = iMonth > iThisYear = iYear > > BuildCalendar() > > END > > ' next year > PUBLIC SUB Button5_Click() > iYear = iYear + 1 > BuildCalendar() > END > > ' prev year > PUBLIC SUB Button2_Click() > iYear = iYear - 1 > BuildCalendar() > END > > ' next month > PUBLIC SUB Button4_Click() > iMonth = iMonth + 1 > IF iMonth = 12 THEN iMonth = 0 > BuildCalendar() > END > > ' prev month > PUBLIC SUB Button3_Click() > iMonth = iMonth - 1 > IF iMonth = -1 THEN iMonth = 11 > BuildCalendar() > END > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- .^. /V\ /( )\ ^^-^^ Linux Advocate From maillists at ...1367... Tue Feb 21 09:32:28 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Tue, 21 Feb 2006 00:32:28 -0800 Subject: [Gambas-user] Two questions: Images in binaries & networking In-Reply-To: <43FAC880.2030208@...784...> References: <1140464658.17584.3.camel@...1368...> <43FAC880.2030208@...784...> Message-ID: <1140510748.2875.3.camel@...1368...> Sounds like an idea. Just hope it works in version 1.0.13... (which I forgot to mention in my previous posts) :-/ Thanx for the reply, Jeff On Tue, 2006-02-21 at 09:00 +0100, Andreas Fr?hlke wrote: > hello > > #1: > > You can store the images in PictureBoxes inside the Project. So they > will be stored inside your final binary executable. If there are to many > images use an collection and store each picture in Pictureboxes in it. > So you don't have all the boxes on your form. > > #2: > > I don't know. ;) > > Andreas > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- .^. /V\ /( )\ ^^-^^ Linux Advocate From gambas at ...1... Tue Feb 21 11:40:08 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 21 Feb 2006 11:40:08 +0100 Subject: [Gambas-user] Search for a volunteer In-Reply-To: <43FAC9BA.40908@...784...> References: <200602202341.28684.gambas@...1...> <43FAC9BA.40908@...784...> Message-ID: <200602211140.08814.gambas@...1...> On Tuesday 21 February 2006 09:05, Andreas Fr?hlke wrote: > Benoit Minisini schrieb: > > Hi, > > > > Does anyone have the time to make an equivalent of the DatePicker > > control, but entirely in Gambas? > > > > It would be cool :-) > > > > Regards, > > Hello, > > I've written an DatePicker-Control in Gambas. I must modify it a little > bit, then I can send it to you, if you like. > > Andreas Thanks! -- Benoit Minisini From isy21 at ...1082... Tue Feb 21 11:12:18 2006 From: isy21 at ...1082... (Ignatius Syofian) Date: Tue, 21 Feb 2006 17:12:18 +0700 Subject: [Gambas-user] Illegal operation Message-ID: <200602211712.19088.isy21@...1082...> Hi, is there any limitation of using result data type or .db.exec ? i use this one dim rstemp as result dim rs1 as result ... so so on until about 13 result type. if only define, my application fine, but if i use .rstemp=.db.exec and all result i define and i use repeatly about 10 times using same result type i used then my application show "illegal operation" I use debug, but it raise error, when i use like invoice.showmodal after i remark one of .rstemp, then my program work fine... Anybody have some problem like me ? if do, how to solve it.... -- Thanks in advance Regards, Ignatius Syofian From dcamposf at ...626... Tue Feb 21 13:37:21 2006 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 21 Feb 2006 13:37:21 +0100 Subject: [Gambas-user] Two questions: Images in binaries & networking In-Reply-To: <43FAC880.2030208@...784...> References: <1140464658.17584.3.camel@...1368...> <43FAC880.2030208@...784...> Message-ID: <7259b5ae0602210437k335f22day@...627...> > > > > > I'd like to find a way to browse a network, see available servers, view > > file shares, etc. Preferably in SAMBA. I'm under the impression Gambas > > isn't quite this advanced yet. But it does have a networking component > > of which I haven't found much documentation or sample projects. Any > > tips on this? > > Browsing computers, resources, etc is matter of the operating system, more than a feature for a component. If you want to browse the network, you can just call to the different command line utilities from Samba (smbclient, smbmount...), and parse the output from these programs... They perform the work very well :-) Regards, D. Campos -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Tue Feb 21 14:03:02 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 21 Feb 2006 14:03:02 +0100 Subject: [Gambas-user] Illegal operation In-Reply-To: <200602211712.19088.isy21@...1082...> References: <200602211712.19088.isy21@...1082...> Message-ID: <200602211403.02830.gambas@...1...> On Tuesday 21 February 2006 11:12, Ignatius Syofian wrote: > Hi, > > is there any limitation of using result data type or .db.exec ? > i use this one > > dim rstemp as result > dim rs1 as result > ... so so on until about 13 result type. > > if only define, my application fine, but if i use .rstemp=.db.exec > and all result i define and i use repeatly about 10 times using same result > type i used then my application show "illegal operation" > > I use debug, but it raise error, when i use like invoice.showmodal > > after i remark one of .rstemp, then my program work fine... > > Anybody have some problem like me ? if do, how to solve it.... Which version of gambas do you use? I think I asked this question 2^20 times... :-) -- Benoit Minisini From rohnny at ...1248... Tue Feb 21 17:00:32 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Tue, 21 Feb 2006 17:00:32 +0100 Subject: [Gambas-user] Re: Gambas-user digest, Vol 1 #1716 - 6 msgs Message-ID: <43FB3920.9040005@...1248...> Thanks for the code example. I have put it into a project and added the language norwegian to it. http://forum.stormweb.no under application/code snippets. What I think could be changed is getting the names of month and day from the system instead of hardcoded. -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From maillists at ...1367... Tue Feb 21 18:52:27 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Tue, 21 Feb 2006 09:52:27 -0800 Subject: [Gambas-user] Two questions: Images in binaries & networking In-Reply-To: <7259b5ae0602210437k335f22day@...627...> References: <1140464658.17584.3.camel@...1368...> <43FAC880.2030208@...784...> <7259b5ae0602210437k335f22day@...627...> Message-ID: <1140544347.17249.4.camel@...1368...> Trust me, I've tried that. Unfortunately the only utility I can use that does that is "net rap server" and at the moment it keeps asking me for a password that I don't know. Just pressing ENTER doesn't do anything, nor does my account or root password. It just gives me the message "could not connect to server 127.0.0.1"... I've gone quite mad actually, looking for a console based way to browse servers and domain names. Nautilus does this quite easily. Anybody have a clue what I can do? Thanx for the reply, Jeff On Tue, 2006-02-21 at 13:37 +0100, Daniel Campos wrote: > > > > > > I'd like to find a way to browse a network, see available > servers, view > > file shares, etc. Preferably in SAMBA. I'm under the > impression Gambas > > isn't quite this advanced yet. But it does have a > networking component > > of which I haven't found much documentation or sample > projects. Any > > tips on this? > > > > > Browsing computers, resources, etc is matter of the operating system, > more than a feature for a component. If you want to browse the > network, you can just call to the different command line utilities > from Samba (smbclient, smbmount...), and parse the output from these > programs... They perform the work very well :-) > > Regards, > > D. Campos > > > > > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From framedownunder at ...626... Tue Feb 21 18:59:24 2006 From: framedownunder at ...626... (frame down under) Date: Tue, 21 Feb 2006 18:59:24 +0100 Subject: [Gambas-user] Two questions: Images in binaries & networking In-Reply-To: <7259b5ae0602210437k335f22day@...627...> References: <1140464658.17584.3.camel@...1368...> <43FAC880.2030208@...784...> <7259b5ae0602210437k335f22day@...627...> Message-ID: <82b5035a0602210959j72bb25adu@...627...> Hi List, You may find smbtree -N usefull to get a list of available servers, shares etc. greets 2006/2/21, Daniel Campos : > > > > > > > > > > I'd like to find a way to browse a network, see available servers, view > > > file shares, etc. Preferably in SAMBA. I'm under the impression Gambas > > > isn't quite this advanced yet. But it does have a networking component > > > of which I haven't found much documentation or sample projects. Any > > > tips on this? > > > > > > Browsing computers, resources, etc is matter of the operating system, more > than a feature for a component. If you want to browse the network, you can > just call to the different command line utilities from Samba (smbclient, > smbmount...), and parse the output from these programs... They perform the > work very well :-) > > Regards, > > D. Campos > > > > From maillists at ...1367... Tue Feb 21 19:06:17 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Tue, 21 Feb 2006 10:06:17 -0800 Subject: [Gambas-user] Two questions: Images in binaries & networking In-Reply-To: <82b5035a0602210959j72bb25adu@...627...> References: <1140464658.17584.3.camel@...1368...> <43FAC880.2030208@...784...> <7259b5ae0602210437k335f22day@...627...> <82b5035a0602210959j72bb25adu@...627...> Message-ID: <1140545177.17818.0.camel@...1368...> HOW DARE YOU MAKE THAT SO EASY!! Fine, I'll just pick my hair back up off the floor and glue it in place. Thanx much! Jeff On Tue, 2006-02-21 at 18:59 +0100, frame down under wrote: > Hi List, > > You may find smbtree -N usefull to get a list of available servers, shares etc. > > greets > > 2006/2/21, Daniel Campos : > > > > > > > > > > > > > > > I'd like to find a way to browse a network, see available servers, view > > > > file shares, etc. Preferably in SAMBA. I'm under the impression Gambas > > > > isn't quite this advanced yet. But it does have a networking component > > > > of which I haven't found much documentation or sample projects. Any > > > > tips on this? > > > > > > > > > > Browsing computers, resources, etc is matter of the operating system, more > > than a feature for a component. If you want to browse the network, you can > > just call to the different command line utilities from Samba (smbclient, > > smbmount...), and parse the output from these programs... They perform the > > work very well :-) > > > > Regards, > > > > D. Campos > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd_______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- .^. /V\ /( )\ ^^-^^ Linux Advocate From sourceforge-raindog2 at ...94... Tue Feb 21 23:46:23 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 21 Feb 2006 17:46:23 -0500 Subject: [Gambas-user] updated mandriva 2006 packages Message-ID: <200602211746.23576.sourceforge-raindog2@...94...> I made packages of 1.0.14 and 1.9.25 today for Mandriva 2006. http://www.kudla.org/blog.php?wl_mode=more&wl_eid=83 Let me know of any problems. Rob From afroehlke at ...784... Wed Feb 22 08:40:27 2006 From: afroehlke at ...784... (=?ISO-8859-1?Q?Andreas_Fr=F6hlke?=) Date: Wed, 22 Feb 2006 08:40:27 +0100 Subject: [Gambas-user] Search for a volunteer In-Reply-To: <200602211140.08814.gambas@...1...> References: <200602202341.28684.gambas@...1...> <43FAC9BA.40908@...784...> <200602211140.08814.gambas@...1...> Message-ID: <43FC156B.2080504@...784...> Benoit Minisini schrieb: > On Tuesday 21 February 2006 09:05, Andreas Fr?hlke wrote: > >>Benoit Minisini schrieb: >> >>>Hi, >>> >>>Does anyone have the time to make an equivalent of the DatePicker >>>control, but entirely in Gambas? >>> >>>It would be cool :-) >>> >>>Regards, >> >>Hello, >> >>I've written an DatePicker-Control in Gambas. I must modify it a little >>bit, then I can send it to you, if you like. >> >>Andreas > > > Thanks! > Please give me a Mail Address for sending you the DatePicker Files. If you don't like to send it here send it to gorian83 at ...467... . Andreas From k4p0w3r at ...370... Wed Feb 22 11:04:37 2006 From: k4p0w3r at ...370... (Johan Wistrom) Date: Wed, 22 Feb 2006 10:04:37 +0000 (GMT) Subject: [Gambas-user] BUG: Signal 11 on dragmove Message-ID: <20060222100438.94770.qmail@...1372...> Hello, I managed to crash my gambas app (Signal #11) on a drag'n'drop operation. Signal is caught while the dragmove is active (mouse with drop.data from ActionForm is hovering above petForm that will accept the drop). The crash does not happen always, only about 1 time in 5 tries. * Gambas 1.9.25 * gb.gtk In case this is useful: defpet-dragndrop.xpm is 128x128 xpm chickenpic.picture is 24x24 xpm petForm.drop is set to True petForm.class: PUBLIC SUB Form_DragMove() IF Petform.Picture <> Picture["defpet-dragndrop.xpm"] THEN PetForm.Picture = Picture["defpet-dragndrop.xpm"] END IF END ActionForm.class: PUBLIC SUB ChickenPic_MouseMove() IF mouse.Left THEN Drag.Icon = ChickenPic.picture ChickenPic.Drag("chicken") END IF END ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com From gambas at ...1... Wed Feb 22 13:42:41 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 22 Feb 2006 13:42:41 +0100 Subject: [Gambas-user] Search for a volunteer In-Reply-To: <43FC156B.2080504@...784...> References: <200602202341.28684.gambas@...1...> <200602211140.08814.gambas@...1...> <43FC156B.2080504@...784...> Message-ID: <200602221342.41349.gambas@...1...> On Wednesday 22 February 2006 08:40, Andreas Fr?hlke wrote: > Benoit Minisini schrieb: > > On Tuesday 21 February 2006 09:05, Andreas Fr?hlke wrote: > >>Benoit Minisini schrieb: > >>>Hi, > >>> > >>>Does anyone have the time to make an equivalent of the DatePicker > >>>control, but entirely in Gambas? > >>> > >>>It would be cool :-) > >>> > >>>Regards, > >> > >>Hello, > >> > >>I've written an DatePicker-Control in Gambas. I must modify it a little > >>bit, then I can send it to you, if you like. > >> > >>Andreas > > > > Thanks! > > Please give me a Mail Address for sending you the DatePicker Files. If > you don't like to send it here send it to gorian83 at ...467... . > > Andreas > gambas at ...764... does not work ? -- Benoit Minisini From mwebb at ...1362... Wed Feb 22 14:45:43 2006 From: mwebb at ...1362... (mike webb) Date: Wed, 22 Feb 2006 13:45:43 +0000 Subject: [Gambas-user] gambas and email Message-ID: <43FC6B07.7040108@...1362...> i'm going to write a program which will will need to be able to send out emails. the message of the emails will be retrieved from a mysql database. what would be the best way to send the emails. call a shell and try sendmail ?? From lordheavy at ...512... Wed Feb 22 21:06:59 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 22 Feb 2006 21:06:59 +0100 Subject: [Gambas-user] gambas and email In-Reply-To: <43FC6B07.7040108@...1362...> References: <43FC6B07.7040108@...1362...> Message-ID: <200602222107.00001.lordheavy@...512...> Le Mercredi 22 F?vrier 2006 14:45, mike webb a ?crit?: > i'm going to write a program which will will need to be able to send > out emails. > the message of the emails will be retrieved from a mysql database. what > would be the best way to send the emails. > call a shell and try sendmail ?? > The 'mail' command ? -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From katsancat at ...11... Wed Feb 22 21:37:24 2006 From: katsancat at ...11... (Bertand-Xavier M.) Date: Wed, 22 Feb 2006 21:37:24 +0100 Subject: [Gambas-user] gambas and email In-Reply-To: <43FC6B07.7040108@...1362...> References: <43FC6B07.7040108@...1362...> Message-ID: <200602222137.24394.katsancat@...11...> On Wednesday 22 February 2006 14:45, mike webb wrote: > i'm going to write a program which will will need to be able to send > out emails. > the message of the emails will be retrieved from a mysql database. what > would be the best way to send the emails. > call a shell and try sendmail ?? > Hi, Best way is to create a socket and discuss with the server using the SMTP protocol. From mwebb at ...1362... Wed Feb 22 15:29:02 2006 From: mwebb at ...1362... (mike webb) Date: Wed, 22 Feb 2006 14:29:02 +0000 Subject: [Gambas-user] gambas and email In-Reply-To: <200602222107.00001.lordheavy@...512...> References: <43FC6B07.7040108@...1362...> <200602222107.00001.lordheavy@...512...> Message-ID: <43FC752E.8070207@...1362...> Laurent Carlier wrote: >Le Mercredi 22 F?vrier 2006 14:45, mike webb a ?crit : > > >>i'm going to write a program which will will need to be able to send >>out emails. >>the message of the emails will be retrieved from a mysql database. what >>would be the best way to send the emails. >>call a shell and try sendmail ?? >> >> >> > >The 'mail' command ? > > > just tried that one, i did: mail -s "test message from sid" mwebb at ...1362... the server just sat there, after a while i pressed control-c and i got my prompt back. From mwebb at ...1362... Wed Feb 22 16:01:35 2006 From: mwebb at ...1362... (mike webb) Date: Wed, 22 Feb 2006 15:01:35 +0000 Subject: [Gambas-user] gambas and email In-Reply-To: <200602222137.24394.katsancat@...11...> References: <43FC6B07.7040108@...1362...> <200602222137.24394.katsancat@...11...> Message-ID: <43FC7CCF.9090703@...1362...> Bertand-Xavier M. wrote: >On Wednesday 22 February 2006 14:45, mike webb wrote: > > >>i'm going to write a program which will will need to be able to send >>out emails. >>the message of the emails will be retrieved from a mysql database. what >>would be the best way to send the emails. >>call a shell and try sendmail ?? >> >> >> >Hi, >Best way is to create a socket and discuss with the server using the SMTP >protocol. > >yeah, that looks good. just telneted into the smtp server and was able to send a email to myself by hand something like > > telnet 192.168.3.4 25 answers with domain ESMTP postfix type: ehlo mike.com receive resonse: type: mail from: mwebb at ...1373... type: rcpt to: mwebb at ...1374... type:data then enter message followed by cr/lf "." cr/lf message was sent. all i have to do is setup a socket ? and use that instead of telnet? >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From sourceforge-raindog2 at ...94... Wed Feb 22 22:13:19 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 22 Feb 2006 16:13:19 -0500 Subject: [Gambas-user] gambas and email In-Reply-To: <43FC752E.8070207@...1362...> References: <43FC6B07.7040108@...1362...> <200602222107.00001.lordheavy@...512...> <43FC752E.8070207@...1362...> Message-ID: <200602221613.20296.sourceforge-raindog2@...94...> On Wed February 22 2006 09:29, mike webb wrote: > >The 'mail' command ? > just tried that one, i did: > mail -s "test message from sid" mwebb at ...1362... > the server just sat there, after a while i pressed control-c > and i got my prompt back. It's meant to be used from other programs. The following is pseudo-code to give you an idea of how I'd use it from Gambas. (Note: I don't think it's safe to assume that "mail" will be installed on any system or that it will know how to send Internet mail, so it may be safer just to open a socket to an SMTP server, assuming you can get the user's ISP's mail server address.) myproc = Shell "mail -s \"test message from sid\" mwebb at ...1362..." print #myproc, "This is the body of the mail\r\n" close myproc To simulate that behavior from the command line, when mail is just sitting there waiting for you to type control-C, type a few lines and then press control-D on a blank line to (try to) send it. Rob From sourceforge-raindog2 at ...94... Wed Feb 22 22:17:31 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 22 Feb 2006 16:17:31 -0500 Subject: [Gambas-user] gambas and email In-Reply-To: <43FC7CCF.9090703@...1362...> References: <43FC6B07.7040108@...1362...> <200602222137.24394.katsancat@...11...> <43FC7CCF.9090703@...1362...> Message-ID: <200602221617.31535.sourceforge-raindog2@...94...> On Wed February 22 2006 10:01, mike webb wrote: > all i have to do is setup a socket ? and use that instead of > telnet? That would be the right way to do SMTP from Gambas, yeah. If you do feel more comfortable using the telnet method, try getting your hands on "nc" (netcat) which is like a simpler version of telnet meant for use in scripts (and probably a more commonly available tool nowadays than telnet, anyway.) Rob From mwebb at ...1362... Wed Feb 22 16:13:05 2006 From: mwebb at ...1362... (mike webb) Date: Wed, 22 Feb 2006 15:13:05 +0000 Subject: [Gambas-user] gambas and email In-Reply-To: <200602221613.20296.sourceforge-raindog2@...94...> References: <43FC6B07.7040108@...1362...> <200602222107.00001.lordheavy@...512...> <43FC752E.8070207@...1362...> <200602221613.20296.sourceforge-raindog2@...94...> Message-ID: <43FC7F81.6040802@...1362...> Rob Kudla wrote: >On Wed February 22 2006 09:29, mike webb wrote: > > >>>The 'mail' command ? >>> >>> >>just tried that one, i did: >>mail -s "test message from sid" mwebb at ...1362... >>the server just sat there, after a while i pressed control-c >>and i got my prompt back. >> >> > >It's meant to be used from other programs. The following is >pseudo-code to give you an idea of how I'd use it from Gambas. >(Note: I don't think it's safe to assume that "mail" will be >installed on any system or that it will know how to send >Internet mail, so it may be safer just to open a socket to an >SMTP server, assuming you can get the user's ISP's mail server >address.) > >myproc = Shell "mail -s \"test message from sid\" >mwebb at ...1362..." > >print #myproc, "This is the body of the mail\r\n" > >close myproc > >To simulate that behavior from the command line, when mail is >just sitting there waiting for you to type control-C, type a few >lines and then press control-D on a blank line to (try to) send >it. > >Rob > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > yup that works from the command line to. looks like a have at least 2 differnet ways of doing this. i think i know enough now. thanks everyone !!!!!!! From brian at ...1334... Wed Feb 22 22:55:54 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Wed, 22 Feb 2006 13:55:54 -0800 (PST) Subject: [Gambas-user] gambas and email In-Reply-To: <200602221613.20296.sourceforge-raindog2@...94...> References: <43FC6B07.7040108@...1362...> <200602222107.00001.lordheavy@...512...> <43FC752E.8070207@...1362...> <200602221613.20296.sourceforge-raindog2@...94...> Message-ID: <20060222134507.O5978@...1337...> On Wed, 22 Feb 2006, Rob Kudla wrote: > It's meant to be used from other programs. The following is > pseudo-code to give you an idea of how I'd use it from Gambas. > (Note: I don't think it's safe to assume that "mail" will be > installed on any system or that it will know how to send > Internet mail, so it may be safer just to open a socket to an > SMTP server, assuming you can get the user's ISP's mail server > address.) Most systems have nslookup so if you need to send email to: kilroy at ...1375... It should suffice to use: nslookup -type=mx kilroy.domain to determine the user's email host then it's a matter of using SMTP to talk to the server and send the mail. Alternatively if your ISP provides its own SMTP superhost you can use your ISP's SMTP server for outgoing mail and no nslookup is needed (except maybe to look up your ISP's outgoing SMTP server) because the outgoing server will do the necessary MX lookup. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From sourceforge-raindog2 at ...94... Wed Feb 22 23:03:27 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 22 Feb 2006 17:03:27 -0500 Subject: [Gambas-user] gambas and email In-Reply-To: <20060222134507.O5978@...1337...> References: <43FC6B07.7040108@...1362...> <200602221613.20296.sourceforge-raindog2@...94...> <20060222134507.O5978@...1337...> Message-ID: <200602221703.28332.sourceforge-raindog2@...94...> On Wed February 22 2006 16:55, Christopher Brian Jack wrote: > It should suffice to use: > nslookup -type=mx kilroy.domain > to determine the user's email host then it's a matter of using > SMTP to talk to the server and send the mail. This is risky nowadays, since many spam filters reject mail coming from dialup or cable modem IP blocks. If your users are all in one known IP block (such as for a corporate LAN/WAN) it may be safe. > Alternatively if your ISP provides its own SMTP superhost you > can use your ISP's SMTP server for outgoing mail and no > nslookup is needed (except maybe to look up your ISP's > outgoing SMTP server) because the outgoing server will do the > necessary MX lookup. While in the old days it was always safe to send mail through the host named "mail" on your local network, ISP's aren't quite as consistent anymore (e.g. my outgoing mail host is currently "smtp3", whereas "mail" is POP3 only) and you'll probably have to prompt the user for an SMTP server address. Rob From k4p0w3r at ...370... Wed Feb 22 23:06:31 2006 From: k4p0w3r at ...370... (Johan Wistrom) Date: Wed, 22 Feb 2006 22:06:31 +0000 (GMT) Subject: [Gambas-user] BUG: gb.gtk IconView.clear Message-ID: <20060222220631.69251.qmail@...1376...> Gambas 1.9.25 gb.gtk IconView does not redraw its contents properly after it is cleared. When calling IconView.clear it delets all the items properly but does not redraw itself (the deleted items are still visible). I have tried * IconView.Refresh/Hide/Show. * setting the visible property to false, add/delete items and then turn visible to true again. but neither way seem to help it to accomplish this. Is there another way to force the IconView to redraw? Johan ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com From gambas at ...1... Thu Feb 23 00:13:44 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 23 Feb 2006 00:13:44 +0100 Subject: [Gambas-user] gambas and email In-Reply-To: <200602221617.31535.sourceforge-raindog2@...94...> References: <43FC6B07.7040108@...1362...> <43FC7CCF.9090703@...1362...> <200602221617.31535.sourceforge-raindog2@...94...> Message-ID: <200602230013.45111.gambas@...1...> On Wednesday 22 February 2006 22:17, Rob Kudla wrote: > On Wed February 22 2006 10:01, mike webb wrote: > > all i have to do is setup a socket ? and use that instead of > > telnet? > > That would be the right way to do SMTP from Gambas, yeah. If you > do feel more comfortable using the telnet method, try getting > your hands on "nc" (netcat) which is like a simpler version of > telnet meant for use in scripts (and probably a more commonly > available tool nowadays than telnet, anyway.) > > Rob > A good idea would be add a SMTP class to the gb.net component, or make directly a component from the libsmtp library: http://libsmtp.berlios.de Any volunteer ? :-) -- Benoit Minisini From katsancat at ...11... Thu Feb 23 07:36:07 2006 From: katsancat at ...11... (Bertand-Xavier M.) Date: Thu, 23 Feb 2006 07:36:07 +0100 Subject: [Gambas-user] gambas and email In-Reply-To: <43FC7CCF.9090703@...1362...> References: <43FC6B07.7040108@...1362...> <200602222137.24394.katsancat@...11...> <43FC7CCF.9090703@...1362...> Message-ID: <200602230736.07436.katsancat@...11...> On Wednesday 22 February 2006 16:01, mike webb wrote: > Bertand-Xavier M. wrote: > >On Wednesday 22 February 2006 14:45, mike webb wrote: > >>i'm going to write a program which will will need to be able to send > >>out emails. > >>the message of the emails will be retrieved from a mysql database. what > >>would be the best way to send the emails. > >>call a shell and try sendmail ?? > > > >Hi, > >Best way is to create a socket and discuss with the server using the SMTP > >protocol. > > > >yeah, that looks good. just telneted into the smtp server and was able to > > send a email to myself by hand something like > > telnet 192.168.3.4 25 > answers with domain ESMTP postfix > type: ehlo mike.com > receive resonse: > type: mail from: mwebb at ...1373... > type: rcpt to: mwebb at ...1374... > type:data > then enter message followed by cr/lf "." cr/lf > message was sent. > all i have to do is setup a socket ? and use that instead of telnet? > Yep, here's a short example project written with Gambas 1.9.25 -------------- next part -------------- A non-text attachment was scrubbed... Name: SMTP_Socket_Example.tar.gz Type: application/x-tgz Size: 3703 bytes Desc: not available URL: From email at ...1378... Thu Feb 23 09:19:47 2006 From: email at ...1378... (Ken Harding) Date: Thu, 23 Feb 2006 08:19:47 +0000 Subject: [Gambas-user] gambas and email In-Reply-To: <200602230736.07436.katsancat@...11...> References: <43FC6B07.7040108@...1362...> <200602222137.24394.katsancat@...11...> <43FC7CCF.9090703@...1362...> <200602230736.07436.katsancat@...11...> Message-ID: <43FD7023.3050509@...1378...> This worked for me but I had to make the following mod: DIM s AS String cout("> Connected, sending msg ...") WAIT 5 ' ** Add this line ** s = "HELO [" & Sk.LocalHost & "]\r\n" & Bertand-Xavier M. wrote: > On Wednesday 22 February 2006 16:01, mike webb wrote: >> Bertand-Xavier M. wrote: >>> On Wednesday 22 February 2006 14:45, mike webb wrote: >>>> i'm going to write a program which will will need to be able to send >>>> out emails. >>>> the message of the emails will be retrieved from a mysql database. what >>>> would be the best way to send the emails. >>>> call a shell and try sendmail ?? >>> Hi, >>> Best way is to create a socket and discuss with the server using the SMTP >>> protocol. >>> >>> yeah, that looks good. just telneted into the smtp server and was able to >>> send a email to myself by hand something like >> telnet 192.168.3.4 25 >> answers with domain ESMTP postfix >> type: ehlo mike.com >> receive resonse: >> type: mail from: mwebb at ...1373... >> type: rcpt to: mwebb at ...1374... >> type:data >> then enter message followed by cr/lf "." cr/lf >> message was sent. >> all i have to do is setup a socket ? and use that instead of telnet? >> > Yep, here's a short example project written with Gambas 1.9.25 From maillists at ...1367... Thu Feb 23 22:14:30 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Thu, 23 Feb 2006 13:14:30 -0800 Subject: [Gambas-user] Possible bug in 1.0.13? Message-ID: <1140729270.27408.5.camel@...1368...> I'm attempting to write a function and keep getting the following error: "wanted float, got string instead". My function looks like this. public function AddToFileList(strKey as string, strFile as string) as String dim strType as string strType = "file" ...bunch 'o statements... return strType end Public sub SomeRoutine() dim myStr as string ...bunch 'o statements... myStr = AddToFileList(myKey, myFile) ...bunch 'o statements... end Is this a bug or am I missing something? Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From sourceforge-raindog2 at ...94... Thu Feb 23 22:27:26 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 23 Feb 2006 16:27:26 -0500 Subject: [Gambas-user] Possible bug in 1.0.13? In-Reply-To: <1140729270.27408.5.camel@...1368...> References: <1140729270.27408.5.camel@...1368...> Message-ID: <200602231627.27447.sourceforge-raindog2@...94...> On Thu February 23 2006 16:14, GuruLounge - MailLists wrote: > Is this a bug or am I missing something? You got me. What type is myKey in SomeRoutine? What type is myFile in SomeRoutine? Are either of those two variables global (PUBLIC/PRIVATE)? Is it a compile-time or run-time error? On what line is it generating the error? I think you'll need to post your project, or at least the class or module this came from. But the fact that it's a Gambas error message and not, say, a core dump, makes me think that you're using some function that takes a numeric argument and giving it a string instead, rather than being a Gambas bug. Rob From jfabiani at ...1109... Fri Feb 24 00:07:16 2006 From: jfabiani at ...1109... (johnf) Date: Thu, 23 Feb 2006 15:07:16 -0800 Subject: [Gambas-user] Possible bug in 1.0.13? In-Reply-To: <1140729270.27408.5.camel@...1368...> References: <1140729270.27408.5.camel@...1368...> Message-ID: <200602231507.16391.jfabiani@...1109...> On Thursday 23 February 2006 13:14, GuruLounge - MailLists wrote: > I'm attempting to write a function and keep getting the following error: > > "wanted float, got string instead". > > My function looks like this. > > public function AddToFileList(strKey as string, strFile as string) as > String > > dim strType as string > > strType = "file" > ...bunch 'o statements... > > return strType > end > > Public sub SomeRoutine() > dim myStr as string > > ...bunch 'o statements... > myStr = AddToFileList(myKey, myFile) > ...bunch 'o statements... > > end > > Is this a bug or am I missing something? > > Jeff A little more info is required. But first try the debugger and check variable before it is used. It's un-likely that this is a Gambas issue. John From maillists at ...1367... Fri Feb 24 08:58:57 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Thu, 23 Feb 2006 23:58:57 -0800 Subject: [Gambas-user] Possible bug in 1.0.13? In-Reply-To: <200602231507.16391.jfabiani@...1109...> References: <1140729270.27408.5.camel@...1368...> <200602231507.16391.jfabiani@...1109...> Message-ID: <1140767937.10249.2.camel@...1368...> I fixed it. Had to do with another function call that had a null appended: mystring = backtostring(somestring, searchstring, intappend) + "" was causing the problem (using "+" instead of "&") . What I don't understand is why the debugger didn't point to THIS line instead of the line that called the function. Jeff > A little more info is required. But first try the debugger and check variable > before it is used. It's un-likely that this is a Gambas issue. > John > > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From sourceforge-raindog2 at ...94... Fri Feb 24 15:16:20 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 24 Feb 2006 09:16:20 -0500 Subject: [Gambas-user] Possible bug in 1.0.13? In-Reply-To: <1140767937.10249.2.camel@...1368...> References: <1140729270.27408.5.camel@...1368...> <200602231507.16391.jfabiani@...1109...> <1140767937.10249.2.camel@...1368...> Message-ID: <200602240916.22018.sourceforge-raindog2@...94...> On Fri February 24 2006 02:58, GuruLounge - MailLists wrote: > was causing the problem (using "+" instead of "&") . What I > don't understand is why the debugger didn't point to THIS line > instead of the line that called the function. In my experience, the debugger has some serious line numbering issues when you use any of the line continuation tricks in your code. Have you used any of those? e.g. s = s & "This is a really long string to add to " & "my string variable" Rob From maillists at ...1367... Fri Feb 24 17:46:06 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Fri, 24 Feb 2006 08:46:06 -0800 Subject: [Gambas-user] Possible bug in 1.0.13? In-Reply-To: <200602240916.22018.sourceforge-raindog2@...94...> References: <1140729270.27408.5.camel@...1368...> <200602231507.16391.jfabiani@...1109...> <1140767937.10249.2.camel@...1368...> <200602240916.22018.sourceforge-raindog2@...94...> Message-ID: <1140799566.22901.2.camel@...1368...> I've used plenty like your example but never had that issue -- only when I use the example (but with errors) did I notice debugger issues and think "Why did it say that instead of this?". Well, in any regard, it caught an my error, just not the right way. Regards, Jeff > In my experience, the debugger has some serious line numbering > issues when you use any of the line continuation tricks in your > code. Have you used any of those? e.g. > > s = s & "This is a really long string to add to " & > "my string variable" > > Rob > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- .^. /V\ /( )\ ^^-^^ Linux Advocate From gambas at ...1... Sat Feb 25 00:01:25 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 25 Feb 2006 00:01:25 +0100 Subject: [Gambas-user] Possible bug in 1.0.13? In-Reply-To: <1140799566.22901.2.camel@...1368...> References: <1140729270.27408.5.camel@...1368...> <200602240916.22018.sourceforge-raindog2@...94...> <1140799566.22901.2.camel@...1368...> Message-ID: <200602250001.25569.gambas@...1...> On Friday 24 February 2006 17:46, GuruLounge - MailLists wrote: > I've used plenty like your example but never had that issue -- only when > I use the example (but with errors) did I notice debugger issues and > think "Why did it say that instead of this?". > > Well, in any regard, it caught an my error, just not the right way. > > Regards, > Jeff > > > In my experience, the debugger has some serious line numbering > > issues when you use any of the line continuation tricks in your > > code. Have you used any of those? e.g. > > > > s = s & "This is a really long string to add to " & > > "my string variable" > > > > Rob > > This bug was fixed in 1.0.14 :-) -- Benoit Minisini From maillists at ...1367... Sat Feb 25 01:41:11 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Fri, 24 Feb 2006 16:41:11 -0800 Subject: [Gambas-user] Possible bug in 1.0.13? In-Reply-To: <200602250001.25569.gambas@...1...> References: <1140729270.27408.5.camel@...1368...> <200602240916.22018.sourceforge-raindog2@...94...> <1140799566.22901.2.camel@...1368...> <200602250001.25569.gambas@...1...> Message-ID: <1140828071.1431.3.camel@...1368...> Benoit, I knew you were gonna eventually say something like that :-) I kinda thought this, with 1.0.13 being so far behind the latest release. Unfortunately Fedora only offers 1.0.13 packages at the moment. I was curious to know if the runtime packages for the new version will work with programs compiled in 1.0.13? Jeff On Sat, 2006-02-25 at 00:01 +0100, Benoit Minisini wrote: > This bug was fixed in 1.0.14 :-) > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From maillists at ...1367... Sat Feb 25 01:49:51 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Fri, 24 Feb 2006 16:49:51 -0800 Subject: [Gambas-user] Text box size Message-ID: <1140828591.1753.1.camel@...1368...> Could anyone tell me how much info the textbox and treeview controls can hold? And have they changed from 1.0.13 on? Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From maillists at ...1367... Sat Feb 25 01:54:03 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Fri, 24 Feb 2006 16:54:03 -0800 Subject: [Gambas-user] Treeview data Message-ID: <1140828843.1753.5.camel@...1368...> I've been doing a lot of work with the treeview control and I was wondering if there was a way to store additional data in the keys (other than just "value" which always gets displayed in the tree). I've been attempting to conjure a way to store additional properties info for each key. I've been considering using a collection parallel to the treeview to store this info but it's not quite as convenient. Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From gambas at ...1... Sat Feb 25 10:08:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 25 Feb 2006 10:08:23 +0100 Subject: [Gambas-user] Possible bug in 1.0.13? In-Reply-To: <1140828071.1431.3.camel@...1368...> References: <1140729270.27408.5.camel@...1368...> <200602250001.25569.gambas@...1...> <1140828071.1431.3.camel@...1368...> Message-ID: <200602251008.23952.gambas@...1...> On Saturday 25 February 2006 01:41, GuruLounge - MailLists wrote: > Benoit, I knew you were gonna eventually say something like that :-) > > I kinda thought this, with 1.0.13 being so far behind the latest > release. > > Unfortunately Fedora only offers 1.0.13 packages at the moment. > > I was curious to know if the runtime packages for the new version will > work with programs compiled in 1.0.13? > > Jeff > > On Sat, 2006-02-25 at 00:01 +0100, Benoit Minisini wrote: > > This bug was fixed in 1.0.14 :-) I only fix bugs in the stable version, so that projects continue working, except those that depends on the bugs of course... Is Evolution as stupid as Outlook, that the answer is put *before* the question? :-) Regards, -- Benoit Minisini From gambas at ...1... Sat Feb 25 10:09:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 25 Feb 2006 10:09:23 +0100 Subject: [Gambas-user] Text box size In-Reply-To: <1140828591.1753.1.camel@...1368...> References: <1140828591.1753.1.camel@...1368...> Message-ID: <200602251009.24007.gambas@...1...> On Saturday 25 February 2006 01:49, GuruLounge - MailLists wrote: > Could anyone tell me how much info the textbox and treeview controls can > hold? And have they changed from 1.0.13 on? > > Jeff To know what changes between versions, just read the ChangeLog. I rarely forget to put any change in it :-) Regards, -- Benoit Minisini From gambas at ...1... Sat Feb 25 10:10:26 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 25 Feb 2006 10:10:26 +0100 Subject: [Gambas-user] Treeview data In-Reply-To: <1140828843.1753.5.camel@...1368...> References: <1140828843.1753.5.camel@...1368...> Message-ID: <200602251010.26810.gambas@...1...> On Saturday 25 February 2006 01:54, GuruLounge - MailLists wrote: > I've been doing a lot of work with the treeview control and I was > wondering if there was a way to store additional data in the keys (other > than just "value" which always gets displayed in the tree). I've been > attempting to conjure a way to store additional properties info for each > key. > > I've been considering using a collection parallel to the treeview to > store this info but it's not quite as convenient. > > Jeff And why isn't it convenient? If it is just an interface problem, you can write your own TreeView by inheriting the TreeView class. Regards, -- Benoit Minisini From lucris at ...1366... Sat Feb 25 10:51:59 2006 From: lucris at ...1366... (Llew Ashdown) Date: Sat, 25 Feb 2006 19:51:59 +1000 Subject: [Gambas-user] Re: Xandros (Debian Version) In-Reply-To: <1140464636.17584.0.camel@...1368...> References: <1140464636.17584.0.camel@...1368...> Message-ID: <440028BF.6080304@...1366...> Dear Members, I tried sending this to Jose' ( the one listed in charge of Debian) The email bounced--- any clue where to go now. (deb http://www.linex.org/sources/linex/debian/ cl gambas) ---------------------------------------------------------------------------------- I am running Gambas 1.9.20. on Xandros (Debian) I keep getting (Boken Packages) Messages when I try to load these components. Is there any chance that you could updata this data. gambas_gb_compress gambas_gb_db gambas_gb_db_sqlite3 gambas_gb_eval gambas_gb_gtk_pdf gambas_gb_vb Thanking you in advance-- Llew :-) -------------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: lucris.vcf Type: text/x-vcard Size: 179 bytes Desc: not available URL: From maillists at ...1367... Sat Feb 25 11:37:17 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Sat, 25 Feb 2006 02:37:17 -0800 Subject: [Gambas-user] Treeview data In-Reply-To: <200602251010.26810.gambas@...1...> References: <1140828843.1753.5.camel@...1368...> <200602251010.26810.gambas@...1...> Message-ID: <1140863837.16960.2.camel@...1368...> Benoit, you must realize that I'm stupider in some circles than others. In other words there are still many a programing concepts I've yet to grasp. How do I create my own treeview control "by inheriting the TreeView class"? Can you pass an example my way to play with? Thanx much, Jeff On Sat, 2006-02-25 at 10:10 +0100, Benoit Minisini wrote: > On Saturday 25 February 2006 01:54, GuruLounge - MailLists wrote: > > I've been doing a lot of work with the treeview control and I was > > wondering if there was a way to store additional data in the keys (other > > than just "value" which always gets displayed in the tree). I've been > > attempting to conjure a way to store additional properties info for each > > key. > > > > I've been considering using a collection parallel to the treeview to > > store this info but it's not quite as convenient. > > > > Jeff > > And why isn't it convenient? If it is just an interface problem, you can write > your own TreeView by inheriting the TreeView class. > > Regards, > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From bundeshund at ...467... Sat Feb 25 18:46:40 2006 From: bundeshund at ...467... (Hans-Martin Boehme) Date: Sat, 25 Feb 2006 12:46:40 -0500 Subject: [Gambas-user] ERROR: #2: Cannot load class 'Project': Bad format in extern section In-Reply-To: <200504251430.33389.francesco.difusco@...69...> References: <200504241556.23016.francesco.difusco@...69...> <001601c548fe$55f74a50$0200a8c0@...602...> <200504251430.33389.francesco.difusco@...69...> Message-ID: <200602251246.41241.bundeshund@...467...> Hallo Group, after i 'apt-get'ed Gambas 1.0.13 for Mepis, what is a distribution based on Debian etch, i get the same error (ERROR: #2: Cannot load class 'ThisOrThat': Unable to load class file) as Francesco had on April '05, when i try to open one of the examples. Searching for that i only found the mailing-threat you can see below. As you can read there, the answer was to start gambas with 'gambas2.gambas'. What does this mean? Thanks for any help, HM Msg from 25.04.2005 0808:30: > Alle 20:49, domenica 24 aprile 2005, Frank Berg ha scritto: > > hi, > > > > please start gambas with gambas2.gambas > > Ok, it works fine, now. > > Thank you > > Francesco > ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From gambas at ...1... Sat Feb 25 13:37:38 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 25 Feb 2006 13:37:38 +0100 Subject: [Gambas-user] Treeview data In-Reply-To: <1140863837.16960.2.camel@...1368...> References: <1140828843.1753.5.camel@...1368...> <200602251010.26810.gambas@...1...> <1140863837.16960.2.camel@...1368...> Message-ID: <200602251337.38938.gambas@...1...> On Saturday 25 February 2006 11:37, GuruLounge - MailLists wrote: > Benoit, you must realize that I'm stupider in some circles than others. > > In other words there are still many a programing concepts I've yet to > grasp. How do I create my own treeview control "by inheriting the > TreeView class"? Can you pass an example my way to play with? > > Thanx much, > Jeff > You create a class, and you start it with 'INHERITS TreeView'. Then you can instanciate this class with NEW, and use it exactly like a TreeView. But you can add methods, properties, or even overload them as you need. To fit your need, I could add a 'Tag' property to each view items. I will see if I will do that... Not sure :-) Regards, -- Benoit Minisini From raturney at ...159... Sat Feb 25 16:39:49 2006 From: raturney at ...159... (Bob Turney) Date: Sat, 25 Feb 2006 09:39:49 -0600 Subject: [Gambas-user] mysql question (about drivers) Message-ID: <1140881990.14235.27.camel@...861...> This is my first post to the group. Thank you for making this forum available! I have written engineering software with VB5-6 for many years and still do at work. But, at home I switched over about a year ago to Linux (SuSE 9.3, KDE 3.4.0 Level "b"). Finding out about Gambas was one of the best surprises of my switch to Linux! My question is why do I get the following error: "Cannot find driver for database: mysql" when I run the Database example program included with the Gambas package? I am using Gambas 1.0.11 and I have installed gambas-gb-db-mysql (1.0.11-0.gbv.1) described as "The MySQL driver for the Gambas database component". I am running version 5.0.17-standard of MySQL (Community edition). Thank you very much, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From rohnny at ...1248... Sat Feb 25 16:41:56 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 25 Feb 2006 16:41:56 +0100 Subject: [Gambas-user] Re: Treeview data Message-ID: <44007AC4.4070800@...1248...> References: <1140881990.14235.27.camel@...861...> Message-ID: <200602251810.02639.gambas@...1...> On Saturday 25 February 2006 16:39, Bob Turney wrote: > This is my first post to the group. Thank you for making this forum > available! > > I have written engineering software with VB5-6 for many years and still > do at work. But, at home I switched over about a year ago to Linux > (SuSE 9.3, KDE 3.4.0 Level "b"). Finding out about Gambas was one of > the best surprises of my switch to Linux! > > My question is why do I get the following error: "Cannot find driver for > database: mysql" when I run the Database example program included with > the Gambas package? I am using Gambas 1.0.11 and I have installed > gambas-gb-db-mysql (1.0.11-0.gbv.1) described as "The MySQL driver for > the Gambas database component". I am running version 5.0.17-standard of > MySQL (Community edition). > > Thank you very much, > Bob I don't know, it should work. Maybe there is a problem in the package... You get this error message if the file 'gb.db.mysql.so' is missing. This file must be placed with other gambas components. Regards, -- Benoit Minisini From gambas at ...1... Sat Feb 25 18:11:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 25 Feb 2006 18:11:23 +0100 Subject: [Gambas-user] Re: Treeview data In-Reply-To: <44007AC4.4070800@...1248...> References: <44007AC4.4070800@...1248...> Message-ID: <200602251811.23937.gambas@...1...> On Saturday 25 February 2006 16:41, Rohnny Stormo wrote: > can But you < > see < > < > <-- > > How to activate the click event and the other events. > If I have understod you correct. I make a new class and ex call it > mytreeview Just the following in the class > > INHERITS TreeView > > public MyTestString as string > > From my form I do as this > > public myTree as new mytreeview(me) public myTree as MyTreeView myTree = new mytreeview(me) AS "myTree" If you don't give an event name, you will never get events! Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Sat Feb 25 18:14:15 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 25 Feb 2006 12:14:15 -0500 Subject: [Gambas-user] mysql question (about drivers) In-Reply-To: <200602251810.02639.gambas@...1...> References: <1140881990.14235.27.camel@...861...> <200602251810.02639.gambas@...1...> Message-ID: <200602251214.16495.sourceforge-raindog2@...94...> On Sat February 25 2006 12:10, Benoit Minisini wrote: >> the Gambas database component". I am running version >> 5.0.17-standard of MySQL (Community edition). > I don't know, it should work. Maybe there is a problem in the > package... You get this error message if the file > 'gb.db.mysql.so' is missing. This file must be placed with > other gambas components. Will gb.db.mysql work with MySQL 5.0? I know I've only ever built it against 4.x.... Rob From raturney at ...159... Sat Feb 25 18:33:02 2006 From: raturney at ...159... (Bob Turney) Date: Sat, 25 Feb 2006 11:33:02 -0600 Subject: [Gambas-user] mysql question (about drivers) In-Reply-To: <200602251810.02639.gambas@...1...> References: <1140881990.14235.27.camel@...861...> <200602251810.02639.gambas@...1...> Message-ID: <1140888782.14235.32.camel@...861...> On Sat, 2006-02-25 at 18:10 +0100, Benoit Minisini wrote: > On Saturday 25 February 2006 16:39, Bob Turney wrote: > > This is my first post to the group. Thank you for making this forum > > available! > > > > I have written engineering software with VB5-6 for many years and still > > do at work. But, at home I switched over about a year ago to Linux > > (SuSE 9.3, KDE 3.4.0 Level "b"). Finding out about Gambas was one of > > the best surprises of my switch to Linux! > > > > My question is why do I get the following error: "Cannot find driver for > > database: mysql" when I run the Database example program included with > > the Gambas package? I am using Gambas 1.0.11 and I have installed > > gambas-gb-db-mysql (1.0.11-0.gbv.1) described as "The MySQL driver for > > the Gambas database component". I am running version 5.0.17-standard of > > MySQL (Community edition). > > > > Thank you very much, > > Bob > > I don't know, it should work. Maybe there is a problem in the package... You > get this error message if the file 'gb.db.mysql.so' is missing. This file > must be placed with other gambas components. > > Regards, > It doesn't look like I have gb.db.mysql.so unless you meant lib.gb.db.mysql.so? Here's what I found: linux:/home/rat # locate gb.db.mysql.so /usr/lib/gambas/lib.gb.db.mysql.so /usr/lib/gambas/lib.gb.db.mysql.so.0 /usr/lib/gambas/lib.gb.db.mysql.so.0.0.0 Best regards, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From rohnny at ...1248... Sat Feb 25 19:40:40 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 25 Feb 2006 19:40:40 +0100 Subject: [Gambas-user] Re: Treeview data In-Reply-To: <20060225173400.F2E8013142@...773...> References: <20060225173400.F2E8013142@...773...> Message-ID: <4400A4A8.4090107@...1248...> If I have understod you correct. I make a new class and ex call it <> mytreeview Just the following in the class <> <> INHERITS TreeView <> <> public MyTestString as string <> <> From my form I do as this <> <> public myTree as new mytreeview(me) << References: <44007AC4.4070800@...1248...> <200602251811.23937.gambas@...1...> Message-ID: <1140894029.28271.8.camel@...1368...> That worked! You just have to add the event subs yourself, e.g. public sub mytree_click() print "tree clicked!" end Another question is how do you create this object on a form but from a module -- as I generally create the majority of my procedures in a main module or other modules. I only code in forms when necessary. I can create the treeview on a form via a module but I can't access any events and can only access properties for the treeview from the module, not the form. And most importantly, how do I create a new property (string or otherwise) for a specific key, not just the treeview class itself. Thanx, Jeff On Sat, 2006-02-25 at 18:11 +0100, Benoit Minisini wrote: > On Saturday 25 February 2006 16:41, Rohnny Stormo wrote: > > > can > But you > < > > > see > < > > > < > > <-- > > > > > How to activate the click event and the other events. > > If I have understod you correct. I make a new class and ex call it > > mytreeview Just the following in the class > > > > INHERITS TreeView > > > > public MyTestString as string > > > > From my form I do as this > > > > public myTree as new mytreeview(me) > > public myTree as MyTreeView > myTree = new mytreeview(me) AS "myTree" > > If you don't give an event name, you will never get events! > > Regards, > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From gambas at ...1... Sat Feb 25 20:04:36 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 25 Feb 2006 20:04:36 +0100 Subject: [Gambas-user] mysql question (about drivers) In-Reply-To: <1140888782.14235.32.camel@...861...> References: <1140881990.14235.27.camel@...861...> <200602251810.02639.gambas@...1...> <1140888782.14235.32.camel@...861...> Message-ID: <200602252004.36879.gambas@...1...> On Saturday 25 February 2006 18:33, Bob Turney wrote: > On Sat, 2006-02-25 at 18:10 +0100, Benoit Minisini wrote: > > On Saturday 25 February 2006 16:39, Bob Turney wrote: > > > This is my first post to the group. Thank you for making this forum > > > available! > > > > > > I have written engineering software with VB5-6 for many years and still > > > do at work. But, at home I switched over about a year ago to Linux > > > (SuSE 9.3, KDE 3.4.0 Level "b"). Finding out about Gambas was one of > > > the best surprises of my switch to Linux! > > > > > > My question is why do I get the following error: "Cannot find driver > > > for database: mysql" when I run the Database example program included > > > with the Gambas package? I am using Gambas 1.0.11 and I have installed > > > gambas-gb-db-mysql (1.0.11-0.gbv.1) described as "The MySQL driver for > > > the Gambas database component". I am running version 5.0.17-standard > > > of MySQL (Community edition). > > > > > > Thank you very much, > > > Bob > > > > I don't know, it should work. Maybe there is a problem in the package... > > You get this error message if the file 'gb.db.mysql.so' is missing. This > > file must be placed with other gambas components. > > > > Regards, > > It doesn't look like I have gb.db.mysql.so unless you meant > lib.gb.db.mysql.so? > Here's what I found: > > linux:/home/rat # locate gb.db.mysql.so > > /usr/lib/gambas/lib.gb.db.mysql.so > /usr/lib/gambas/lib.gb.db.mysql.so.0 > /usr/lib/gambas/lib.gb.db.mysql.so.0.0.0 > > Best regards, > Bob Yes, in the stable version, there is the 'lib' prefix... So it should work, very strange... Can you send me the output of 'strace' applied to the database example until you get the 'Cannot find database driver' error message? -- Benoit Minisini From gambas at ...1... Sun Feb 26 00:36:11 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 26 Feb 2006 00:36:11 +0100 Subject: [Gambas-user] Re: Treeview data In-Reply-To: <1140894029.28271.8.camel@...1368...> References: <44007AC4.4070800@...1248...> <200602251811.23937.gambas@...1...> <1140894029.28271.8.camel@...1368...> Message-ID: <200602260036.11689.gambas@...1...> On Saturday 25 February 2006 20:00, GuruLounge - MailLists wrote: > That worked! You just have to add the event subs yourself, e.g. > > public sub mytree_click() > > print "tree clicked!" > > end > > Another question is how do you create this object on a form but from a > module -- as I generally create the majority of my procedures in a main > module or other modules. I only code in forms when necessary. By default, an object sends its events to the object where it is created. When the object is created inside a static procedure or function, then the events are sent to static event handlers of the class. To override this default behaviour, use the Object.Attach() method. You should read the documentation about NEW in the wiki. > > I can create the treeview on a form via a module but I can't access any > events and can only access properties for the treeview from the module, > not the form. ??? > > And most importantly, how do I create a new property (string or > otherwise) for a specific key, not just the treeview class itself. You can't do exactly the same thing as the native TreeView class, that returns a "virtual" class when you use the array accessor. But you can implement your own method, like GetData(Key). Regards, -- Benoit Minisini From rohnny at ...1248... Sun Feb 26 08:47:43 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sun, 26 Feb 2006 08:47:43 +0100 Subject: [Gambas-user] Re: Treeview data In-Reply-To: <4400A4A8.4090107@...1248...> References: <20060225173400.F2E8013142@...773...> <4400A4A8.4090107@...1248...> Message-ID: <44015D1F.8090803@...1248...> Rohnny Stormo wrote: > <> If I have understod you correct. I make a new class and ex call it > <> mytreeview Just the following in the class > <> > <> INHERITS TreeView > <> > <> public MyTestString as string > <> > <> From my form I do as this > <> > <> public myTree as new mytreeview(me) > > << > < > < > < > <-- My Test Project 1) Class name cTextBox ' Gambas class file INHERITS TextBox PUBLIC Extra AS String PUBLIC SUB _New(x AS Integer, y AS Integer, width AS Integer, height AS Integer) ME.X = x ME.Y = y ME.Width = width ME.Height = height ME.Extra = "Hello Extra" object.Attach(ME, ME, "me") END PUBLIC SUB me_keyPress() message("Internal sub") END 2) Form1 ' Gambas class file PRIVATE tBox AS CtextBox PUBLIC SUB Form_Open() tBox = NEW CtextBox(10, 10, 100, 20, ME) AS "tBox" END PUBLIC SUB tBox_KeyPress() Message("External Sub - " & tBox.Extra) END This is showing Textbox as it should. It do fire class keypress If I remove the object.attach it do fire the form tbox_keypress How to fire them both? First cTextBox_keypress then, if defined , as here it is, tBox_keypress from the main form. Is it - could it, be possible to have classes that do inherit showing as tool in the gambas toolbox? -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From maillists at ...1367... Sun Feb 26 08:51:11 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Sat, 25 Feb 2006 23:51:11 -0800 Subject: [Gambas-user] Re: Treeview data In-Reply-To: <200602260036.11689.gambas@...1...> References: <44007AC4.4070800@...1248...> <200602251811.23937.gambas@...1...> <1140894029.28271.8.camel@...1368...> <200602260036.11689.gambas@...1...> Message-ID: <1140940271.15389.2.camel@...1368...> I see. So essentially I will probably need to create a collection that parallels the treeview control and use the custom class to access the collection and pull specific properties for each key? Jeff On Sun, 2006-02-26 at 00:36 +0100, Benoit Minisini wrote: > You can't do exactly the same thing as the native TreeView class, that returns > a "virtual" class when you use the array accessor. But you can implement your > own method, like GetData(Key). > > Regards, > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From rohnny at ...1248... Sun Feb 26 10:27:25 2006 From: rohnny at ...1248... (R. Stormo) Date: Sun, 26 Feb 2006 01:27:25 -0800 (PST) Subject: [Gambas-user] ERROR: #2: Cannot load class 'Project': Bad format in extern section In-Reply-To: <200602251246.41241.bundeshund@...467...> References: <200602251246.41241.bundeshund@...467...> Message-ID: <3130960.post@...1379...> Could it be that you do not have the dev. packages? Download gambas2-1.9.25 and compile/make this. Unpack the tar file. From gambas at ...1... Sun Feb 26 11:42:58 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 26 Feb 2006 11:42:58 +0100 Subject: [Gambas-user] Re: Treeview data In-Reply-To: <44015D1F.8090803@...1248...> References: <20060225173400.F2E8013142@...773...> <4400A4A8.4090107@...1248...> <44015D1F.8090803@...1248...> Message-ID: <200602261142.58805.gambas@...1...> On Sunday 26 February 2006 08:47, Rohnny Stormo wrote: > Rohnny Stormo wrote: > > > <> If I have understod you correct. I make a new class and ex call it > > <> mytreeview Just the following in the class > > <> > > <> INHERITS TreeView > > <> > > <> public MyTestString as string > > <> > > <> From my form I do as this > > <> > > <> public myTree as new mytreeview(me) > > > > << > > > > < > > > < > > > < > > <-- > My Test Project > 1) Class name cTextBox > ' Gambas class file > INHERITS TextBox > > PUBLIC Extra AS String > > > PUBLIC SUB _New(x AS Integer, y AS Integer, width AS Integer, height AS > Integer) > > ME.X = x > ME.Y = y > ME.Width = width > ME.Height = height > ME.Extra = "Hello Extra" > object.Attach(ME, ME, "me") > END > PUBLIC SUB me_keyPress() > > message("Internal sub") > > END > > 2) Form1 > ' Gambas class file > > PRIVATE tBox AS CtextBox > PUBLIC SUB Form_Open() > tBox = NEW CtextBox(10, 10, 100, 20, ME) AS "tBox" > END > PUBLIC SUB tBox_KeyPress() > Message("External Sub - " & tBox.Extra) > END > > > This is showing Textbox as it should. It do fire class keypress > If I remove the object.attach it do fire the form tbox_keypress > > How to fire them both? > First cTextBox_keypress then, if defined , as here it is, tBox_keypress > from the main form. > > > > Is it - could it, be possible to have classes that do inherit showing > as tool in the gambas toolbox? You can't do that this way. Once the event is raised, you can't intercept it in the inherited class. You must put your CTextBox inside another MyTextBox control, i.e. replace inheritance by composition in terms of OOP. The CTextBox will raise its KeyPress events, you will get in MyTextBox, and then MyTextBox will raise its own event. In the development version, you will use UserControl for implementing such controls (or UserContainer for containers). See the gb.form component sources to see many controls implemented this way. To be put in the toolbox, classes must be inside a component, declared as EXPORT, and declared in the *.component file. There are other constraints too... You must do that by hand at the moment, as the IDE does not support it transparently at the moment. I didn't document everything yet, as it is not completely stable. Look inside the gb.form component sources again to see what I mean. Regards, -- Benoit Minisini From michael.roemhild at ...1359... Sun Feb 26 12:08:03 2006 From: michael.roemhild at ...1359... (Michael =?iso-8859-1?q?R=F6mhild?=) Date: Sun, 26 Feb 2006 12:08:03 +0100 Subject: [Gambas-user] Neue Adresse Message-ID: <200602261208.03633.michael.roemhild@...1359...> Hi, Das deutschsprachige Gambas-Forum ist nun auch unter www.gambas-club.de erreichbar. Wir freuen uns auf m?chtig viel Zuspruch ;-) roemi.de From bundeshund at ...467... Sun Feb 26 18:35:36 2006 From: bundeshund at ...467... (Hans-Martin Boehme) Date: Sun, 26 Feb 2006 12:35:36 -0500 Subject: [Gambas-user] ERROR: #2: Cannot load class 'Project': Bad format in extern section In-Reply-To: <3130960.post@...1379...> References: <200602251246.41241.bundeshund@...467...> <3130960.post@...1379...> Message-ID: <200602261235.36680.bundeshund@...467...> Am Sonntag, 26. Februar 2006 0404:27 schrieb R. Stormo: <> <> Could it be that you do not have the dev. packages? <> <> Download gambas2-1.9.25 and compile/make this. Unpack the tar file. <> From within the unpacked folder do <> ./configure <> make <> make install <> <> You start gambas with gambas2 from console. <> OK, now i understand that 1.9.xx is gambas2. I have gambas(1) installed. I prefer to use the 'stable' version and don't want to compile on my own. But when i write/code my own application with the installed 1.0.13, it runs well till now, only the examples dont work. HM ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From rohnny at ...1248... Sun Feb 26 12:37:03 2006 From: rohnny at ...1248... (R. Stormo) Date: Sun, 26 Feb 2006 03:37:03 -0800 (PST) Subject: [Gambas-user] Re: Treeview data In-Reply-To: <200602261142.58805.gambas@...1...> References: <1140828843.1753.5.camel@...1368...> <200602251010.26810.gambas@...1...> <1140863837.16960.2.camel@...1368...> <200602251337.38938.gambas@...1...> <44007AC4.4070800@...1248...> <4400A4A8.4090107@...1248...> <44015D1F.8090803@...1248...> <200602261142.58805.gambas@...1...> Message-ID: <3131676.post@...1379...> Benoit Minisini wrote: > > > > You must put your CTextBox inside another MyTextBox control, i.e. replace > inheritance by composition in terms of OOP. > > The CTextBox will raise its KeyPress events, you will get in MyTextBox, > and > then MyTextBox will raise its own event. > > I have to do something wrong because of what ever I do. I only manage to fire one keypress event. I have tried different attach option that do fire only one at the time. cTextBoxClass INHERITS TextBox PUBLIC Extra AS String PUBLIC SUB _new() ME.Extra = "Hello Extra" object.Attach(ME, ME, "my") END PUBLIC SUB my_keyPress() message("Internal sub - Should fire first ") END cTextBox1 Class ' Gambas class file INHERITS cTextBox PUBLIC Extra AS String PUBLIC SUB _New(x AS Integer, y AS Integer, width AS Integer, height AS Integer) ME.X = x ME.Y = y ME.Width = width ME.Height = height ME.Extra = "Hello Extra" 'object.Attach(ME.Parent, ME, "ma") END PUBLIC SUB ma_keyPress() message("Internal sub - 2 , should not fire") END Form1 PRIVATE tBox AS CtextBox1 PUBLIC SUB Form_Open() tBox = NEW CtextBox1(10, 10, 100, 20, ME) AS "tBox" END PUBLIC SUB tBox_KeyPress() Message("External Sub - " & tBox.Extra) END -- Regards Rohnny Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no -- View this message in context: http://www.nabble.com/Treeview-data-t1184255.html#a3131676 Sent from the gambas-user forum at Nabble.com. From raturney at ...159... Sun Feb 26 15:26:13 2006 From: raturney at ...159... (Bob Turney) Date: Sun, 26 Feb 2006 08:26:13 -0600 Subject: [Gambas-user] mysql question (about drivers) PROBLEM SOLVED In-Reply-To: <200602252004.36879.gambas@...1...> References: <1140881990.14235.27.camel@...861...> <200602251810.02639.gambas@...1...> <1140888782.14235.32.camel@...861...> <200602252004.36879.gambas@...1...> Message-ID: <1140963974.7529.12.camel@...861...> No need to examine the strace. I removed MySQL ver 5 and installed ver 4.1. Now the Database example works perfectly! Problem solved. Thanks to everyone for the help, -Bob > >> the Gambas database component". I am running version > >> 5.0.17-standard of MySQL (Community edition). > > I don't know, it should work. Maybe there is a problem in the > > package... You get this error message if the file > > 'gb.db.mysql.so' is missing. This file must be placed with > > other gambas components. > > Will gb.db.mysql work with MySQL 5.0? I know I've only ever > built it against 4.x.... > > Rob On Sat, 2006-02-25 at 20:04 +0100, Benoit Minisini wrote: > On Saturday 25 February 2006 18:33, Bob Turney wrote: > > On Sat, 2006-02-25 at 18:10 +0100, Benoit Minisini wrote: > > > On Saturday 25 February 2006 16:39, Bob Turney wrote: > > > > This is my first post to the group. Thank you for making this forum > > > > available! > > > > > > > > I have written engineering software with VB5-6 for many years and still > > > > do at work. But, at home I switched over about a year ago to Linux > > > > (SuSE 9.3, KDE 3.4.0 Level "b"). Finding out about Gambas was one of > > > > the best surprises of my switch to Linux! > > > > > > > > My question is why do I get the following error: "Cannot find driver > > > > for database: mysql" when I run the Database example program included > > > > with the Gambas package? I am using Gambas 1.0.11 and I have installed > > > > gambas-gb-db-mysql (1.0.11-0.gbv.1) described as "The MySQL driver for > > > > the Gambas database component". I am running version 5.0.17-standard > > > > of MySQL (Community edition). > > > > > > > > Thank you very much, > > > > Bob > > > > > > I don't know, it should work. Maybe there is a problem in the package... > > > You get this error message if the file 'gb.db.mysql.so' is missing. This > > > file must be placed with other gambas components. > > > > > > Regards, > > > > It doesn't look like I have gb.db.mysql.so unless you meant > > lib.gb.db.mysql.so? > > Here's what I found: > > > > linux:/home/rat # locate gb.db.mysql.so > > > > /usr/lib/gambas/lib.gb.db.mysql.so > > /usr/lib/gambas/lib.gb.db.mysql.so.0 > > /usr/lib/gambas/lib.gb.db.mysql.so.0.0.0 > > > > Best regards, > > Bob > > Yes, in the stable version, there is the 'lib' prefix... So it should work, > very strange... Can you send me the output of 'strace' applied to the > database example until you get the 'Cannot find database driver' error > message? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sun Feb 26 21:04:03 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 26 Feb 2006 21:04:03 +0100 Subject: [Gambas-user] mysql question (about drivers) PROBLEM SOLVED In-Reply-To: <1140963974.7529.12.camel@...861...> References: <1140881990.14235.27.camel@...861...> <200602252004.36879.gambas@...1...> <1140963974.7529.12.camel@...861...> Message-ID: <200602262104.03670.gambas@...1...> On Sunday 26 February 2006 15:26, Bob Turney wrote: > No need to examine the strace. I removed MySQL ver 5 and installed ver > 4.1. Now the Database example works perfectly! > > Problem solved. > > Thanks to everyone for the help, > -Bob > Actually, it is just a matter of compiling the mysql database driver with the mysql 5 client library instead of mysql 4 one. Mysql 5 client library can connect mysql 4 anyway. I have to find a way to make mysql 5 a requirement... -- Benoit Minisini From maillists at ...1367... Mon Feb 27 00:29:39 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Sun, 26 Feb 2006 15:29:39 -0800 Subject: [Gambas-user] Creating loadable classes or components Message-ID: <1140996579.15739.3.camel@...1368...> Is there a way to create and compile a project or class then be able to load it in a compiled project similar to a "plug-in" and call it's functions?? I guess similar to a shared library - just don't want to have to write it in C++. I've poked around the documentation on loading classes and components but the documentation is a bit thin. Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From gambas at ...1... Mon Feb 27 00:35:58 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 27 Feb 2006 00:35:58 +0100 Subject: [Gambas-user] Creating loadable classes or components In-Reply-To: <1140996579.15739.3.camel@...1368...> References: <1140996579.15739.3.camel@...1368...> Message-ID: <200602270035.59315.gambas@...1...> On Monday 27 February 2006 00:29, GuruLounge - MailLists wrote: > Is there a way to create and compile a project or class then be able to > load it in a compiled project similar to a "plug-in" and call it's > functions?? > > I guess similar to a shared library - just don't want to have to write > it in C++. > > I've poked around the documentation on loading classes and components > but the documentation is a bit thin. > > Jeff You can create components in gambas in the development version. But what do you need exactly? Do you want to share code between different projects? -- Benoit Minisini From maillists at ...1367... Mon Feb 27 01:38:15 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Sun, 26 Feb 2006 16:38:15 -0800 Subject: [Gambas-user] Creating loadable classes or components In-Reply-To: <200602270035.59315.gambas@...1...> References: <1140996579.15739.3.camel@...1368...> <200602270035.59315.gambas@...1...> Message-ID: <1141000695.15739.11.camel@...1368...> I wanted to build a "plug-in" of sorts. NOT something that I have to add to the project then recompile the project. Just something I could drop into the directory, have the main program look for it and use it if it's available. And I want to be able to call it's functions like a shared library or DLL. For lack of a better example -- similar to a Windows DLL but only instantiated depending on whether the component happens to exist or not... A plug-in... You know, XMMS uses something like this for sound effect and visuals. Anyway, can I do something like that?? Jeff On Mon, 2006-02-27 at 00:35 +0100, Benoit Minisini wrote: > On Monday 27 February 2006 00:29, GuruLounge - MailLists wrote: > > Is there a way to create and compile a project or class then be able to > > load it in a compiled project similar to a "plug-in" and call it's > > functions?? > > > > I guess similar to a shared library - just don't want to have to write > > it in C++. > > > > I've poked around the documentation on loading classes and components > > but the documentation is a bit thin. > > > > Jeff > > You can create components in gambas in the development version. But what do > you need exactly? Do you want to share code between different projects? > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From maillists at ...1367... Mon Feb 27 04:10:46 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Sun, 26 Feb 2006 19:10:46 -0800 Subject: [Gambas-user] Storing picture data in a collection Message-ID: <1141009847.21304.9.camel@...1368...> I'm trying to reference images stored on a form so I can map those images elsewhere. I've an "iconform" with a number of pictureboxes representing icons I want to use in my project. When I do a directory list I want to map icons from that iconform to each item in the columnview directory depending on each directory entry's file type. I've been doing this using a collection with references to individual icons on disk, e.g. FileImages.Add["file-archive.png","archive"] then referencing it using picture[FileImages[filetype]] This works but I'd rather store the icons in the project and reference them without having to pack a bunch of icon files in the final distributable. So I've used pictureboxes on a seperate hidden form but I've not figured how how to reference them - preferably with a hash or collection of sorts. Any ideas how I can do this? Thanx, Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From brian at ...1334... Mon Feb 27 06:19:15 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 26 Feb 2006 21:19:15 -0800 (PST) Subject: [Gambas-user] Storing picture data in a collection In-Reply-To: <1141009847.21304.9.camel@...1368...> References: <1141009847.21304.9.camel@...1368...> Message-ID: <20060226204730.R29976@...1337...> On Sun, 26 Feb 2006, GuruLounge - MailLists wrote: > I'm trying to reference images stored on a form so I can map those > images elsewhere. > > I've an "iconform" with a number of pictureboxes representing icons I > want to use in my project. > > When I do a directory list I want to map icons from that iconform to > each item in the columnview directory depending on each directory > entry's file type. > > I've been doing this using a collection with references to individual > icons on disk, e.g. > > FileImages.Add["file-archive.png","archive"] > then referencing it using > > picture[FileImages[filetype]] > > This works but I'd rather store the icons in the project and reference > them without having to pack a bunch of icon files in the final > distributable. So I've used pictureboxes on a seperate hidden form but > I've not figured how how to reference them - preferably with a hash or > collection of sorts. > > Any ideas how I can do this? I think you theoretically could use the OOP functionality and make a class that inherits from Form (ie: INHERITS Form) but having the IDE recognize it might be an issue since unless the IDE recognizes your derived object(s) it won't get included with the compiled project. This is most likely a question for the gambas gurus that know more about what is going on under the hood. If you are really desperate you could use SHELL based access and use tar, optionally with the -z (gzip), or -j/-y (bzip2) modes. This would still require a single file to go along with your project but one tarball is neat, tidy and optionally compressable. And there won't be the en masse barrage of files using up unnecessary inodes. One entertaining thought that comes to mind is mmap'ing the tarball but to be efficient the tarball would need to be left raw (uncompressed). .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From marco.colnaghi at ...69... Mon Feb 27 12:23:01 2006 From: marco.colnaghi at ...69... (Marco Colnaghi) Date: Mon, 27 Feb 2006 12:23:01 +0100 Subject: [Gambas-user] Listview problems? Message-ID: <01af01c63b90$2b4995d0$3400a8c0@...1314...> Hi everybody, In gambas and libraries version 1.0.13 I hava some questions about listView: 1) Is it possible use html formatted text? My impression is that it isn't. 2) inserting line breaks with "\n" produces the first line broken where requested but the next line has a text much shorter than the list width and terminating with "..." Which is the right way o get multiple lines text? 3) is Scrollbars property working well? If I change it from Vertical to any other value I get errors simply starting the project. Is this an obsoleted component? If yes wich is the right one to use? Thanks in advance, Bye, Marco. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bundeshund at ...467... Mon Feb 27 19:03:22 2006 From: bundeshund at ...467... (Hans-Martin Boehme) Date: Mon, 27 Feb 2006 13:03:22 -0500 Subject: [Gambas-user] ERROR: #2: Cannot load class 'Project': Bad format in extern section In-Reply-To: <200602261235.36680.bundeshund@...467...> References: <200602251246.41241.bundeshund@...467...> <3130960.post@...1379...> <200602261235.36680.bundeshund@...467...> Message-ID: <200602271303.22948.bundeshund@...467...> Am Sonntag, 26. Februar 2006 1212:35 schrieb Hans-Martin Boehme: <> Am Sonntag, 26. Februar 2006 0404:27 schrieb R. Stormo: <> <> <> <> Could it be that you do not have the dev. packages? <> <> <> <> Download gambas2-1.9.25 and compile/make this. Unpack the tar file. <> <> From within the unpacked folder do <> <> ./configure <> <> make <> <> make install <> <> <> <> You start gambas with gambas2 from console. <> <> <> <> OK, now i understand that 1.9.xx is gambas2. I have gambas(1) installed. I <> prefer to use the 'stable' version and don't want to compile on my own. <> <> But when i write/code my own application with the installed 1.0.13, it runs <> well till now, only the examples dont work. <> Well, when i set write-permission to the example-folder and all components, i now have no errors running the examples.... just for info. HM ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From francesco.difusco at ...69... Mon Feb 27 16:35:00 2006 From: francesco.difusco at ...69... (difusco_francesco@tiscali.it) Date: Mon, 27 Feb 2006 16:35:00 +0100 Subject: [Gambas-user] How to use FileChooser and DirChooser Message-ID: How do I use these objects? I don't read anything in the online documentation. My documentation is updated (gambas says). I installed latest version, 1.9.25 Francesco From gambas at ...1... Mon Feb 27 17:32:44 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 27 Feb 2006 17:32:44 +0100 Subject: [Gambas-user] Creating loadable classes or components In-Reply-To: <1141000695.15739.11.camel@...1368...> References: <1140996579.15739.3.camel@...1368...> <200602270035.59315.gambas@...1...> <1141000695.15739.11.camel@...1368...> Message-ID: <200602271732.44642.gambas@...1...> On Monday 27 February 2006 01:38, GuruLounge - MailLists wrote: > I wanted to build a "plug-in" of sorts. NOT something that I have to > add to the project then recompile the project. Just something I could > drop into the directory, have the main program look for it and use it if > it's available. And I want to be able to call it's functions like a > shared library or DLL. > > For lack of a better example -- similar to a Windows DLL but only > instantiated depending on whether the component happens to exist or > not... A plug-in... You know, XMMS uses something like this for sound > effect and visuals. > > Anyway, can I do something like that?? > > Jeff > At the moment, you can only make global components and with the development version. Why don't you want to put all your plugins directly inside the project? There is an not yet documented feature, that allows you to put components in "~/.gambas/lib/gambas2". The interpreter will search into this directory if it cannot find a component inside the standard directory. Maybe you can put your plugins there. To load a component at run-time, use Components.Load(), with an 's'. You will be able to use Component.Load() in the next development version. Regards, -- Benoit Minisini From gambas at ...1... Mon Feb 27 17:35:13 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 27 Feb 2006 17:35:13 +0100 Subject: [Gambas-user] Storing picture data in a collection In-Reply-To: <1141009847.21304.9.camel@...1368...> References: <1141009847.21304.9.camel@...1368...> Message-ID: <200602271735.13169.gambas@...1...> On Monday 27 February 2006 04:10, GuruLounge - MailLists wrote: > I'm trying to reference images stored on a form so I can map those > images elsewhere. > > I've an "iconform" with a number of pictureboxes representing icons I > want to use in my project. > > When I do a directory list I want to map icons from that iconform to > each item in the columnview directory depending on each directory > entry's file type. > > I've been doing this using a collection with references to individual > icons on disk, e.g. > > FileImages.Add["file-archive.png","archive"] > then referencing it using > > picture[FileImages[filetype]] > > This works but I'd rather store the icons in the project and reference > them without having to pack a bunch of icon files in the final > distributable. So I've used pictureboxes on a seperate hidden form but > I've not figured how how to reference them - preferably with a hash or > collection of sorts. > > Any ideas how I can do this? > > Thanx, > Jeff But why don't you put your icons directly in your project? Why putting them inside PictureBox, inside a form, just for using them elsewhere? It is a waste of time and memory! -- Benoit Minisini From gambas at ...1... Mon Feb 27 17:40:22 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 27 Feb 2006 17:40:22 +0100 Subject: [Gambas-user] Listview problems? In-Reply-To: <01af01c63b90$2b4995d0$3400a8c0@...1314...> References: <01af01c63b90$2b4995d0$3400a8c0@...1314...> Message-ID: <200602271740.22509.gambas@...1...> On Monday 27 February 2006 12:23, Marco Colnaghi wrote: > Hi everybody, Hi, > > In gambas and libraries version 1.0.13 > > I hava some questions about listView: > > 1) Is it possible use html formatted text? > My impression is that it isn't. I don't think so too. > > 2) inserting line breaks with "\n" produces > the first line broken where requested but the next line > has a text much shorter than the list width and terminating with "..." > Which is the right way o get multiple lines text? Do you have a screenshot? > > 3) is Scrollbars property working well? > If I change it from Vertical to any other value I get errors simply > starting the project. I have no error there. Which error do you have? Please send me a project that raises your error. Regards, -- Benoit Minisini From maillists at ...1367... Mon Feb 27 19:32:48 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Mon, 27 Feb 2006 10:32:48 -0800 Subject: [Gambas-user] Storing picture data in a collection In-Reply-To: <200602271735.13169.gambas@...1...> References: <1141009847.21304.9.camel@...1368...> <200602271735.13169.gambas@...1...> Message-ID: <1141065169.11716.5.camel@...1368...> I had asked this question before and received the suggestion of using pictureboxes. What other way do you suggest?? I'd be more than happy to try it. Just keep in mind that I'm using them to show mime-types for a directory list. So the icons aren't "fixed", if you know what I mean. If you re-read my original message you'll see I'm trying to move away from using images stored on disk and move them into the project so they are part of the final executable. I hope we're understanding each other here. The icons aren't very big, only 16x16 jobs. So they don't use much memory. Jeff On Mon, 2006-02-27 at 17:35 +0100, Benoit Minisini wrote: > But why don't you put your icons directly in your project? Why putting them > inside PictureBox, inside a form, just for using them elsewhere? It is a > waste of time and memory! > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From gambas at ...1... Mon Feb 27 19:32:47 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 27 Feb 2006 19:32:47 +0100 Subject: [Gambas-user] Storing picture data in a collection In-Reply-To: <1141065169.11716.5.camel@...1368...> References: <1141009847.21304.9.camel@...1368...> <200602271735.13169.gambas@...1...> <1141065169.11716.5.camel@...1368...> Message-ID: <200602271932.47957.gambas@...1...> On Monday 27 February 2006 19:32, GuruLounge - MailLists wrote: > I had asked this question before and received the suggestion of using > pictureboxes. What other way do you suggest?? I'd be more than happy > to try it. Just keep in mind that I'm using them to show mime-types for > a directory list. So the icons aren't "fixed", if you know what I mean. > If you re-read my original message you'll see I'm trying to move away > from using images stored on disk and move them into the project so they > are part of the final executable. > > I hope we're understanding each other here. The icons aren't very big, > only 16x16 jobs. So they don't use much memory. > > Jeff > Just open the gambas IDE project in the source archive, and you will understand what I mean by 'storing images in the project'. Regards, -- Benoit Minisini From maillists at ...1367... Mon Feb 27 19:43:35 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Mon, 27 Feb 2006 10:43:35 -0800 Subject: [Gambas-user] Storing picture data in a collection In-Reply-To: <200602271735.13169.gambas@...1...> References: <1141009847.21304.9.camel@...1368...> <200602271735.13169.gambas@...1...> Message-ID: <1141065816.12120.4.camel@...1368...> Okay, I just discovered I can add "images" to the project. My only questions now are: are they stored in the compile, and how can I associate them with file types. I'm gonna poke around with this and see if I can figure it out. If you post an answer in the mean-time I'd appreciate it. My apologies for so many questions but the documentation is a bit slim. Perhaps when I finish my project I can contribute some time to documentation for you. Perhaps add more examples to things. People tend to learn faster by example. Jeff On Mon, 2006-02-27 at 17:35 +0100, Benoit Minisini wrote: > But why don't you put your icons directly in your project? Why putting them > inside PictureBox, inside a form, just for using them elsewhere? It is a > waste of time and memory! > -- .^. /V\ /( )\ ^^-^^ Linux Advocate From maillists at ...1367... Mon Feb 27 19:54:12 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Mon, 27 Feb 2006 10:54:12 -0800 Subject: [Gambas-user] Storing picture data in a collection In-Reply-To: <200602271735.13169.gambas@...1...> References: <1141009847.21304.9.camel@...1368...> <200602271735.13169.gambas@...1...> Message-ID: <1141066452.12120.8.camel@...1368...> Well, I'll be damned. It seems you were right. I went to a lot of trouble to add images that were... well, already added to the project. I simply had them stored under the project "data" folder under "images" and they seem to get compiled into the project automatically. I created an executable and ran it on another machine where the images don't exist and they were displayed. So much for all that. I simple didn't realize that everything in the project gets compiled into the project. Is this so? Jeff On Mon, 2006-02-27 at 17:35 +0100, Benoit Minisini wrote: > But why don't you put your icons directly in your project? Why putting them > inside PictureBox, inside a form, just for using them elsewhere? It is a > waste of time and memory! > -- .^. /V\ /( )\ ^^-^^ Linux Advocate -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.gif Type: image/gif Size: 37546 bytes Desc: not available URL: From gambas at ...1... Mon Feb 27 20:05:00 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 27 Feb 2006 20:05:00 +0100 Subject: [Gambas-user] Storing picture data in a collection In-Reply-To: <1141066452.12120.8.camel@...1368...> References: <1141009847.21304.9.camel@...1368...> <200602271735.13169.gambas@...1...> <1141066452.12120.8.camel@...1368...> Message-ID: <200602272005.00997.gambas@...1...> On Monday 27 February 2006 19:54, GuruLounge - MailLists wrote: > Well, I'll be damned. It seems you were right. I went to a lot of > trouble to add images that were... well, already added to the project. > I simply had them stored under the project "data" folder under "images" > and they seem to get compiled into the project automatically. I created > an executable and ran it on another machine where the images don't exist > and they were displayed. So much for all that. > > > > I simple didn't realize that everything in the project gets compiled > into the project. Is this so? > > Jeff > Yes. Welcome to Gambas :-) When you make an executable, you get one unique file that is in fact an uncompressed archive of all compiled file and data file of your project. You can put any file in your project, not only images. You access a file located in your project by using relative paths. Regards, -- Benoit Minisini From maillists at ...1367... Mon Feb 27 21:22:26 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Mon, 27 Feb 2006 12:22:26 -0800 Subject: [Gambas-user] Automatic compiling stopped Message-ID: <1141071746.14863.1.camel@...1368...> I'm not sure what happened but my project doesn't seem to compile automatically when I run it. I have to do it manually now then run it. Did I click something I don't know about? Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From isy21 at ...1082... Tue Feb 28 08:01:09 2006 From: isy21 at ...1082... (Ignatius Syofian) Date: Tue, 28 Feb 2006 14:01:09 +0700 Subject: [Gambas-user] slackware Message-ID: <200602281401.09761.isy21@...1082...> hi, anybody know where to download gambas-1.0.13 or above for slackware 10.2 ? and gambas-1.0.14 for suse 10.0, or this release only available with complie from source ? I check link from gambas.sourceforge.net for slackware and suse but not found gambas version 1.0.14 for suse 10.0 and slackware 10.2 -- Thanks in advance Regards, Ignatius Syofian From maillists at ...1367... Tue Feb 28 10:06:12 2006 From: maillists at ...1367... (GuruLounge - MailLists) Date: Tue, 28 Feb 2006 01:06:12 -0800 Subject: [Gambas-user] A window manager? Message-ID: <1141117573.17043.3.camel@...1368...> I was doing a bit of poking around with my GDM sessions and added my project to the list of window managers available. It seems I can run gambas projects as an Xsession. Now all I need to do is figure out how to add window controls to the apps that I start so I can move and minimize things. Any ideas? Jeff -- .^. /V\ /( )\ ^^-^^ Linux Advocate From framedownunder at ...626... Tue Feb 28 11:55:13 2006 From: framedownunder at ...626... (frame down under) Date: Tue, 28 Feb 2006 11:55:13 +0100 Subject: [Gambas-user] A window manager? In-Reply-To: <1141117573.17043.3.camel@...1368...> References: <1141117573.17043.3.camel@...1368...> Message-ID: <82b5035a0602280255p696fbef7m@...627...> Hi Guru. You can run almost any X program without a window manager, In fact i've coded a Point of Sale in Gambas 1.0.13 to behave just like that. However, you lose the ability to manage windows (duh!). 2006/2/28, GuruLounge - MailLists : > I was doing a bit of poking around with my GDM sessions and added my > project to the list of window managers available. > > It seems I can run gambas projects as an Xsession. > > Now all I need to do is figure out how to add window controls to the > apps that I start so I can move and minimize things. > > Any ideas? > > Jeff > > -- > > .^. > /V\ > /( )\ > ^^-^^ > Linux Advocate > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From brian at ...1334... Tue Feb 28 12:14:38 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Tue, 28 Feb 2006 03:14:38 -0800 (PST) Subject: [Gambas-user] A window manager? In-Reply-To: <82b5035a0602280255p696fbef7m@...627...> References: <1141117573.17043.3.camel@...1368...> <82b5035a0602280255p696fbef7m@...627...> Message-ID: <20060228031050.B36834@...1337...> On Tue, 28 Feb 2006, frame down under wrote: > Hi Guru. > > You can run almost any X program without a window manager, In fact > i've coded a Point of Sale in Gambas 1.0.13 to behave just like that. > However, you lose the ability to manage windows (duh!). > > 2006/2/28, GuruLounge - MailLists : > > I was doing a bit of poking around with my GDM sessions and added my > > project to the list of window managers available. > > > > It seems I can run gambas projects as an Xsession. > > > > Now all I need to do is figure out how to add window controls to the > > apps that I start so I can move and minimize things. > > > > Any ideas? You may need to code a component to give your gambas programs low level access to X's window manager API if you want your application to be capable of functioning as a window manager and provide resize, move, grow, shrink, maximize, minimize, close etc. functions to windowed applications running within your Gambas "Window Manager" application. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From mwebb at ...1362... Tue Feb 28 10:17:51 2006 From: mwebb at ...1362... (mike webb) Date: Tue, 28 Feb 2006 09:17:51 +0000 Subject: [Gambas-user] gambas and vnc Message-ID: <4404153F.1090506@...1362...> wrote a little program in gambas that seems to be working so far. i have a question about vnc though. the user is running a winxp computer, he logs into my linux machine using tightvnc. the moment the gnome desktop pops up on his screen i can see the look of confusion on his face. what i would really like is for my just my program to pop up on his screen, it would be easier for him if it looked as much as possiable like a reglure windows app running on his pc. i didn't think doing that would be possiable but after reading about the "gambas as a window manager" mail and finding out that you only need an x session to run gambas i got to thinking maybe it could be done. this is what i have in the xstartup file on my linux machine now. unset SESSION_MANAGER exec etc/X11/xinit/xinitrc anyone know how to change this to give the xp user the illison that their running an windows program on their own computer and not a linux program on another computer. From matthias-laur at ...978... Tue Feb 28 15:42:37 2006 From: matthias-laur at ...978... (Matthias Laur) Date: Tue, 28 Feb 2006 15:42:37 +0100 Subject: AW: [Gambas-user] gambas and vnc In-Reply-To: <4404153F.1090506@...1362...> Message-ID: <0ML21M-1FE6zh0Iv7-0002Ku@...979...> Put your application to the auto-start. Let it run in full-screen-modus. You can use a very thin windowmanager like icewm or fluxbox. Regards, Matthias -----Urspr?ngliche Nachricht----- Von: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von mike webb Gesendet: Dienstag, 28. Februar 2006 10:18 An: gambas mail Betreff: [Gambas-user] gambas and vnc wrote a little program in gambas that seems to be working so far. i have a question about vnc though. the user is running a winxp computer, he logs into my linux machine using tightvnc. the moment the gnome desktop pops up on his screen i can see the look of confusion on his face. what i would really like is for my just my program to pop up on his screen, it would be easier for him if it looked as much as possiable like a reglure windows app running on his pc. i didn't think doing that would be possiable but after reading about the "gambas as a window manager" mail and finding out that you only need an x session to run gambas i got to thinking maybe it could be done. this is what i have in the xstartup file on my linux machine now. unset SESSION_MANAGER exec etc/X11/xinit/xinitrc anyone know how to change this to give the xp user the illison that their running an windows program on their own computer and not a linux program on another computer. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Tue Feb 28 16:52:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 28 Feb 2006 16:52:23 +0100 Subject: [Gambas-user] gambas and vnc In-Reply-To: <4404153F.1090506@...1362...> References: <4404153F.1090506@...1362...> Message-ID: <200602281652.23790.gambas@...1...> On Tuesday 28 February 2006 10:17, mike webb wrote: > wrote a little program in gambas that seems to be working so far. > i have a question about vnc though. > the user is running a winxp computer, he logs into my linux machine > using tightvnc. > the moment the gnome desktop pops up on his screen i can see the look of > confusion on his face. > what i would really like is for my just my program to pop up on his > screen, it would be easier for him if it looked > as much as possiable like a reglure windows app running on his pc. > i didn't think doing that would be possiable but after reading about the > "gambas as a window manager" mail and finding > out that you only need an x session to run gambas i got to thinking > maybe it could be done. > this is what i have in the xstartup file on my linux machine now. > unset SESSION_MANAGER > exec etc/X11/xinit/xinitrc > > anyone know how to change this to give the xp user the illison that > their running an windows program on their own computer and not a linux > program on another computer. > I don't know how Qt applications behave without a window manager. But if you are the only one application launched, you should have the keyboard focus. Then you just need to be maximized. I don't know if Desktop.Width and Desktop.Height are accurated without a window manager. The better I think, would be running a window manager (a light one), and running the gambas application fullscreen. Please try, and describe me your experience. Regards, -- Benoit Minisini From k4p0w3r at ...370... Tue Feb 28 16:55:59 2006 From: k4p0w3r at ...370... (Johan Wistrom) Date: Tue, 28 Feb 2006 15:55:59 +0000 (GMT) Subject: [Gambas-user] keypress() and key repeats In-Reply-To: <20060228031050.B36834@...1337...> Message-ID: <20060228155559.14698.qmail@...1381...> Hello everyone! using gambas 1.0.14 at the moment and gb.qt Calling the form_keypress() functions well. However, when a key is pressed and held a form_keyrelease() is triggered (probably by the keyboard/Xorg autorepeat). Is there a way to code around this behaviour? Johan ___________________________________________________________ Yahoo! Photos ? NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com From email at ...1378... Tue Feb 28 17:08:00 2006 From: email at ...1378... (Ken Harding) Date: Tue, 28 Feb 2006 16:08:00 +0000 Subject: [Gambas-user] Plotting graphs - How-to required. Message-ID: <44047560.2060002@...1378...> Does any have, or know of any, documentation on how the Draw command works. I'd like to start plotting graphs (bar charts, pie charts and line graphs) but documentation on this topic seems a little thin on the ground. Thanks guys Ken From matthias-laur at ...978... Tue Feb 28 16:20:28 2006 From: matthias-laur at ...978... (Matthias Laur) Date: Tue, 28 Feb 2006 16:20:28 +0100 Subject: AW: [Gambas-user] keypress() and key repeats In-Reply-To: <20060228155559.14698.qmail@...1381...> Message-ID: <0MKxQS-1FE7aJ0uPR-0005Xz@...979...> I think you can change this in kde with an option in kcontrol. Regards, Matthias -----Urspr?ngliche Nachricht----- Von: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Johan Wistrom Gesendet: Dienstag, 28. Februar 2006 16:56 An: gambas-user at lists.sourceforge.net Betreff: [Gambas-user] keypress() and key repeats Hello everyone! using gambas 1.0.14 at the moment and gb.qt Calling the form_keypress() functions well. However, when a key is pressed and held a form_keyrelease() is triggered (probably by the keyboard/Xorg autorepeat). Is there a way to code around this behaviour? Johan ___________________________________________________________ Yahoo! Photos ? NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nando_f at ...1382... Tue Feb 28 18:03:33 2006 From: nando_f at ...1382... (nando) Date: Tue, 28 Feb 2006 12:03:33 -0500 Subject: [Gambas-user] Plotting graphs - How-to required. In-Reply-To: <44047560.2060002@...1378...> References: <44047560.2060002@...1378...> Message-ID: <20060228170227.M74564@...1382...> I used the clock example to start with some basic understanding. Draw.Begin ...draw lines...dots..etc Draw.End is my understanding -Fernando ---------- Original Message ----------- From: Ken Harding To: Gambas-user at lists.sourceforge.net Sent: Tue, 28 Feb 2006 16:08:00 +0000 Subject: [Gambas-user] Plotting graphs - How-to required. > Does any have, or know of any, documentation on how the Draw command > works. I'd like to start plotting graphs (bar charts, pie charts and > line graphs) but documentation on this topic seems a little thin on > the ground. > > Thanks guys > Ken > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From sourceforge-raindog2 at ...94... Tue Feb 28 18:13:32 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 28 Feb 2006 12:13:32 -0500 Subject: [Gambas-user] A window manager? In-Reply-To: <1141117573.17043.3.camel@...1368...> References: <1141117573.17043.3.camel@...1368...> Message-ID: <200602281213.32805.sourceforge-raindog2@...94...> On Tue February 28 2006 04:06, GuruLounge - MailLists wrote: > Now all I need to do is figure out how to add window controls > to the apps that I start so I can move and minimize things. > Any ideas? I have done this before, but I created a script file that started a window manager prior to my app. Maybe adding SHELL "sawfish" to the Form_Open of your Gambas app will do what you want? (I picked Sawfish because it has no desktop, panel or any of that stuff, just highly configurable window controls, a root menu, etc.) The other option is to make your Gambas app the size of the user's screen, relocate it to 0,0 (if it'll do that with no window manager present) and do everything on one form with no Message objects or pop-up windows. Rob From k4p0w3r at ...370... Tue Feb 28 18:16:59 2006 From: k4p0w3r at ...370... (Johan Wistrom) Date: Tue, 28 Feb 2006 17:16:59 +0000 (GMT) Subject: AW: [Gambas-user] keypress() and key repeats In-Reply-To: <0MKxQS-1FE7aJ0uPR-0005Xz@...979...> Message-ID: <20060228171659.42480.qmail@...1381...> oh yes definetley. But not everyone is using kde even though they have the qt runtime (as me in fact). When thinking about it just a tiny bit more, I found a way around it. The solution looks messy but it works. That's so typical :) It would be great if a key.repeat (boolean) setting would be added to Gambas Thanks for the feedback Johan --- Matthias Laur wrote: > I think you can change this in kde with an option in > kcontrol. > > Regards, > Matthias > > -----Urspr?ngliche Nachricht----- > Von: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net] Im > Auftrag von Johan > Wistrom > Gesendet: Dienstag, 28. Februar 2006 16:56 > An: gambas-user at lists.sourceforge.net > Betreff: [Gambas-user] keypress() and key repeats > > Hello everyone! > > using gambas 1.0.14 at the moment and gb.qt > > Calling the form_keypress() functions well. However, > when a key is pressed and held a form_keyrelease() > is > triggered (probably by the keyboard/Xorg > autorepeat). > > Is there a way to code around this behaviour? > > Johan > > > > ___________________________________________________________ > > Yahoo! Photos ? NEW, now offering a quality print > service from just 8p a > photo http://uk.photos.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a > groundbreaking scripting language > that extends applications into web and mobile media. > Attend the live webcast > and join the prime developer group breaking into > this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a > groundbreaking scripting language > that extends applications into web and mobile media. > Attend the live webcast > and join the prime developer group breaking into > this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com From m.moeller at ...1299... Tue Feb 28 19:06:57 2006 From: m.moeller at ...1299... (Marcus Moeller) Date: Tue, 28 Feb 2006 19:06:57 +0100 Subject: [Gambas-user] slackware In-Reply-To: <200602281401.09761.isy21@...1082...> References: <200602281401.09761.isy21@...1082...> Message-ID: <200602281906.58062.m.moeller@...1299...> Am Dienstag, 28. Februar 2006 08:01 schrieb Ignatius Syofian: > hi, > > anybody know where to download gambas-1.0.13 or above for slackware 10.2 ? > > and gambas-1.0.14 for suse 10.0, or this release only available with > complie from source ? > I check link from gambas.sourceforge.net for slackware and suse but not > found gambas version 1.0.14 for suse 10.0 and slackware 10.2 Hi, I have both, Slackware packages and SlackBuild Scripts for Gambas1 and Gambas(pre)2. Just send me an eMail and I will attach them to the reply. Best Regards Marcus