From sourceforge-raindog2 at ...94... Fri Dec 1 00:15:56 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 30 Nov 2006 18:15:56 -0500 Subject: [Gambas-user] Gambas TI99 Emulator... In-Reply-To: <200611301435.09833.kchularrit@...734...> References: <200611301435.09833.kchularrit@...734...> Message-ID: <200611301815.57008.sourceforge-raindog2@...94...> On Thursday 30 November 2006 17:35, Kchula-Rrit wrote: > Just to see if I could do it, I'm working on a TI99/4A > emulator written in Gambas. After only fifteen minutes, the > start-up screen showed! Attached is a screen-shot, Kmail You mean 15 minutes of coding, or 15 minutes of runtime? ;) Either way, wow, congratulations.... I really never thought Gambas would be able to pull off something like this. Rob From kchularrit at ...734... Fri Dec 1 00:57:42 2006 From: kchularrit at ...734... (Kchula-Rrit) Date: Thu, 30 Nov 2006 15:57:42 -0800 Subject: [Gambas-user] Gambas TI99 Emulator... In-Reply-To: <200611301815.57008.sourceforge-raindog2@...94...> References: <200611301435.09833.kchularrit@...734...> <200611301815.57008.sourceforge-raindog2@...94...> Message-ID: <200611301557.42764.kchularrit@...734...> On Thursday November 30 2006 03:15 pm, Rob wrote: > On Thursday 30 November 2006 17:35, Kchula-Rrit wrote: > > Just to see if I could do it, I'm working on a TI99/4A > > emulator written in Gambas. After only fifteen minutes, the > > start-up screen showed! Attached is a screen-shot, Kmail > You mean 15 minutes of coding, or 15 minutes of runtime? ;) Hahahaha! If I could code this thing in fifteen minutes I would not be a washed-up nerd with an inferiority complex! I'm sure I can cut the time down to ten minutes.. 8-) > Either way, wow, congratulations.... I really never thought > Gambas would be able to pull off something like this. Thanks- It's a lot harder than I thought it would be. The program would probably run a lot faster if I did not have some extras like register display and I/O signals displayed. I still have keyboard and sound to do for the basic (pun intended) emulation. Then, I have to comment it... 8-| After that come disks, RS232, etc. On a serious note, is there a version of the LCD Numbers control that displays hexadecimal and a negative-sign? That would be SO much cooler than just using text for the register displays! K-R. From eeller at ...826... Fri Dec 1 03:37:50 2006 From: eeller at ...826... (Eldon Eller) Date: Thu, 30 Nov 2006 18:37:50 -0800 Subject: [Gambas-user] Executable still will not execute In-Reply-To: <200611302050.44712.gambas@...1...> References: <456CCE28.9040505@...826...> <200611290934.20292.gambas@...1...> <456DBCE4.9030904@...826...> <200611302050.44712.gambas@...1...> Message-ID: <456F957E.50901@...826...> Thanks, Benoit. That fixed it. You are a prince. EEE Benoit Minisini wrote: > On Wednesday 29 November 2006 18:01, Eldon Eller wrote: > >> Thanks, Benoit. I have attached the archive. Perhaps a word of >> explanation would help: The program is essentially a card file, or >> rather a bunch of card files. Each file *.dex is a card file written in >> plain text with a sentry ("*" & chr$(13) & chr$(10)) to separate cards. >> I have set up a dual boot system with a fat partition (/windows/F) that >> windows and linux can use to share data. I have a VB version of the same >> program in windows. Two or three years ago I wrote a linux version that >> worked as expected. As a result of a disk failure and bad habits, I lost >> that version and recently re-wrote it. This is the one that I cannot get >> to execute. >> >> Benoit Minisini wrote: >> >>> On Wednesday 29 November 2006 01:02, Eldon Eller wrote: >>> >>>> At the risk of repeating myself, I have a little project named QD that >>>> runs properly from within the IDE. I have made an executable, and when I >>>> try to run it I get this message: >>>> >>>> This application has raised an unexpected error and must abort. >>>> [2] Cannot load class 'QD': Unable to load class file. >>>> ?.?.0 >>>> >>>> The project files are attached. They are stored in ~/QDfolder/QD. The >>>> file QD was generated by make executable. Not included here is a file >>>> ~/QDfolder/QD/.gambas/QD. I can send it if it will help. My version of >>>> Gambas is 1.0.17. I get the error message when I try to run >>>> ~/QDfolder/QD/QD. If I open Gambas , choose QD from recent projects, and >>>> click on the green run triangle, the program executes correctly. If you >>>> need more info, please let me know. >>>> >>>> The files are somewhat different than those included with my earlier >>>> plea. In trying to get things to work, I ended up destroying the >>>> QD.class file and had to re-write the whole thing. >>>> >>>> No doubt I am making some dumb error, but I am at my wit's end and >>>> eagerly await any suggestions. EEE >>>> >>> Can you send an archive of your project (Menu Project/Make source archive >>> in the IDE) ? >>> >>> Regards, >>> > > I found: it is a completely stupid bug in the archiver, that don't put in the > executable a class file if its name is the same as the project name. > > As a workaround, just rename your class or your project so that they don't > have the same name. > > Regards, > > From j0e at ...103... Sun Dec 3 02:02:13 2006 From: j0e at ...103... (jum) Date: Sat, 2 Dec 2006 20:02:13 -0500 Subject: [Gambas-user] Some suggestion Message-ID: <200612022002.13516.j0e@...103...> Hi all, After some times work with Gambas, I have some suggestion. May be Benoit or other guys have spare time to look at it :-) 1. Array[].pop can have optional argument, so when we type array.pop(3) then it functioning like array.remove(3) but it returns the removed content. 2. Please added tabstrip.max, tableview.columns.max, .rows.max, etc so there is consistency when there is count property (that have index) there is max property. May be we can announce this feature at Gambas Tip. 3. For control that have border (tableview,gridview,etc), add feature to change the border color and style (very simple style like strip, but of course not like KDE) so we can distinguish control. 4. When I use array like [a,b], when a or b = null the array type is Variant[] can you make it when a or b is String (and another is null) so the array type is String[] and when it Object the array type is Object[]. At this time when I want to make String[] array I use mid function like this: [Mid(a, 1), Mid(b, 1)] so it work fine to me but 'noisy'. Please consider it. Another question: - Last time I ever read that click event at scroll bar not raise an event, but it still happen at TableView, may be you miss it. Regards, L.Jumadi From gambas at ...1... Sat Dec 2 14:12:50 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 2 Dec 2006 14:12:50 +0100 Subject: [Gambas-user] TableView cell alignment, font. In-Reply-To: <6c208f950611291515n488f4fb4o2e3d4f384d921da8@...627...> References: <6c208f950611291515n488f4fb4o2e3d4f384d921da8@...627...> Message-ID: <200612021412.50288.gambas@...1...> On Thursday 30 November 2006 00:15, Jose J. Rodriguez wrote: > So I finally managed to grok how to get data into a TableView. Now I'm > stuck on changing the alignment and font of cells, rows or columns. > The help doesn't ...err.... help, lol. The examples of TableView I've > found don't seem to use this. Is it at all possible? If so, I could > use a little help... > Everything is defined during the Data event, by filling the Data property. You cannot change the font at the moment. The TableView and GridView will merge soon, so some things will change. Regards, -- Benoit Minisini From gambas at ...1... Sat Dec 2 14:14:33 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 2 Dec 2006 14:14:33 +0100 Subject: [Gambas-user] Tollbar and Filechooser In-Reply-To: <7624932.post@...1379...> References: <7624932.post@...1379...> Message-ID: <200612021414.33190.gambas@...1...> On Thursday 30 November 2006 19:26, R. Stormo wrote: > Couple of questions. > 1) When I have a toolbar-container with 4 indexes how to select index 2? > Use the Index property. > 2) How to activate double click when selected a file? > Have tried to filechooser1_dblclick but it does not fire when I double > click on a file. There is an Activate event for that normally (DblClick is not sufficient, as sometimes there is a keyboard shortcut that has the same action). Regards, -- Benoit Minisini From gambas at ...1... Sat Dec 2 14:20:40 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 2 Dec 2006 14:20:40 +0100 Subject: [Gambas-user] use VSplit and Embeded In-Reply-To: <20061127170244.17529.qmail@...1609...> References: <20061127170244.17529.qmail@...1609...> Message-ID: <200612021420.40631.gambas@...1...> On Monday 27 November 2006 18:02, myta toto wrote: > I write program with gambas 1.9.46. > I have some questions about gambas programming. > 1. Can you give me a simple example how to use VSplit or HSplit in program. > eg: I have VSplit and two TextArea. How to use this component then I can > resize two TextArea with VSplit. Just put your two TextArea inside the VSplit. Is it what you need? > 2. I want to modified program Console on > gambas Examples. This program I'm attachmets with my email (projectTa > project). I compiled this program and save executable file in /bin folder > with nmo name file, so that i can call this program with all user from > command line. eg I'm in /home/toto. and I try to call this program. then > write nmo in terminal, then program nmo opened. label1 text show addres > /bin not /home/toto. I want to write program, then when I call that program > from any folder then label1 text show folder where I call this program. ex. > I in /usr. then when I nmo in terminal then this program show /usr folder > not /bin. can you solved this my problem. The current directory of a gambas program is undefined: do not rely on its default value. To get the directory from where you run the gambas program, use Application.Dir. To send it to a shell, use: SHELL "cd " & Quote.Shell(Application.Dir) & ";" & MyCommand Quote.Shell() is a function that quotes a string for a shell command. You will get it in the next version. > 3. Can you give me a simple > example how to use Embedder. I confused how to use this component thank for > your attention > There is a mail about that in the mailing-list: can you search it? Regards, -- Benoit Minisini From gambas at ...1... Sat Dec 2 14:22:06 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 2 Dec 2006 14:22:06 +0100 Subject: [Gambas-user] Problem with internationalization In-Reply-To: <456EB88C.5060309@...357...> References: <456EB88C.5060309@...357...> Message-ID: <200612021422.06575.gambas@...1...> On Thursday 30 November 2006 11:55, Ga?l Le Hec'H wrote: > Hi, > I can't get the internationalization to work on slackware 11 with Gambas > 1.9.47 > The gambas IDE work perfectly with internationalization, I can switch to > fr_FR, es_ES and en_US but not my project. > Am I doing something wrong in my project ? > > Best regards What are you doing exactly to switch to another language when running your project? -- Benoit Minisini From wspinto at ...1405... Sat Dec 2 23:01:34 2006 From: wspinto at ...1405... (wspinto at ...1405...) Date: Sat, 02 Dec 2006 20:01:34 -0200 Subject: [Gambas-user] CRASH In-Reply-To: References: Message-ID: <1165096894.4571f7bee319c@...1433...> root at ...1611...:/home/kurumin/Rotinas# gbc2 -agt OK root at ...1611...:/home/kurumin/Rotinas# gdb gbx2 GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. ---Type to continue, or q to quit--- There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) set args -p (gdb) run Starting program: /usr/bin/gbx2 -p [Thread debugging using libthread_db enabled] [New Thread -1210460480 (LWP 24664)] Qt: gdb: -nograb added to command-line options. Use the -dograb option to enforce grabbing. kbuildsycoca running... KWrited - Escutando no Dispositivo /dev/pts/1 *** glibc detected *** malloc(): memory corruption: 0x081ac1a1 *** Program received signal SIGABRT, Aborted. [Switching to Thread -1210460480 (LWP 24664)] 0xb7dc77c7 in raise () from /lib/tls/libc.so.6 (gdb) bt #0 0xb7dc77c7 in raise () from /lib/tls/libc.so.6 #1 0xb7dc906b in abort () from /lib/tls/libc.so.6 #2 0xb7dfe545 in __fsetlocking () from /lib/tls/libc.so.6 #3 0xb7e05aaf in free () from /lib/tls/libc.so.6 #4 0xb7e06dfc in malloc () from /lib/tls/libc.so.6 ---Type to continue, or q to quit--- #5 0xb71ce71f in _XEnq () from /usr/lib/libX11.so.6 #6 0xb71cfd07 in _XReply () from /usr/lib/libX11.so.6 #7 0xb71c7275 in XSync () from /usr/lib/libX11.so.6 #8 0xb76f8c0a in QApplication::syncX () from /usr/lib/libqt-mt.so.3 #9 0xb7d0777a in MAIN_check_quit () at main.cpp:358 ---Type to continue, or q to quit--- #10 0xb7d10583 in remove_window_check_quit (ob=) at CWindow.cpp:1273 #11 0xb7d111db in ~MyMainWindow (this=0x81b5810) at CWindow.cpp:1307 #12 0xb781a9af in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 #13 0xb7d14638 in ~QFrame (this=0x0) at qframe.h:48 ---Type to continue, or q to quit--- #14 0xb7d146ac in ~MyContainer (this=0x81b2c28) at CContainer.h:102 #15 0xb781a9af in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 #16 0xb7d14638 in ~QFrame (this=0x0) at qframe.h:48 #17 0xb7d146ac in ~MyContainer (this=0x81a5d80) at CContainer.h:102 #18 0xb781a9af in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 ---Type to continue, or q to quit--- #19 0xb7d14638 in ~QFrame (this=0x0) at qframe.h:48 #20 0xb7d146ac in ~MyContainer (this=0x813aed8) at CContainer.h:102 #21 0xb781a9af in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 #22 0xb78ea82e in QMainWindow::~QMainWindow () from /usr/lib/libqt-mt.so.3 #23 0xb7d111f1 in ~MyMainWindow (this=0x8138268) at CWindow.cpp:1310 ---Type to continue, or q to quit--- #24 0xb7d074f1 in MyEventLoop::processEvents (this=0x8075210, flags=4) at main.cpp:255 #25 0xb7790129 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #26 0xb778ff4a in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #27 0xb777776f in QApplication::exec () from /usr/lib/libqt-mt.so.3 ---Type to continue, or q to quit--- #28 0xb7d07bc6 in hook_loop () at main.cpp:444 #29 0x0805f416 in main (argc=0, argv=0xbff271f4) at gbx.c:324 ___________________________________________________________________________________ Com o Click21 voc? tem sempre vantagens! Al?m do email com 1 Gb, Acelerador, Blog, Flog, Games e atendimento 24 horas, voce tamb?m pode falar minutos DDD com a promo??o Click 21 Minutos. Quanto mais voc? navega mais fala DDD. From sourceforge-raindog2 at ...94... Sat Dec 2 23:07:25 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 2 Dec 2006 17:07:25 -0500 Subject: [Gambas-user] Some suggestion In-Reply-To: <200612022002.13516.j0e@...103...> References: <200612022002.13516.j0e@...103...> Message-ID: <200612021707.25700.sourceforge-raindog2@...94...> On Saturday 02 December 2006 20:02, jum wrote: > 1. Array[].pop can have optional argument, so when we type > array.pop(3) then it functioning like array.remove(3) but it > returns the removed content. I can't speak to the other suggestions, but Pop() is really meant to emulate stack operations. I could see having Remove() return the value that it removes from the array, though. Rob From brian at ...1334... Sun Dec 3 00:24:45 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sat, 02 Dec 2006 15:24:45 -0800 (PST) Subject: [Gambas-user] Some suggestion In-Reply-To: <200612021707.25700.sourceforge-raindog2@...94...> References: <200612022002.13516.j0e@...103...> <200612021707.25700.sourceforge-raindog2@...94...> Message-ID: <20061202151539.G19618@...1337...> On Sat, 2 Dec 2006, Rob wrote: > On Saturday 02 December 2006 20:02, jum wrote: > > 1. Array[].pop can have optional argument, so when we type > > array.pop(3) then it functioning like array.remove(3) but it > > returns the removed content. > > I can't speak to the other suggestions, but Pop() is really meant > to emulate stack operations. I could see having Remove() return > the value that it removes from the array, though. maybe add array.pull() perhaps with the normal stack semantics of returning the element removed (the top element of the stack)? stack pulls, by convention, return the top element of the stack before moving the stack pointer (postincrementing the stack pointer) and pushes, by convention, move the stack pointer before storing the data (predecrementing stack pointer). Virtually every CPU (and compsci textbook) out there uses these same semantics for stack operations. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | oevna at ...1543... `=================================================- Hi Spambots, my email address is sputnik at ...1334... Hi Humans, my email address uses rot13 cipher From sourceforge-raindog2 at ...94... Sun Dec 3 10:11:35 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 3 Dec 2006 04:11:35 -0500 Subject: [Gambas-user] Some suggestion In-Reply-To: <20061202151539.G19618@...1337...> References: <200612022002.13516.j0e@...103...> <200612021707.25700.sourceforge-raindog2@...94...> <20061202151539.G19618@...1337...> Message-ID: <200612030411.35748.sourceforge-raindog2@...94...> On Saturday 02 December 2006 18:24, Christopher Brian Jack wrote: > stack pulls, by convention, return the top element of the > stack before moving the stack pointer (postincrementing the > stack pointer) and pushes, by convention, move the stack > pointer before storing the data (predecrementing stack > pointer). Virtually every CPU (and compsci textbook) out > there uses these same semantics for stack operations. The terminology in my CS textbooks all those years ago was "push and pop", not "push and pull". Gambas already has Push() and Pop().... jum was just looking for a method of the Array object that acted like Push and Pop, but would operate on any element of an array, not just the top (last) element. I personally would like to see equivalents to Shift and Unshift (perl functions that behave like Pop and Push but on the bottom (first) element of a list rather than the top element,) but the Add method combined with a Remove method that returned the value it removed would be good enough for me. Rob From rospolosco at ...152... Sun Dec 3 12:25:32 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 3 Dec 2006 12:25:32 +0100 Subject: [Gambas-user] new Quote.Shell() In-Reply-To: <200612021420.40631.gambas@...1...> References: <20061127170244.17529.qmail@...1609...> <200612021420.40631.gambas@...1...> Message-ID: <200612031225.32748.rospolosco@...152...> Alle 14:20, sabato 2 dicembre 2006, Benoit Minisini ha scritto: > To send it to a shell, use: > > SHELL "cd " & Quote.Shell(Application.Dir) & ";" & MyCommand > > Quote.Shell() is a function that quotes a string for a shell command. You > will get it in the next version. Hi, Benoit. Little question: the Quote.Shell() function will be mandatory from next Gambas version? I mean: SHELL "cd " & user.Home will give an error? Regards, Stefano Palmeri From gambas at ...1... Sun Dec 3 12:32:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 3 Dec 2006 12:32:46 +0100 Subject: [Gambas-user] new Quote.Shell() In-Reply-To: <200612031225.32748.rospolosco@...152...> References: <20061127170244.17529.qmail@...1609...> <200612021420.40631.gambas@...1...> <200612031225.32748.rospolosco@...152...> Message-ID: <200612031232.46395.gambas@...1...> On Sunday 03 December 2006 12:25, Stefano Palmeri wrote: > Alle 14:20, sabato 2 dicembre 2006, Benoit Minisini ha scritto: > > To send it to a shell, use: > > > > SHELL "cd " & Quote.Shell(Application.Dir) & ";" & MyCommand > > > > Quote.Shell() is a function that quotes a string for a shell command. You > > will get it in the next version. > > Hi, Benoit. > > Little question: the Quote.Shell() function will be mandatory > from next Gambas version? > I mean: > > SHELL "cd " & user.Home > > will give an error? > > > Regards, > > Stefano Palmeri > SHELL pass its argument to "/bin/sh", so quoting is mandatory. Read 'man bash' to more information about quoting inside bash for example. With Quote.Shell(), you just don't have to do it by hand. Regards, -- Benoit Minisini From rospolosco at ...152... Sun Dec 3 12:44:36 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 3 Dec 2006 12:44:36 +0100 Subject: [Gambas-user] new Quote.Shell() In-Reply-To: <200612031232.46395.gambas@...1...> References: <20061127170244.17529.qmail@...1609...> <200612031225.32748.rospolosco@...152...> <200612031232.46395.gambas@...1...> Message-ID: <200612031244.36652.rospolosco@...152...> Alle 12:32, domenica 3 dicembre 2006, Benoit Minisini ha scritto: > On Sunday 03 December 2006 12:25, Stefano Palmeri wrote: > > Alle 14:20, sabato 2 dicembre 2006, Benoit Minisini ha scritto: > > > To send it to a shell, use: > > > > > > SHELL "cd " & Quote.Shell(Application.Dir) & ";" & MyCommand > > > > > > Quote.Shell() is a function that quotes a string for a shell command. You > > > will get it in the next version. > > > > Hi, Benoit. > > > > Little question: the Quote.Shell() function will be mandatory > > from next Gambas version? > > I mean: > > > > SHELL "cd " & user.Home > > > > will give an error? > > > > > > Regards, > > > > Stefano Palmeri > > > > SHELL pass its argument to "/bin/sh", so quoting is mandatory. > > Read 'man bash' to more information about quoting inside bash for example. > > With Quote.Shell(), you just don't have to do it by hand. > > Regards, > > -- > Benoit Minisini > Sorry. Probably I was not clear. I'm running 1.9.46 and if I add this line to a project, it works: SHELL "cd " & user.home & ";ls" WAIT The question is: in the next version the sintax must be SHELL "cd " & Quote.Shell(user.home) & ";ls" WAIT or the old sintax will work as it does now? Regards, Stefano Palmeri > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jpelletier at ...1612... Sun Dec 3 18:16:39 2006 From: jpelletier at ...1612... (jpelletier) Date: Sun, 03 Dec 2006 12:16:39 -0500 Subject: [Gambas-user] Status bar and Toolbar Message-ID: <45730677.6070808@...1612...> Hi all, Is there an easy way to add a Status bar and a Toolbar in an application? -- Jacques Pelletier From joe1962 at ...626... Sun Dec 3 19:04:51 2006 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Sun, 3 Dec 2006 14:04:51 -0400 Subject: [Gambas-user] Some suggestion In-Reply-To: <200612030411.35748.sourceforge-raindog2@...94...> References: <200612022002.13516.j0e@...103...> <200612021707.25700.sourceforge-raindog2@...94...> <20061202151539.G19618@...1337...> <200612030411.35748.sourceforge-raindog2@...94...> Message-ID: <6c208f950612031004y775c5faflb7018db5c58fd655@...627...> On 12/3/06, Rob wrote: > On Saturday 02 December 2006 18:24, Christopher Brian Jack wrote: > > stack pulls, by convention, return the top element of the > > stack before moving the stack pointer (postincrementing the > > stack pointer) and pushes, by convention, move the stack > > pointer before storing the data (predecrementing stack > > pointer). Virtually every CPU (and compsci textbook) out > > there uses these same semantics for stack operations. > > The terminology in my CS textbooks all those years ago was "push > and pop", not "push and pull". Gambas already has Push() and > Pop().... jum was just looking for a method of the Array object > that acted like Push and Pop, but would operate on any element > of an array, not just the top (last) element. > > I personally would like to see equivalents to Shift and Unshift > (perl functions that behave like Pop and Push but on the bottom > (first) element of a list rather than the top element,) but the > Add method combined with a Remove method that returned the value > it removed would be good enough for me. > I think using Remove for getting values could be confusing. Maybe we need MultiPop and MultiPush? Regards, Joe1962 From sourceforge-raindog2 at ...94... Sun Dec 3 21:06:39 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 3 Dec 2006 15:06:39 -0500 Subject: [Gambas-user] new Quote.Shell() In-Reply-To: <200612031244.36652.rospolosco@...152...> References: <20061127170244.17529.qmail@...1609...> <200612031232.46395.gambas@...1...> <200612031244.36652.rospolosco@...152...> Message-ID: <200612031506.39229.sourceforge-raindog2@...94...> On Sunday 03 December 2006 06:44, Stefano Palmeri wrote: > The question is: in the next version the sintax > must be > SHELL "cd " & Quote.Shell(user.home) & ";ls" WAIT > or the old sintax will work as it does now? Well, it'll definitely work as it always has, but if "User.Home" were a directory named "/;rm -rf *", doing it without Quote.Shell might produce undesirable results. ;) Rob From sourceforge-raindog2 at ...94... Sun Dec 3 21:09:45 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 3 Dec 2006 15:09:45 -0500 Subject: [Gambas-user] Some suggestion In-Reply-To: <6c208f950612031004y775c5faflb7018db5c58fd655@...627...> References: <200612022002.13516.j0e@...103...> <200612030411.35748.sourceforge-raindog2@...94...> <6c208f950612031004y775c5faflb7018db5c58fd655@...627...> Message-ID: <200612031509.45771.sourceforge-raindog2@...94...> On Sunday 03 December 2006 13:04, Jose J. Rodriguez wrote: > I think using Remove for getting values could be confusing. > Maybe we need MultiPop and MultiPush? MultiPop, to me, would mean "pop multiple values into another array" and MultiPush would mean "push multiple values into this array". (In fact, that's how push and pop work in Perl, though it's automatic in Perl's case.) I think that having Remove return a value wouldn't be that confusing, because all existing code would still work. Only those of us who are used to similar functionality in other languages would need to pay attention to the return value. Rob From gambas at ...1... Sun Dec 3 23:07:42 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 3 Dec 2006 23:07:42 +0100 Subject: [Gambas-user] CRASH In-Reply-To: <1165096894.4571f7bee319c@...1433...> References: <1165096894.4571f7bee319c@...1433...> Message-ID: <200612032307.42945.gambas@...1...> On Saturday 02 December 2006 23:01, wspinto at ...1405... wrote: > root at ...1611...:/home/kurumin/Rotinas# gbc2 -agt > OK > root at ...1611...:/home/kurumin/Rotinas# gdb gbx2 > GNU gdb 6.4-debian > Copyright 2005 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > ---Type to continue, or q to quit--- > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i486-linux-gnu"...Using host libthread_db > library "/lib/tls/libthread_db.so.1". > > (gdb) set args -p > (gdb) run > Starting program: /usr/bin/gbx2 -p > [Thread debugging using libthread_db enabled] > [New Thread -1210460480 (LWP 24664)] > Qt: gdb: -nograb added to command-line options. > Use the -dograb option to enforce grabbing. > kbuildsycoca running... > KWrited - Escutando no Dispositivo /dev/pts/1 > *** glibc detected *** malloc(): memory corruption: 0x081ac1a1 *** > > Program received signal SIGABRT, Aborted. > [Switching to Thread -1210460480 (LWP 24664)] > 0xb7dc77c7 in raise () from /lib/tls/libc.so.6 > (gdb) bt > #0 0xb7dc77c7 in raise () from /lib/tls/libc.so.6 > #1 0xb7dc906b in abort () from /lib/tls/libc.so.6 > #2 0xb7dfe545 in __fsetlocking () from /lib/tls/libc.so.6 > #3 0xb7e05aaf in free () from /lib/tls/libc.so.6 > #4 0xb7e06dfc in malloc () from /lib/tls/libc.so.6 > ---Type to continue, or q to quit--- > #5 0xb71ce71f in _XEnq () from /usr/lib/libX11.so.6 > #6 0xb71cfd07 in _XReply () from /usr/lib/libX11.so.6 > #7 0xb71c7275 in XSync () from /usr/lib/libX11.so.6 > #8 0xb76f8c0a in QApplication::syncX () from /usr/lib/libqt-mt.so.3 > #9 0xb7d0777a in MAIN_check_quit () at main.cpp:358 > ---Type to continue, or q to quit--- > #10 0xb7d10583 in remove_window_check_quit (ob=) > at CWindow.cpp:1273 > #11 0xb7d111db in ~MyMainWindow (this=0x81b5810) at CWindow.cpp:1307 > #12 0xb781a9af in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 > #13 0xb7d14638 in ~QFrame (this=0x0) at qframe.h:48 > ---Type to continue, or q to quit--- > #14 0xb7d146ac in ~MyContainer (this=0x81b2c28) at CContainer.h:102 > #15 0xb781a9af in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 > #16 0xb7d14638 in ~QFrame (this=0x0) at qframe.h:48 > #17 0xb7d146ac in ~MyContainer (this=0x81a5d80) at CContainer.h:102 > #18 0xb781a9af in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 > ---Type to continue, or q to quit--- > #19 0xb7d14638 in ~QFrame (this=0x0) at qframe.h:48 > #20 0xb7d146ac in ~MyContainer (this=0x813aed8) at CContainer.h:102 > #21 0xb781a9af in QWidget::~QWidget () from /usr/lib/libqt-mt.so.3 > #22 0xb78ea82e in QMainWindow::~QMainWindow () from /usr/lib/libqt-mt.so.3 > #23 0xb7d111f1 in ~MyMainWindow (this=0x8138268) at CWindow.cpp:1310 > ---Type to continue, or q to quit--- > #24 0xb7d074f1 in MyEventLoop::processEvents (this=0x8075210, flags=4) > at main.cpp:255 > #25 0xb7790129 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 > #26 0xb778ff4a in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 > #27 0xb777776f in QApplication::exec () from /usr/lib/libqt-mt.so.3 > ---Type to continue, or q to quit--- > #28 0xb7d07bc6 in hook_loop () at main.cpp:444 > #29 0x0805f416 in main (argc=0, argv=0xbff271f4) at gbx.c:324 > Can you send the project that makes this crash? -- Benoit Minisini From eeller at ...826... Mon Dec 4 03:47:27 2006 From: eeller at ...826... (Eldon Eller) Date: Sun, 03 Dec 2006 18:47:27 -0800 Subject: [Gambas-user] control groups Message-ID: <45738C3F.5000001@...826...> Please forgive a dumb question. I have grouped a bunch of buttons under the name "dates". An event handler, dates_click(), along with "last" works as expected. Now I would like to step through all the buttons in dates, and take some action based on the properties of the button. I do not know how to do this, and I could not find anything helpful in the documentation. It may be there, but if so, I missed it. Tnx, EEE From brian at ...1334... Mon Dec 4 05:11:54 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 03 Dec 2006 20:11:54 -0800 (PST) Subject: [Gambas-user] control groups In-Reply-To: <45738C3F.5000001@...826...> References: <45738C3F.5000001@...826...> Message-ID: <20061203200620.C26184@...1337...> On Sun, 3 Dec 2006, Eldon Eller wrote: > Please forgive a dumb question. I have grouped a bunch of buttons under > the name "dates". An event handler, dates_click(), along with "last" > works as expected. Now I would like to step through all the buttons in > dates, and take some action based on the properties of the button. I do > not know how to do this, and I could not find anything helpful in the > documentation. It may be there, but if so, I missed it. Set the Tag property in the form designer on each button in the group to a unique word and use SELECT ... END SELECT: SELECT last.Tag CASE "NameOf1stButton" ... CASE "NameOf2ndButton" ... CASE ... ... ... ... DEFAULT ... END SELECT To choose the code to run (based on the button) in the event handler for the group. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | oevna at ...1543... `=================================================- Hi Spambots, my email address is sputnik at ...1334... Hi Humans, my email address uses rot13 cipher From eeller at ...826... Mon Dec 4 05:55:04 2006 From: eeller at ...826... (Eldon Eller) Date: Sun, 03 Dec 2006 20:55:04 -0800 Subject: [Gambas-user] control groups In-Reply-To: <20061203200620.C26184@...1337...> References: <45738C3F.5000001@...826...> <20061203200620.C26184@...1337...> Message-ID: <4573AA28.8040402@...826...> Sorry, I did not state my problem clearly. What I want to do is something like this (which does not work): FOR EACH button IN dates if button.SomeProperty = Something then do SomeSub NEXT Christopher Brian Jack wrote: > On Sun, 3 Dec 2006, Eldon Eller wrote: > > >> Please forgive a dumb question. I have grouped a bunch of buttons under >> the name "dates". An event handler, dates_click(), along with "last" >> works as expected. Now I would like to step through all the buttons in >> dates, and take some action based on the properties of the button. I do >> not know how to do this, and I could not find anything helpful in the >> documentation. It may be there, but if so, I missed it. >> > > Set the Tag property in the form designer on each button in the group to a > unique word and use SELECT ... END SELECT: > > SELECT last.Tag > CASE "NameOf1stButton" > ... > CASE "NameOf2ndButton" > ... > CASE ... > ... > ... > ... > DEFAULT > ... > END SELECT > > To choose the code to run (based on the button) in the event handler for > the group. > > .=================================================. > | Christopher BRIAN Jack aka "Gau of the Veldt" | > +=================================================' > | oevna at ...1543... > `=================================================- > Hi Spambots, my email address is sputnik at ...1334... > Hi Humans, my email address uses rot13 cipher > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From brian at ...1334... Mon Dec 4 07:37:27 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 03 Dec 2006 22:37:27 -0800 (PST) Subject: [Gambas-user] control groups In-Reply-To: <4573AA28.8040402@...826...> References: <45738C3F.5000001@...826...> <20061203200620.C26184@...1337...> <4573AA28.8040402@...826...> Message-ID: <20061203223630.E26215@...1337...> On Sun, 3 Dec 2006, Eldon Eller wrote: > Sorry, I did not state my problem clearly. What I want to do is > something like this (which does not work): > FOR EACH button IN dates > if button.SomeProperty = Something then do SomeSub > NEXT Control groups don't work with FOR EACH. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | oevna at ...1543... `=================================================- Hi Spambots, my email address is sputnik at ...1334... Hi Humans, my email address uses rot13 cipher From eeller at ...826... Mon Dec 4 08:12:25 2006 From: eeller at ...826... (Eldon Eller) Date: Sun, 03 Dec 2006 23:12:25 -0800 Subject: [Gambas-user] control groups In-Reply-To: <20061203223630.E26215@...1337...> References: <45738C3F.5000001@...826...> <20061203200620.C26184@...1337...> <4573AA28.8040402@...826...> <20061203223630.E26215@...1337...> Message-ID: <4573CA59.6090906@...826...> Yes, I know that control groups don't work with FOR EACH. What I am looking for is a way to do what FOR EACH would do if it did work. In short, to look at each control in the control group and determine its properties so I can take some action based on those properties. For example, if the control is a button and the button text is "foo" then change the foreground to red. Please forgive my inability to communicate, but please don't give up on me. Tnx, EEE Christopher Brian Jack wrote: > On Sun, 3 Dec 2006, Eldon Eller wrote: > > >> Sorry, I did not state my problem clearly. What I want to do is >> something like this (which does not work): >> FOR EACH button IN dates >> if button.SomeProperty = Something then do SomeSub >> NEXT >> > > Control groups don't work with FOR EACH. > > .=================================================. > | Christopher BRIAN Jack aka "Gau of the Veldt" | > +=================================================' > | oevna at ...1543... > `=================================================- > Hi Spambots, my email address is sputnik at ...1334... > Hi Humans, my email address uses rot13 cipher > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rospolosco at ...152... Mon Dec 4 09:14:22 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Mon, 4 Dec 2006 09:14:22 +0100 Subject: [Gambas-user] control groups In-Reply-To: <4573CA59.6090906@...826...> References: <45738C3F.5000001@...826...> <20061203223630.E26215@...1337...> <4573CA59.6090906@...826...> Message-ID: <200612040914.22401.rospolosco@...152...> Alle 08:12, luned? 4 dicembre 2006, Eldon Eller ha scritto: > Yes, I know that control groups don't work with FOR EACH. What I am > looking for is a way to do what FOR EACH would do if it did work. In > short, to look at each control in the control group and determine its > properties so I can take some action based on those properties. For > example, if the control is a button and the button text is "foo" then > change the foreground to red. Please forgive my inability to > communicate, but please don't give up on me. Tnx, EEE > > Christopher Brian Jack wrote: > > On Sun, 3 Dec 2006, Eldon Eller wrote: > > > > > >> Sorry, I did not state my problem clearly. What I want to do is > >> something like this (which does not work): > >> FOR EACH button IN dates > >> if button.SomeProperty = Something then do SomeSub > >> NEXT > >> > > > > Control groups don't work with FOR EACH. See the code of attached example. Change "combobox" with "button". I'm sure there's a more elegant way to do what you're asking for, but this a working starting point. Regards, Stefano Palmeri > > > > .=================================================. > > | Christopher BRIAN Jack aka "Gau of the Veldt" | > > +=================================================' > > | oevna at ...1543... > > `=================================================- > > Hi Spambots, my email address is sputnik at ...1334... > > Hi Humans, my email address uses rot13 cipher > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: arrayobjects-0.0.1.tar.gz Type: application/x-tgz Size: 2455 bytes Desc: not available URL: From brian at ...1334... Mon Dec 4 09:40:52 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Mon, 04 Dec 2006 00:40:52 -0800 (PST) Subject: [Gambas-user] control groups In-Reply-To: <4573CA59.6090906@...826...> References: <45738C3F.5000001@...826...> <20061203200620.C26184@...1337...> <4573AA28.8040402@...826...> <20061203223630.E26215@...1337...> <4573CA59.6090906@...826...> Message-ID: <20061204002054.K26673@...1337...> On Sun, 3 Dec 2006, Eldon Eller wrote: > Yes, I know that control groups don't work with FOR EACH. What I am > looking for is a way to do what FOR EACH would do if it did work. In > short, to look at each control in the control group and determine its > properties so I can take some action based on those properties. For > example, if the control is a button and the button text is "foo" then > change the foreground to red. Please forgive my inability to > communicate, but please don't give up on me. Tnx, EEE You could use a Variant[] array and fill it in with the Control handles using a prepended Tag attribute to identify the group members (or the new Object.Name functionality in 2.9.46a but its semantics may change so its use is not recommended for Control groups). For this example set your tags on controls in the group to be of the form group1_BlahBlahBlah for each control in the group. Each tag can be more appropriately set but keep the group1_ part in the tag for all Controls of the group. In class defines: 'Yes the NEW is needed or you will get "Not An Object" errors DIM Group1Controls AS NEW Variant[] In Form_Open: DIM hCtl AS Control FOR EACH hCtl IN ME.Controls 'stick all controls matching the 'prepended group tag into Group1Controls TRY IF INSTR(hCtl.Tag,"group1_")=0 THEN Group1Controls.Add(hCtl) NEXT Once that is done in an event handler the following would suffice: DIM hCtl AS Control FOR EACH hCtl in Group1Controls 'Check properties on each hCtl here 'and do as you were indicating NEXT If you have more than one group create and initialize additional Variant[] arrays for each group you want to be able to iterate with using FOR EACH in Form_Open. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | oevna at ...1543... `=================================================- Hi Spambots, my email address is sputnik at ...1334... Hi Humans, my email address uses rot13 cipher From gael.le-hech at ...357... Mon Dec 4 11:24:00 2006 From: gael.le-hech at ...357... (=?ISO-8859-15?Q?Ga=EBl_Le_Hec=27H?=) Date: Mon, 04 Dec 2006 11:24:00 +0100 Subject: [Gambas-user] Problem with internationalization In-Reply-To: <200612021422.06575.gambas@...1...> References: <456EB88C.5060309@...357...> <200612021422.06575.gambas@...1...> Message-ID: <4573F740.5080509@...357...> Benoit Minisini a ?crit : > On Thursday 30 November 2006 11:55, Ga?l Le Hec'H wrote: > >> Hi, >> I can't get the internationalization to work on slackware 11 with Gambas >> 1.9.47 >> The gambas IDE work perfectly with internationalization, I can switch to >> fr_FR, es_ES and en_US but not my project. >> Am I doing something wrong in my project ? >> >> Best regards >> > > What are you doing exactly to switch to another language when running your > project? > > when I change directly the system variable LANG=fr_FR or LANG=es_ES it works perfectly but when I change System.language = "fr_FR" it doesn't work. I understand that you can't change language on an already displayed form, but even after closing the form and "reshowing" it doesn't change language. In the test-lang project button1 show the "translated" form with one translated label1. in a Konsole window : LANG=fr_FR ./test-lang.gambas -> Label1 is translated in Fran?ais ok LANG=es_ES ./test-lang.gambas -> Label1 is translated in Espagnol ok but if I select system.language with one of the RadioButton and show form1 with button1 it only show the translation according to $LANG. If LANG=es_ES it show Espagnol with RadioButton Espagnol selected but if I select Anglais with RadioButton it show Label1 :-( I doubt to be really clear ;-) but perhaps could you try the project ? To see am I doing wrong. Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: test-lang-0.0.3.tar.gz Type: application/gzip Size: 5245 bytes Desc: not available URL: From timothy.marshal-nichols at ...247... Mon Dec 4 15:46:40 2006 From: timothy.marshal-nichols at ...247... (timothy) Date: Mon, 4 Dec 2006 14:46:40 -0000 Subject: [Gambas-user] control groups In-Reply-To: <200612040914.22401.rospolosco@...152...> Message-ID: <000001c717b3$06d33bc0$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Stefano Palmeri > Sent: 04 December 2006 08:14 > To: mailing list for gambas users > Subject: Re: [Gambas-user] control groups > > Alle 08:12, luned? 4 dicembre 2006, Eldon Eller ha scritto: > > Yes, I know that control groups don't work with FOR EACH. What I am > > looking for is a way to do what FOR EACH would do if it did work. In > > short, to look at each control in the control group and determine its > > properties so I can take some action based on those properties. For > > example, if the control is a button and the button text is "foo" then > > change the foreground to red. Please forgive my inability to > > communicate, but please don't give up on me. Tnx, EEE > > > > Christopher Brian Jack wrote: > > > On Sun, 3 Dec 2006, Eldon Eller wrote: > > > > > > > > >> Sorry, I did not state my problem clearly. What I want to do is > > >> something like this (which does not work): > > >> FOR EACH button IN dates > > >> if button.SomeProperty = Something then do SomeSub > > >> NEXT > > >> > > > > > > Control groups don't work with FOR EACH. > > See the code of attached example. Change "combobox" with "button". > I'm sure there's a more elegant way to do what you're asking for, but > this a working starting point. > > Regards, > > Stefano Palmeri > It is better to use Object.Is() or Object.Type() as in the following example: PUBLIC SUB Form_Open() DIM ctrl AS Control ' Use Is to test the control type FOR EACH ctrl IN ME.Children IF Object.Is(ctrl, "ComboBox") PRINT ctrl.Name & " is a ComboBox" END IF NEXT ' Or use type to find the control FOR EACH ctrl IN ME.Children SELECT Object.Type(ctrl) CASE "Button" PRINT ctrl.Name & " is a Button" CASE "ComboBox" PRINT ctrl.Name & " is a ComboBox" DEFAULT PRINT ctrl.Name & " a " & Object.Type(ctrl) & " is not wanted" END SELECT NEXT END Also you may as well iterate using the Control type (and not Object). This gives you access to more properties. All controls on you form will inherit from Control anyway. This is also shown in the above example. Thanks 8-{)} Timothy Marshal-Nichols From eeller at ...826... Mon Dec 4 19:08:22 2006 From: eeller at ...826... (Eldon Eller) Date: Mon, 04 Dec 2006 10:08:22 -0800 Subject: [Gambas-user] control groups In-Reply-To: <000001c717b3$06d33bc0$6401a8c0@...1587...> References: <000001c717b3$06d33bc0$6401a8c0@...1587...> Message-ID: <45746416.3000807@...826...> Many thanks to all of you have helped. I certainly should be able to take it from here. EEE timothy wrote: > >> -----Original Message----- >> From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- >> bounces at lists.sourceforge.net] On Behalf Of Stefano Palmeri >> Sent: 04 December 2006 08:14 >> To: mailing list for gambas users >> Subject: Re: [Gambas-user] control groups >> >> Alle 08:12, luned? 4 dicembre 2006, Eldon Eller ha scritto: >> >>> Yes, I know that control groups don't work with FOR EACH. What I am >>> looking for is a way to do what FOR EACH would do if it did work. In >>> short, to look at each control in the control group and determine >>> > its > >>> properties so I can take some action based on those properties. For >>> example, if the control is a button and the button text is "foo" >>> > then > >>> change the foreground to red. Please forgive my inability to >>> communicate, but please don't give up on me. Tnx, EEE >>> >>> Christopher Brian Jack wrote: >>> >>>> On Sun, 3 Dec 2006, Eldon Eller wrote: >>>> >>>> >>>> >>>>> Sorry, I did not state my problem clearly. What I want to do is >>>>> something like this (which does not work): >>>>> FOR EACH button IN dates >>>>> if button.SomeProperty = Something then do SomeSub >>>>> NEXT >>>>> >>>>> >>>> Control groups don't work with FOR EACH. >>>> >> See the code of attached example. Change "combobox" with "button". >> I'm sure there's a more elegant way to do what you're asking for, but >> this a working starting point. >> >> Regards, >> >> Stefano Palmeri >> >> > > It is better to use Object.Is() or Object.Type() as in the following > example: > > PUBLIC SUB Form_Open() > DIM ctrl AS Control > ' Use Is to test the control type > FOR EACH ctrl IN ME.Children > IF Object.Is(ctrl, "ComboBox") > PRINT ctrl.Name & " is a ComboBox" > END IF > NEXT > ' Or use type to find the control > FOR EACH ctrl IN ME.Children > SELECT Object.Type(ctrl) > CASE "Button" > PRINT ctrl.Name & " is a Button" > CASE "ComboBox" > PRINT ctrl.Name & " is a ComboBox" > DEFAULT > PRINT ctrl.Name & " a " & Object.Type(ctrl) & " is not wanted" > END SELECT > NEXT > END > > Also you may as well iterate using the Control type (and not Object). > This gives you access to more properties. All controls on you form will > inherit from Control anyway. This is also shown in the above example. > > Thanks > > 8-{)} Timothy Marshal-Nichols > > > > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From BobH at ...1613... Mon Dec 4 21:51:00 2006 From: BobH at ...1613... (Bob Hodges) Date: Mon, 4 Dec 2006 12:51:00 -0800 Subject: [Gambas-user] New Gambas User - Stupid Question Message-ID: <6CF0266AAC78B2469435E413CBEDE79F449D74@...1614...> I am brand new to Gambas and I'm very excited in trying it out. I'm a Windows/Visual Basic guy, and was excited to come across Gambas when I was looking for something like VB in Linux. I'm also somewhat new to Linux in terms of mechanics, though I've been using it on and off for years as a simple workstation when I want to take a break from Windows. I'm used to using Visual Basic and InstallShield to distribute my apps. Now for my stupid Gambas question: How on earth do you distribute a Gambas app? What needs to be included? How do you package it into an installer? Is it a horrible mess? Is there such a thing as a stand-alone distributable app in Linux, and is Gambas capable of it? Much thanks in advance! Bob From asa at ...1615... Mon Dec 4 22:57:17 2006 From: asa at ...1615... (Tony Sales) Date: Mon, 04 Dec 2006 21:57:17 +0000 Subject: [Gambas-user] Festival Text to Speech Message-ID: <1165269437.8505.1.camel@...1616...> I apologise if I have posted this twice! I posted after subscribing but before confirming my subscription! Doh! I am a frustrated Microsoft Windows lecturer/researcher wanting to move to Linux. The only thing holding me back is finding a suitable programming environment. I have looked at several and Gambas looks like the best place to start as it is similar to VB! My question is: Is it possible to call the festival speech engine from Gambas? As I want to write talking applications for blind and partially sighted learners. What I am really after is a piece of sample code calling Festival and getting it to say something etc. Any information gratefully received and might result in one more very small rusty nail in the coffin of Bill Gates! Yours in anticipation, Dr.Bongo From rospolosco at ...152... Tue Dec 5 08:51:26 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Tue, 5 Dec 2006 08:51:26 +0100 Subject: [Gambas-user] Festival Text to Speech In-Reply-To: <1165269437.8505.1.camel@...1616...> References: <1165269437.8505.1.camel@...1616...> Message-ID: <200612050851.26365.rospolosco@...152...> Alle 22:57, luned? 4 dicembre 2006, Tony Sales ha scritto: > I apologise if I have posted this twice! I posted after subscribing but > before confirming my subscription! Doh! > > I am a frustrated Microsoft Windows lecturer/researcher wanting to move > to Linux. The only thing holding me back is finding a suitable > programming environment. I have looked at several and Gambas looks like > the best place to start as it is similar to VB! My question is: Is it > possible to call the festival speech engine from Gambas? As I want to > write talking applications for blind and partially sighted learners. > What I am really after is a piece of sample code calling Festival and > getting it to say something etc. Any information gratefully received and > might result in one more very small rusty nail in the coffin of Bill > Gates! > > Yours in anticipation, > > Dr.Bongo You have to use the SHELL command. For example: SHELL "speak hello" WAIT "speak" is another text-to-speech tool. Change "speak" with "festival". Look for SHELL in the Gambas help. Saluti, Stefano Palmeri From eilert-sprachen at ...221... Tue Dec 5 09:42:16 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 05 Dec 2006 09:42:16 +0100 Subject: [Gambas-user] New Gambas User - Stupid Question In-Reply-To: <6CF0266AAC78B2469435E413CBEDE79F449D74@...1614...> References: <6CF0266AAC78B2469435E413CBEDE79F449D74@...1614...> Message-ID: <457530E8.9020301@...221...> There are no stupid questions, only stupid answers, Bob. I hope this isn't one of those... :-) Bob Hodges schrieb: > > I'm used to using Visual Basic and InstallShield to distribute my apps. > > Now for my stupid Gambas question: > > How on earth do you distribute a Gambas app? What needs to be included? How do you package it into an installer? Is it a horrible mess? Is there such a thing as a stand-alone distributable app in Linux, and is Gambas capable of it? > In contrary to Windows, Linux has an ever growing number of distributions with different versions of libraries. Gambas projects depend on a number of libraries such as Qt. The point is that there isn't "one Qt" but a couple of different versions on the users' computers. And there are more libraries than Qt Gambas depends on, all of which might slightly differ from those you as the developer have on your PC. Distributing a Gambas app as a package would mean making a collection of all those libraries necessary for YOUR Gambas and for THIS app on YOUR computer and distributing them with the package, having a package managing system involved which checks these libraries and their version against those on the client's PC, installing them if necessary, make them known to the package manager on that PC and thus bringing the app to life. This includes the Gambas interpreter itself which might be there in different versions. Up to now, nobody really has dared to take up with this task. There is an option "Make distribution package..." in the Gambas menue, but I don't know what it actually does since I've never used it yet, and there might be progress in the 1.9... series on this which I do not use currently. So the easiest way to make it run on other computers is to install Gambas on that PC (download and ./configure, make, make install has at least the advantage of a Gambas that really fits to every bit on that machine) and then run the Gambas app there. Regards Rolf From timothy.marshal-nichols at ...247... Tue Dec 5 10:31:21 2006 From: timothy.marshal-nichols at ...247... (timothy) Date: Tue, 5 Dec 2006 09:31:21 -0000 Subject: [Gambas-user] Festival Text to Speech In-Reply-To: <1165269437.8505.1.camel@...1616...> Message-ID: <000001c71850$218b0e00$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Tony Sales > Sent: 04 December 2006 21:57 > To: gambas-user at lists.sourceforge.net > Subject: [Gambas-user] Festival Text to Speech > > I apologise if I have posted this twice! I posted after subscribing but > before confirming my subscription! Doh! > > I am a frustrated Microsoft Windows lecturer/researcher wanting to move > to Linux. The only thing holding me back is finding a suitable > programming environment. I have looked at several and Gambas looks like > the best place to start as it is similar to VB! My question is: Is it > possible to call the festival speech engine from Gambas? As I want to > write talking applications for blind and partially sighted learners. > What I am really after is a piece of sample code calling Festival and > getting it to say something etc. Any information gratefully received and > might result in one more very small rusty nail in the coffin of Bill > Gates! > > Yours in anticipation, > > Dr.Bongo > I have attached an example of using the KDE Text-to-Speech system from Gambas. It uses DCOP to communicate with the Text-to-Speech system. If you have the KDE desktop installed then it should work. (Evan if you are using Gnome) You need to setup Text-to-Speech system by adding a talker and enabling it. See the note in the apps help. The Speech and Talker classes are designed to be easy to copy to another Gambas application. You just need to make sure you add the gb.qt.kde component to your application. This application is written in Gambas 1.9.46. I also have a version written in Gambas 1.0.16 if you need it. Thanks 8-{)} Timothy Marshal-Nichols -------------- next part -------------- A non-text attachment was scrubbed... Name: KDESpeech-0.0.1.tar.gz Type: application/x-gzip Size: 46944 bytes Desc: not available URL: From manganeseuk at ...43... Tue Dec 5 15:31:16 2006 From: manganeseuk at ...43... (Andrew Holmes) Date: Tue, 5 Dec 2006 14:31:16 +0000 (GMT) Subject: [Gambas-user] Can Gambas be used with net-curl and openssl0.9.8??? Message-ID: <20061205143116.30446.qmail@...1617...> Hi, After being forced tro reinstall the whole of Mandriva 2007.0, I find that when I try to reinstall gambas, it won't allow the net-curl component of G. to install because of what I suspect is an incompatibility with openssl0.9.8 (calls for 0.9.7, previous version). Has anyone else had this trouble? Cheers, Andrew (in South Korea). ^_^ Send instant messages to your online friends http://uk.messenger.yahoo.com From BobH at ...1613... Tue Dec 5 16:24:02 2006 From: BobH at ...1613... (Bob Hodges) Date: Tue, 5 Dec 2006 07:24:02 -0800 Subject: [Gambas-user] New Gambas User - Stupid Question Message-ID: <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> Excellent answer, and exactly what I was looking for. Thank you for the direct honesty, it helped me understand that Gambas - as cool as it is - is most definitely not for me. At least not at this time. Dang, the one true "VB for Linux" I find - that works GREAT - and it turns out to be an app distribution nightmare. This is a major disappointment considering how cool this product is and how well it works. But there's no such thing as a "killer app" that can't be distributed. Sadly, Gambas brings to light a very difficult achilles heel of Linux in general - out of control library dependencies. It's like trying to herd cats. It's utterly futile. Back to trusty ol' Windows, VB and InstallShield, I guess. At least until the Mono project gets serious about VB, because right now it's still pretty much all about C#. Again, thanks for the info. I'll check back on Gambas in another year or so and see what's happening. -----Original Message----- From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Eilert Sent: Tuesday, December 05, 2006 12:42 AM To: mailing list for gambas users Subject: Re: [Gambas-user] New Gambas User - Stupid Question There are no stupid questions, only stupid answers, Bob. I hope this isn't one of those... :-) Bob Hodges schrieb: > > I'm used to using Visual Basic and InstallShield to distribute my apps. > > Now for my stupid Gambas question: > > How on earth do you distribute a Gambas app? What needs to be included? How do you package it into an installer? Is it a horrible mess? Is there such a thing as a stand-alone distributable app in Linux, and is Gambas capable of it? > In contrary to Windows, Linux has an ever growing number of distributions with different versions of libraries. Gambas projects depend on a number of libraries such as Qt. The point is that there isn't "one Qt" but a couple of different versions on the users' computers. And there are more libraries than Qt Gambas depends on, all of which might slightly differ from those you as the developer have on your PC. Distributing a Gambas app as a package would mean making a collection of all those libraries necessary for YOUR Gambas and for THIS app on YOUR computer and distributing them with the package, having a package managing system involved which checks these libraries and their version against those on the client's PC, installing them if necessary, make them known to the package manager on that PC and thus bringing the app to life. This includes the Gambas interpreter itself which might be there in different versions. Up to now, nobody really has dared to take up with this task. There is an option "Make distribution package..." in the Gambas menue, but I don't know what it actually does since I've never used it yet, and there might be progress in the 1.9... series on this which I do not use currently. So the easiest way to make it run on other computers is to install Gambas on that PC (download and ./configure, make, make install has at least the advantage of a Gambas that really fits to every bit on that machine) and then run the Gambas app there. Regards Rolf ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From horechuk at ...981... Tue Dec 5 18:28:22 2006 From: horechuk at ...981... (Paul Horechuk) Date: Tue, 5 Dec 2006 12:28:22 -0500 Subject: [Gambas-user] New Gambas User - Stupid Question In-Reply-To: <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> References: <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> Message-ID: <200612051228.23062.horechuk@...981...> On Tuesday 05 December 2006 10:24, Bob Hodges wrote: > Excellent answer, and exactly what I was looking for. Thank you for the > direct honesty, it helped me understand that Gambas - as cool as it is - > is most definitely not for me. At least not at this time. > > Dang, the one true "VB for Linux" I find - that works GREAT - and it > turns out to be an app distribution nightmare. This is a major > disappointment considering how cool this product is and how well it > works. But there's no such thing as a "killer app" that can't be > distributed. Sadly, Gambas brings to light a very difficult achilles > heel of Linux in general - out of control library dependencies. It's > like trying to herd cats. It's utterly futile. > > Back to trusty ol' Windows, VB and InstallShield, I guess. At least > until the Mono project gets serious about VB, because right now it's > still pretty much all about C#. > > Again, thanks for the info. I'll check back on Gambas in another year or > so and see what's happening. I think you need to rethink the concept here. Gambas apps are applications for Gambas, not Linux. Its really the same concept as saying a WinXP app is for WinXp, it won't work with Win95 or Win98. There are version specific applications for the various version of Windows. Some require tweaks to the target Windows and InstallShield handles most of the changes, installing DirectX components, or such as required. But if the Windows version is too different, then it will fail as well. In this case, your target customers would require a specific version of Gambas to be installed, to match the version for which you are developing a project. Your application is packaged, using the Make Source Archive function and can then be distributed, noting the required Gambas version. Note that the stable versions (eg 1.13) don't change as frequently as the devel versions (eg 1.9.46). The stable versions are often installable as packages from the distros, such as Ubuntu or FreeBSD. Using stable Gambas versions as your target, application distribution is a lot simpler. Note again, that when you distribute an application, you are providing the source. This is, after all, an Open Source product. If your goal is to distribute proprietary packages for Linux, then you have to rethink your market audience. Herding cats is certainly a good way of describing the linux dependancy hell. In most cases these are handled by the distros and you don't have to worry about these issues. If you develop an app that works under Gambas stable v1.13, then you state that as a requirement. If your target runs Ubuntu or CentOS, then they would install Gambas 1.13 from their repositories. Its the job of the distro and their support staff to handle the herding. All you do is provide the application archive, with instruction for installation. Typically, you would extract it into your customer's gambas projects folder (make one if you wish) and then run Gambas. You then make an executable from your code. Its a simple process. Mass distribution is one thing. It does require you to document everything. Smaller distribution channels allows you to provide the support channel yourself. Your services are what becomes marketable. Personally, I don't see any Linux app to be distributed like a Windows app. Windows applications are closed in their concetual base. The target (although the market is in the millions) is very narrow, with WinXP and Vista as the only viable platforms with MS support. Once your app starts requiring things like Adobe to create PDF files, you can also enter the realm of dependancy hell. Try to find v6 of Acrobat, if you've used that as your requirement. Version 8 is out, but it won't run on Win98. The only way your product can survive is to target the typical WinXP configuration and hope it is in the majority. Linux and the BSD's are about providing Open Source solutions. Source is available and the concept is also about choice. > > > > > > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net > [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Eilert > Sent: Tuesday, December 05, 2006 12:42 AM > To: mailing list for gambas users > Subject: Re: [Gambas-user] New Gambas User - Stupid Question > > > There are no stupid questions, only stupid answers, Bob. > > I hope this isn't one of those... :-) > > Bob Hodges schrieb: > > I'm used to using Visual Basic and InstallShield to distribute my apps. > > > > Now for my stupid Gambas question: > > > > How on earth do you distribute a Gambas app? What needs to be > > included? How do you package it into an installer? Is it a horrible > > mess? Is there such a thing as a stand-alone distributable app in > > Linux, and is Gambas capable of it? > > In contrary to Windows, Linux has an ever growing number of > distributions with different versions of libraries. Gambas projects > depend on a number of libraries such as Qt. The point is that there > isn't "one Qt" but a couple of different versions on the users' > computers. And there are more libraries than Qt Gambas depends on, all > of which might slightly differ from those you as the developer have on > your PC. > > Distributing a Gambas app as a package would mean making a collection of > all those libraries necessary for YOUR Gambas and for THIS app on YOUR > computer and distributing them with the package, having a package > managing system involved which checks these libraries and their version > against those on the client's PC, installing them if necessary, make > them known to the package manager on that PC and thus bringing the app > to life. This includes the Gambas interpreter itself which might be > there in different versions. > > Up to now, nobody really has dared to take up with this task. There is > an option "Make distribution package..." in the Gambas menue, but I > don't know what it actually does since I've never used it yet, and there > might be progress in the 1.9... series on this which I do not use > currently. > > So the easiest way to make it run on other computers is to install > Gambas on that PC (download and ./configure, make, make install has at > least the advantage of a Gambas that really fits to every bit on that > machine) and then run the Gambas app there. > > Regards > > Rolf > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Paul Horechuk Think Free Use Open Source Software From kchularrit at ...734... Tue Dec 5 20:26:04 2006 From: kchularrit at ...734... (Kchula-Rrit) Date: Tue, 5 Dec 2006 11:26:04 -0800 Subject: [Gambas-user] "ERROR: #49: Not a directory: /usr/bin/gambas2/.project" in 1.9.46 for Debian? Message-ID: <200612051126.05888.kchularrit@...734...> After downloading the package-files from apt.linex.org/linex/gambas/1.9.45/sarge/ I get the above error-message when I type "gambas2" at the command-line. This is after upgrading from 1.9.23. In addition, I created a symbolic link between /usr/bin/gambas2.gambas and /usr/bin/gbr2 after reading some articles in this forum. Is there a way I can fix this? Also, I read that the Debian sources are not necessarily the same as the "vanilla"/"official" sources. Does anyone know what the differences are? K-R. From gambas at ...1... Tue Dec 5 20:42:22 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 5 Dec 2006 20:42:22 +0100 Subject: [Gambas-user] New Gambas User - Stupid Question In-Reply-To: <6CF0266AAC78B2469435E413CBEDE79F449D74@...1614...> References: <6CF0266AAC78B2469435E413CBEDE79F449D74@...1614...> Message-ID: <200612052042.22553.gambas@...1...> On Monday 04 December 2006 21:51, Bob Hodges wrote: > I am brand new to Gambas and I'm very excited in trying it out. I'm a > Windows/Visual Basic guy, and was excited to come across Gambas when I was > looking for something like VB in Linux. I'm also somewhat new to Linux in > terms of mechanics, though I've been using it on and off for years as a > simple workstation when I want to take a break from Windows. > > I'm used to using Visual Basic and InstallShield to distribute my apps. > > Now for my stupid Gambas question: > > How on earth do you distribute a Gambas app? What needs to be included? > How do you package it into an installer? Is it a horrible mess? Is there > such a thing as a stand-alone distributable app in Linux, and is Gambas > capable of it? > > Much thanks in advance! > > Bob > Everything relies on the notion of binary "packages", that depends on other binary packages, and so on. The IDE has a menu entry that will make a binary package of your project, and this binary packages will depend on all needed Gambas binary packages (there are about one package for the core interpreter, and one package for each component). Installing the package of your project will install automatically all other needed binary packages. This menu entry is not done yet in the development version, but you have it in the stable version. The big problem is that different distributions have different packaging systems. For example, the menu entry will allow you to make a package for Mandriva that won't work on a Debian or a Fedora. But things will slightly merge in the future, thanks to the normalization and the Portland project. I hope it was clear. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Tue Dec 5 20:47:35 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 5 Dec 2006 14:47:35 -0500 Subject: [Gambas-user] Software installation under Linux In-Reply-To: <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> References: <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> Message-ID: <200612051447.35567.sourceforge-raindog2@...94...> On Tuesday 05 December 2006 10:24, Bob Hodges wrote: > Dang, the one true "VB for Linux" I find - that works GREAT - > and it turns out to be an app distribution nightmare. This is What Rolf said about Gambas applies equally to programs developed in Python, Perl, Java and even C and C++. All of them have libraries and/or interpreters that must be installed to use their programs. Linux application deployment is simply done differently than under Windows. Under Windows, you make a package that includes every library your program needs, and the installer throws them into the Windows system directory, sometimes overwriting a different version of the library which breaks another program, causing "DLL Hell". Under Linux, you create a package for your application, and that package includes a list of dependencies, which modern Linux distributions (Fedora, Ubuntu, Debian, Mandriva, et al.) automatically download and install. "Dependency hell" only comes into play if you're using a newer version of some library than other users of your distribution use. What makes distributing Gambas applications a tougher case at present is that Gambas doesn't have up-to-date packages in every Linux distribution. Python had this problem when it was new and Java still does, due to its licensing issues. Nonetheless, most Linux distributions nowadays have some version of Gambas 1.x, which should be good enough to run any Gambas 1.x program. Gambas2 is a different story, but it'll be a while before it can even be considered beta, when the language itself stops changing. Under Gambas 1.x, making an RPM or Debian package is actually easier than firing up Installshield to package a VB app, and chances are your package will work under most Linux distributions. (The Gentoo and Slackware guys can take care of themselves.) Now, if the whole Linux package management thing really offends you, you can make a statically linked application that includes the right version of Qt and all the other dependencies, which creates an enormous executable. That's what Opera does, for example, though they still distribute packages for about 10 different Linux distros. In this case, the statically linked application would be Gambas itself, or rather, some of the Gambas components. I tried to do this once because of all the VB people coming over and going "Hey, how do I make a setup.exe?" but I'm not familiar enough with makefiles and whatnot to make it happen. At any rate, it's wasteful... why have 10 copies of Qt installed for 10 applications? There is a single-file installation system out there called Klik, and someone has packaged Gambas for it so that it should be easy to package Gambas applications as well. But end users have to have Klik installed in order for Klik files to work. Most don't.... why have a second installation system installed when the one that came with their system works fine? I realize Bob may already have left the list, but it's my hope that other VB programmers will either come to the same realization I did (that Linux package management is usable) or contribute to one of the above two distribution mechanisms. They did so with Tcl, and as a result you can distribute Tcl programs as a single Windows or Linux executable which unpacks and runs itself. Sadly, Tcl sucks, and Gambas is more complex. But it can certainly be done if someone cares enough. One more minor caution.... even if you do come up with a way to distribute Gambas applications as a single "setup.exe" type of thing, your users would have a simpler time with an RPM or Debian package. Consider the steps to install from an executable (a "setup.exe" for example) found on the web: 1. Click the link to the program. 2. Specify a filename to save to, since web browsers won't let you run programs straight off of the web. 3. Open a terminal window. 4. Become root (using su or sudo.) 5. Type "chmod a+x setup.exe". (Downloaded files are not executable by default, mitigating another trojan attack vector.) 6. Run "./setup.exe". 7. Follow the setup procedure. On the other hand, with an RPM or Debian package, it goes like this: 1. Click the link to the program. 2. The browser prompts you to open it in the software installer. 3. The installer prompts you for your root password. 4. Click "Install" in the installer. If the package is not signed, it'll give you a warning and you can decide whether you think it's safe before it does anything. Far from being a problem with Linux, I think the way it handles software installation is one of its strengths, and possibly the biggest reason there have been no major malware outbreaks so far. It's also the reason no one has ever had to write a "system cleaner" program for Linux... every package includes a list of files it creates, and that same list can be used to uninstall cleanly, every time. Rob From rohnny at ...1248... Tue Dec 5 23:24:38 2006 From: rohnny at ...1248... (R. Stormo) Date: Tue, 5 Dec 2006 14:24:38 -0800 (PST) Subject: [Gambas-user] New Gambas User - Stupid Question In-Reply-To: <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> References: <6CF0266AAC78B2469435E413CBEDE79F449D74@...1614...> <457530E8.9020301@...221...> <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> Message-ID: <7709531.post@...1379...> Dang, the one true "VB for Linux" I find - that works GREAT - and it turns out to be an app distribution nightmare. This is a major disappointment considering how cool this product is and how well it works. But there's no such thing as a "killer app" that can't be distributed. Sadly, Gambas brings to light a very difficult achilles heel of Linux in general - out of control library dependencies. It's like trying to herd cats. It's utterly futile. If you sit down and have a look how things are working it's not a nightmare. It's actually very smart. What do you think happen if your program need ole32.dll version x.x.0123 and another program need version need x.x.0124 The program that need x.x0124 overwrites the x.x.0123 and your program could be broke. You need to start installshield again and reinstall. Then the other program will stop. On Linux it would have installed both. :D Bob Hodges-2 wrote: > > Back to trusty ol' Windows, VB and InstallShield, I guess. > lol > Again, thanks for the info. I'll check back on Gambas in another year or > so and see what's happening. > You will be welcome. Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://www.nabble.com/New-Gambas-User---Stupid-Question-tf2756861.html#a7709531 Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Wed Dec 6 08:35:51 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 06 Dec 2006 08:35:51 +0100 Subject: [Gambas-user] Software installation under Linux In-Reply-To: <200612051447.35567.sourceforge-raindog2@...94...> References: <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> <200612051447.35567.sourceforge-raindog2@...94...> Message-ID: <457672D7.4000307@...221...> > > Far from being a problem with Linux, I think the way it handles > software installation is one of its strengths, and possibly the > biggest reason there have been no major malware outbreaks so > far. It's also the reason no one has ever had to write > a "system cleaner" program for Linux... every package includes a > list of files it creates, and that same list can be used to > uninstall cleanly, every time. > 100 % agree Rob :-) Your idea of using the packing managers rather than an independent binary makes sense to me. I've no idea what is needed to do so, but I was kinda surprised by Bob's reaction. Don't know what he was looking for. Do you know how those projects like OOo handle this task? And Firefox for instance, you just throw the app into some directory, and it runs. Strange to me. Rolf From jredrejo at ...626... Wed Dec 6 19:02:43 2006 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Wed, 6 Dec 2006 19:02:43 +0100 Subject: [Gambas-user] "ERROR: #49: Not a directory: /usr/bin/gambas2/.project" in 1.9.46 for Debian? Message-ID: <8eb28a500612061002t3e963b7fmd75cdedf2f9c27e1@...627...> 2006/12/5, Kchula-Rrit : > > > > After downloading the package-files from > apt.linex.org/linex/gambas/1.9.45/sarge/ I get the above error-message > when I > type "gambas2" at the command-line. This is after upgrading from 1.9.23 > . In > addition, I created a symbolic link between /usr/bin/gambas2.gambas > and /usr/bin/gbr2 after reading some articles in this forum. > > Is there a way I can fix this? Also, I read that the Debian sources > are > not necessarily the same as the "vanilla"/"official" sources. Does anyone > know what the differences are? > > K-R. > > I suppose you're refering to 1.9.46, not to 1.9.45. There was a bug in the 1.9.46 gambas2-ide package. It's fixed now, you'll have to download and reinstall it again. Regards. From sourceforge-raindog2 at ...94... Wed Dec 6 20:11:41 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 6 Dec 2006 14:11:41 -0500 Subject: [Gambas-user] Software installation under Linux In-Reply-To: <457672D7.4000307@...221...> References: <6CF0266AAC78B2469435E413CBEDE79F449D7D@...1614...> <200612051447.35567.sourceforge-raindog2@...94...> <457672D7.4000307@...221...> Message-ID: <200612061411.41866.sourceforge-raindog2@...94...> On Wednesday 06 December 2006 02:35, Eilert wrote: > Do you know how those projects like OOo handle this task? And > Firefox for instance, you just throw the app into some > directory, and it runs. Strange to me. Firefox's executable is actually a shellscript that adds the directory of the executable to the LD_LIBRARY_PATH environment variable, to let it access libraries in the installation directory, and then runs the real Firefox binary. I assume Klik works a similar way. You can't do this with Gambas 1.x because its programs are hard coded to look for gbx in /usr/bin. Gambas2 uses "env" to search the path for it, so assuming the library path isn't hardcoded, it should be possible to set the PATH and LD_LIBRARY_PATH and get gbx2 to find the Gambas components and dependent libs in a directory other than /usr/lib. I won't have time to try this for a while, but if it is possible, someone should be able to use the Nullsoft installer or something similar to make a single-executable package that installs in a directory of the user's choice (along with all the dependent libraries, which will make it very big.) And if that's possible, it's probably also possible to auto-create one from Gambas, if that's what users really want. Rob From eilert-sprachen at ...221... Thu Dec 7 09:32:28 2006 From: eilert-sprachen at ...221... (Eilert) Date: Thu, 07 Dec 2006 09:32:28 +0100 Subject: [Gambas-user] Intimate question about DrawingArea Message-ID: <4577D19C.1070107@...221...> Hi folks, just wondered if there's someone here who knows if it's possible to read and write pixels from a DrawingArea to enable shifting rectangular areas to another place. I was thinking about extinguishing an area and redraw it somewhere else, but I don't know where to start. Any ideas? Regards Rolf From lordheavy at ...512... Thu Dec 7 11:40:26 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 7 Dec 2006 11:40:26 +0100 Subject: [Gambas-user] Intimate question about DrawingArea In-Reply-To: <4577D19C.1070107@...221...> References: <4577D19C.1070107@...221...> Message-ID: <200612071140.27087.lordheavy@...512...> Le Jeudi 7 D?cembre 2006 09:32, Eilert a ?crit?: > Hi folks, > > just wondered if there's someone here who knows if it's possible to read > and write pixels from a DrawingArea to enable shifting rectangular areas > to another place. > > I was thinking about extinguishing an area and redraw it somewhere else, > but I don't know where to start. > > Any ideas? > > Regards > > Rolf > You can use DrawingArea.Grab() AS a Picture and Picture[x,y] to read and write pixels You can too use Draw.Begin(DrawingArea) then draw your picture (partially if you want) with Draw.Picture(Picture) http://64.128.110.55/help/comp/gb.qt/drawingarea http://64.128.110.55/help/comp/gb.qt/control/grab http://64.128.110.55/help/comp/gb.qt/draw http://64.128.110.55/help/comp/gb.qt/draw/picture ++ From asa at ...1615... Thu Dec 7 20:14:52 2006 From: asa at ...1615... (Tony Sales) Date: Thu, 07 Dec 2006 19:14:52 +0000 Subject: [Gambas-user] Text to Speech Message-ID: <1165518892.4570.24.camel@...1616...> I would like to thank Stefano and Timothy for their replies to my query regarding calling text to speech from within Gambas. Stafano's suggestion of using the shell was quite straight-forward! the line: SHELL "echo hello world| festival --tts" read out the string "hello world" and the line: SHELL "festival --tts textfile" read out the contents of the text file "textfile"! However I was unable to pass a string from gambas to the shell. I tried: DIM StringX AS String StringX = textbox1.text SHELL "echo StringX| festival --tts" but this just read out "StringX" as a string Is there an easy way to pass variables to the shell? Secondly, this method calls festival anew each time, is there a way of starting festival and keeping it running in the background and sending text to it? I presume this would involve calling festival-server and then using festival-client calls to send the text? Timothy sent me two complete sample applications written in Gambas, one of which will run on my version of Gambas (I can read the code of but not run the other one). The sample program calls the KDE speech manager using DCOP and reads out text. This works really well, but is obviously designed for the KDE desktop (although it works with Gnome). This has plenty of sample code to get me started. I will first try to modify the existing code - probably by adding speech to the navigation of the program itself. Ideally I want a way of calling festival directly in Gnome without having to use the KDE speech manager as a middle-man! I presume this would have to be done using DBUS rather than DCOP which is designed for the KDE desktop environment. Again I would welcome any advice and or suggestions as to how this might be achieved. My ultimate ambition is to build a suite of talking office applications - e-mail, word-processor, internet browser and file manager which do not rely on a third-party screen-reader. The idea being that I could then create a customised Ubuntu CD on which this suite would start up automatically for my blind and partially sighted students! Thanks for all the useful help and advice, I really appreciate people taking the time to share their knowledge with people like myself who are just trying to make the 'final leap of faith' into Linux! drbongo From asa at ...1615... Thu Dec 7 21:08:14 2006 From: asa at ...1615... (Tony Sales) Date: Thu, 07 Dec 2006 20:08:14 +0000 Subject: [Gambas-user] Assigning actions to parent menus events... Message-ID: <1165522094.8195.7.camel@...1616...> I want to assign an action to a menu e.g. that something will happen when the menu item gets focus. This seems to work with the children of a menu, these seems to behave like any other object i.e. when I double-click on it the default event is created in the code window. So I can assign any action to one of these child menu items when they are clicked or get focus etc. However I do not seem to be able to trigger an action when the parent menu gets focus or is clicked etc - I suppose the default action is to open the menu! Want I want to do is make festival text to speech say the name of the menu when it gets focus! I have tried simply changing the name of the child menu to the parent name but this doesn't work. Are parent menu objects logically different to child menu items i.e. is it not possible to assign actions to their events? I know this is possible in VB, presumably there is a way to replicate this in Gambas. drbongo From pvera at ...729... Thu Dec 7 23:02:40 2006 From: pvera at ...729... (Pablo Vera) Date: Thu, 07 Dec 2006 16:02:40 -0600 Subject: [Gambas-user] Text to Speech In-Reply-To: <1165518892.4570.24.camel@...1616...> References: <1165518892.4570.24.camel@...1616...> Message-ID: <45788F80.5080203@...729...> You should do it like this: DIM StringX AS String StringX = textbox1.text SHELL "echo " & StringX & "| festival --tts" Pablo __________________________________________________________ Tony Sales wrote: > I would like to thank Stefano and Timothy for their replies to my query > regarding calling text to speech from within Gambas. > > Stafano's suggestion of using the shell was quite straight-forward! > > the line: > SHELL "echo hello world| festival --tts" > read out the string "hello world" > and the line: > SHELL "festival --tts textfile" > read out the contents of the text file "textfile"! > > However I was unable to pass a string from gambas to the shell. > > I tried: > DIM StringX AS String > StringX = textbox1.text > SHELL "echo StringX| festival --tts" > but this just read out "StringX" as a string > > Is there an easy way to pass variables to the shell? > > Secondly, this method calls festival anew each time, is there a way of > starting festival and keeping it running in the background and sending > text to it? > > I presume this would involve calling festival-server and then using > festival-client calls to send the text? > > Timothy sent me two complete sample applications written in Gambas, one > of which will run on my version of Gambas (I can read the code of but > not run the other one). The sample program calls the KDE speech manager > using DCOP and reads out text. This works really well, but is obviously > designed for the KDE desktop (although it works with Gnome). This has > plenty of sample code to get me started. I will first try to modify the > existing code - probably by adding speech to the navigation of the > program itself. Ideally I want a way of calling festival directly in > Gnome without having to use the KDE speech manager as a middle-man! I > presume this would have to be done using DBUS rather than DCOP which is > designed for the KDE desktop environment. > > Again I would welcome any advice and or suggestions as to how this might > be achieved. My ultimate ambition is to build a suite of talking office > applications - e-mail, word-processor, internet browser and file manager > which do not rely on a third-party screen-reader. The idea being that I > could then create a customised Ubuntu CD on which this suite would start > up automatically for my blind and partially sighted students! > > Thanks for all the useful help and advice, I really appreciate people > taking the time to share their knowledge with people like myself who are > just trying to make the 'final leap of faith' into Linux! > > drbongo > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Fri Dec 8 11:39:58 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Dec 2006 11:39:58 +0100 Subject: [Gambas-user] Assigning actions to parent menus events... In-Reply-To: <1165522094.8195.7.camel@...1616...> References: <1165522094.8195.7.camel@...1616...> Message-ID: <200612081139.59083.rospolosco@...152...> WARNING: possible mail bomb, NOT CHECKED FOR VIRUSES: Maximum number of files (5) exceeded at /usr/local/sbin/amavisd line 5043. -------------- next part -------------- An embedded message was scrubbed... From: Stefano Palmeri Subject: Re: [Gambas-user] Assigning actions to parent menus events... Date: Fri, 8 Dec 2006 11:39:58 +0100 Size: 9104 URL: From rospolosco at ...152... Fri Dec 8 11:40:23 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Dec 2006 11:40:23 +0100 Subject: [Gambas-user] Text to Speech In-Reply-To: <1165518892.4570.24.camel@...1616...> References: <1165518892.4570.24.camel@...1616...> Message-ID: <200612081140.23274.rospolosco@...152...> Alle 20:14, gioved? 7 dicembre 2006, Tony Sales ha scritto: > Secondly, this method calls festival anew each time, is there a way of > starting festival and keeping it running in the background and sending > text to it? Hi. You have to open a festival process, then feed it with the text you want to hear. I've attached a little example (tested with 1.9.46) that uses "speak". Finally, you have to PRINT to the festival process the commands that you use when you open festival in interactive mode. Regards, Stefano Palmeri -------------- next part -------------- A non-text attachment was scrubbed... Name: festival-process-0.0.1.tar.gz Type: application/x-tgz Size: 4148 bytes Desc: not available URL: From rospolosco at ...152... Fri Dec 8 11:47:05 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Dec 2006 11:47:05 +0100 Subject: [Gambas-user] Assigning actions to parent menus events... In-Reply-To: <200612081139.59083.rospolosco@...152...> References: <1165522094.8195.7.camel@...1616...> <200612081139.59083.rospolosco@...152...> Message-ID: <200612081147.05252.rospolosco@...152...> Alle 11:39, venerd? 8 dicembre 2006, Stefano Palmeri ha scritto: > WARNING: possible mail bomb, NOT CHECKED FOR VIRUSES: > ? Maximum number of files (5) exceeded at /usr/local/sbin/amavisd line 5043. Uhm... be quiet. No mail bomb, no viruses. From jscops at ...11... Fri Dec 8 15:42:32 2006 From: jscops at ...11... (Jacky) Date: Fri, 8 Dec 2006 15:42:32 +0100 Subject: [Gambas-user] Change command In-Reply-To: <000001c71850$218b0e00$6401a8c0@...1587...> References: <000001c71850$218b0e00$6401a8c0@...1587...> Message-ID: <200612081542.32284.jscops@...11...> Hi all > Tab = "Fiches_Parametres" & Soc > Utils.db.Exec("ALTER TABLE " & Tab & " CHANGE (Dnfac Dnfac Char(6))") I have a mysql error message but i can't see where i am wrong. Is anybody can help me ? Gambas 1.9.46 under Suse10.1 Many thank's Jack. From rospolosco at ...152... Fri Dec 8 16:26:09 2006 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 8 Dec 2006 16:26:09 +0100 Subject: [Gambas-user] Assigning actions to parent menus events... In-Reply-To: <1165522094.8195.7.camel@...1616...> References: <1165522094.8195.7.camel@...1616...> Message-ID: <200612081626.09353.rospolosco@...152...> WARNING: possible mail bomb, NOT CHECKED FOR VIRUSES: Maximum number of files (5) exceeded at /usr/local/sbin/amavisd line 5043. -------------- next part -------------- An embedded message was scrubbed... From: Stefano Palmeri Subject: Re: [Gambas-user] Assigning actions to parent menus events... Date: Fri, 8 Dec 2006 16:26:09 +0100 Size: 9376 URL: From leandro_anthonioz at ...43... Sun Dec 10 22:43:00 2006 From: leandro_anthonioz at ...43... (Leandro Anthonioz Blanc) Date: Sun, 10 Dec 2006 13:43:00 -0800 (PST) Subject: [Gambas-user] 64 bits support Message-ID: <831535.56794.qm@...1619...> Hi everybody. I think that Gambas is a wonderful language and IDE, and is my principal Linux programming language. Recently, I purchase a 64 bits AMD processor and switch to OpenSuSE 10.2 64 bits, but Gambas 1.9.46a compilation fails. Later I read that "Gambas cannot work with 64 bits pointers at the moment". Therefore, I will switch to OpenSuSE 10.2 32 bits. However, anybody knows a trick which allow compile Gambas in a 64 bit Linux? Thanks in advance! ____________________________________________________________________________________ Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com From timothy.marshal-nichols at ...247... Mon Dec 11 09:44:14 2006 From: timothy.marshal-nichols at ...247... (timothy) Date: Mon, 11 Dec 2006 08:44:14 -0000 Subject: [Gambas-user] Change command In-Reply-To: <200612081542.32284.jscops@...11...> Message-ID: <000e01c71d00$8ad5a050$6401a8c0@...1587...> > -----Original Message----- > From: gambas-user-bounces at lists.sourceforge.net [mailto:gambas-user- > bounces at lists.sourceforge.net] On Behalf Of Jacky > Sent: 08 December 2006 14:43 > To: mailing list for gambas users > Subject: [Gambas-user] Change command > > Hi all > > Tab = "Fiches_Parametres" & Soc > > Utils.db.Exec("ALTER TABLE " & Tab & " CHANGE (Dnfac Dnfac Char(6))") > > I have a mysql error message but i can't see where i am wrong. > Is anybody can help me ? > > Gambas 1.9.46 under Suse10.1 > > Many thank's > > Jack. > There is no need for the () after CHANGE Utils.db.Exec("ALTER TABLE " & Tab & " CHANGE Dnfac Dnfac Char(6)") Thanks 8-{)} Timothy Marshal-Nichols From gambas at ...1... Tue Dec 12 21:00:59 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Dec 2006 21:00:59 +0100 Subject: [Gambas-user] Cannot open help files In-Reply-To: <4564E1FE.4010705@...1237...> References: <4564DEC1.2000502@...1237...> <4564E1FE.4010705@...1237...> Message-ID: <200612122101.00059.gambas@...1...> On Thursday 23 November 2006 00:49, Leonardo Miliani wrote: > Leonardo Miliani ha scritto: > > Strange thing... > > On my desktop I've installed the last Gambas version (1.9.46a) but I'm > > not able to open the help files.. > > Running Gambas from console, when I open a project and type the F1 key, > > I get this message: > > > > Usage: which [options] [--] programname [...] > > Options: --version, -[vV] Print version and exit successfully. > > --help, Print this help and exit successfully. > > --skip-dot Skip directories in PATH that start with a dot. > > --skip-tilde Skip directories in PATH that start with a > > tilde. --show-dot Don't expand a dot to current directory in > > output. --show-tilde Output a tilde for HOME directory for non-root. > > --tty-only Stop processing options on the right if not on tty. > > --all, -a Print all matches in PATH, not just the first > > --read-alias, -i Read list of aliases from stdin. > > --skip-alias Ignore option --read-alias; don't read stdin. > > --read-functions Read shell functions from stdin. > > --skip-functions Ignore option --read-functions; don't read > > stdin. sh: file:///usr/local/share/gambas2/help/tree/index.html: No such > > file or direct > > > > Strange, isn't it? > > Strange because on my laptop I have the same system (Suse 10.1) with the > > same software (Firefox as browser and Gambas 1.9.46a) but I can open > > help files normally and because the file exists... > > Any suggest? > > Solved. > Just chosed a browser in Options/Browser. > But now I think I've found a bug. > If I choose Firefox and close the window then close Gambas, if I open > Gambas again and come back at the options window, I find Epiphany as > browser, even if Gambas calls Firefox when I click on F1. Finally fixed... -- Benoit Minisini From gambas at ...1... Tue Dec 12 21:26:43 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Dec 2006 21:26:43 +0100 Subject: [Gambas-user] Problem with internationalization In-Reply-To: <4573F740.5080509@...357...> References: <456EB88C.5060309@...357...> <200612021422.06575.gambas@...1...> <4573F740.5080509@...357...> Message-ID: <200612122126.43222.gambas@...1...> On Monday 04 December 2006 11:24, Ga?l Le Hec'H wrote: > Benoit Minisini a ?crit : > > On Thursday 30 November 2006 11:55, Ga?l Le Hec'H wrote: > >> Hi, > >> I can't get the internationalization to work on slackware 11 with Gambas > >> 1.9.47 > >> The gambas IDE work perfectly with internationalization, I can switch to > >> fr_FR, es_ES and en_US but not my project. > >> Am I doing something wrong in my project ? > >> > >> Best regards > > > > What are you doing exactly to switch to another language when running > > your project? > > when I change directly the system variable LANG=fr_FR or LANG=es_ES it > works perfectly but when I change System.language = "fr_FR" it doesn't > work. I understand that you can't change language on an already > displayed form, but even after closing the form and "reshowing" it > doesn't change language. > > In the test-lang project button1 show the "translated" form with one > translated label1. > > in a Konsole window : > LANG=fr_FR > ./test-lang.gambas -> Label1 is translated in Fran?ais ok > > LANG=es_ES > ./test-lang.gambas -> Label1 is translated in Espagnol ok > > but if I select system.language with one of the RadioButton and show > form1 with button1 it only show the translation according to $LANG. > If LANG=es_ES it show Espagnol with RadioButton Espagnol selected but if > I select Anglais with RadioButton it show Label1 :-( > > I doubt to be really clear ;-) but perhaps could you try the project ? > To see am I doing wrong. > > > Regards This has been fixed in the svn. -- Benoit Minisini From kchularrit at ...734... Wed Dec 13 19:36:35 2006 From: kchularrit at ...734... (Kchula-Rrit) Date: Wed, 13 Dec 2006 10:36:35 -0800 Subject: [Gambas-user] "ERROR: #49: Not a directory: /usr/bin/gambas2/.project" in 1.9.46 for Debian? In-Reply-To: <8eb28a500612061002t3e963b7fmd75cdedf2f9c27e1@...627...> References: <8eb28a500612061002t3e963b7fmd75cdedf2f9c27e1@...627...> Message-ID: <200612131036.35621.kchularrit@...734...> On Wednesday December 6 2006 10:02 am, Jos? Luis Redrejo wrote: > 2006/12/5, Kchula-Rrit : > > After downloading the package-files from > > apt.linex.org/linex/gambas/1.9.45/sarge/ ... > I suppose you're refering to 1.9.46, not to 1.9.45. > There was a bug in the 1.9.46 gambas2-ide package. It's fixed now, you'll > have to download and reinstall it again. Doh! Yes, it was 1.9.46- I typoed the directory-name. After re-downloading the 1.9.46 version, it works great! Thanks. K-R. From kchularrit at ...734... Wed Dec 13 19:39:46 2006 From: kchularrit at ...734... (Kchula-Rrit) Date: Wed, 13 Dec 2006 10:39:46 -0800 Subject: [Gambas-user] Is there a version of LCDNumbers that displays Hex? Message-ID: <200612131039.47045.kchularrit@...734...> Is there a version of LCDNumbers that displays hexadecimal numbers? I thought it would be cool to display some "read-outs" in my program but LCDNumbers only does decimal. K-R. From lordheavy at ...512... Wed Dec 13 20:10:40 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 13 Dec 2006 20:10:40 +0100 Subject: [Gambas-user] Is there a version of LCDNumbers that displays Hex? In-Reply-To: <200612131039.47045.kchularrit@...734...> References: <200612131039.47045.kchularrit@...734...> Message-ID: <200612132010.40763.lordheavy@...512...> Le Mercredi 13 D?cembre 2006 19:39, Kchula-Rrit a ?crit?: > Is there a version of LCDNumbers that displays hexadecimal numbers? I > thought it would be cool to display some "read-outs" in my program but > LCDNumbers only does decimal. > > K-R. > Qt LCDnumber widget support octal, hexadecimal, binary and decimal output. I guess it should be possible to add suppport for these if "big boss" agreed ;-) Regards, From gael.le-hech at ...357... Thu Dec 14 09:13:30 2006 From: gael.le-hech at ...357... (=?ISO-8859-15?Q?Ga=EBl_Le_Hec=27H?=) Date: Thu, 14 Dec 2006 09:13:30 +0100 Subject: [Gambas-user] Problem with internationalization In-Reply-To: <200612122126.43222.gambas@...1...> References: <456EB88C.5060309@...357...> <200612021422.06575.gambas@...1...> <4573F740.5080509@...357...> <200612122126.43222.gambas@...1...> Message-ID: <458107AA.30505@...357...> Benoit Minisini a ?crit : > On Monday 04 December 2006 11:24, Ga?l Le Hec'H wrote: > >> Benoit Minisini a ?crit : >> >>> On Thursday 30 November 2006 11:55, Ga?l Le Hec'H wrote: >>> >>>> Hi, >>>> I can't get the internationalization to work on slackware 11 with Gambas >>>> 1.9.47 >>>> The gambas IDE work perfectly with internationalization, I can switch to >>>> fr_FR, es_ES and en_US but not my project. >>>> Am I doing something wrong in my project ? >>>> >>>> Best regards >>>> >>> What are you doing exactly to switch to another language when running >>> your project? >>> >> when I change directly the system variable LANG=fr_FR or LANG=es_ES it >> works perfectly but when I change System.language = "fr_FR" it doesn't >> work. I understand that you can't change language on an already >> displayed form, but even after closing the form and "reshowing" it >> doesn't change language. >> >> In the test-lang project button1 show the "translated" form with one >> translated label1. >> >> in a Konsole window : >> LANG=fr_FR >> ./test-lang.gambas -> Label1 is translated in Fran?ais ok >> >> LANG=es_ES >> ./test-lang.gambas -> Label1 is translated in Espagnol ok >> >> but if I select system.language with one of the RadioButton and show >> form1 with button1 it only show the translation according to $LANG. >> If LANG=es_ES it show Espagnol with RadioButton Espagnol selected but if >> I select Anglais with RadioButton it show Label1 :-( >> >> I doubt to be really clear ;-) but perhaps could you try the project ? >> To see am I doing wrong. >> >> >> Regards >> > > This has been fixed in the svn. > > Thanks I make a try. From gael.le-hech at ...357... Thu Dec 14 09:34:13 2006 From: gael.le-hech at ...357... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Thu, 14 Dec 2006 09:34:13 +0100 Subject: [Gambas-user] Content of class Message-ID: <45810C85.2060401@...357...> It's probably a stupid question but, is there an elegant way to copy the content of an instance of a class to an other instance of that class ? From gael.le-hech at ...357... Thu Dec 14 15:07:19 2006 From: gael.le-hech at ...357... (=?ISO-8859-15?Q?Ga=EBl_Le_Hec=27H?=) Date: Thu, 14 Dec 2006 15:07:19 +0100 Subject: [Gambas-user] Problem with internationalization In-Reply-To: <200612122126.43222.gambas@...1...> References: <456EB88C.5060309@...357...> <200612021422.06575.gambas@...1...> <4573F740.5080509@...357...> <200612122126.43222.gambas@...1...> Message-ID: <45815A97.5010106@...357...> Benoit Minisini a ?crit : > On Monday 04 December 2006 11:24, Ga?l Le Hec'H wrote: > >> Benoit Minisini a ?crit : >> >>> On Thursday 30 November 2006 11:55, Ga?l Le Hec'H wrote: >>> >>>> Hi, >>>> I can't get the internationalization to work on slackware 11 with Gambas >>>> 1.9.47 >>>> The gambas IDE work perfectly with internationalization, I can switch to >>>> fr_FR, es_ES and en_US but not my project. >>>> Am I doing something wrong in my project ? >>>> >>>> Best regards >>>> >>> What are you doing exactly to switch to another language when running >>> your project? >>> >> when I change directly the system variable LANG=fr_FR or LANG=es_ES it >> works perfectly but when I change System.language = "fr_FR" it doesn't >> work. I understand that you can't change language on an already >> displayed form, but even after closing the form and "reshowing" it >> doesn't change language. >> >> In the test-lang project button1 show the "translated" form with one >> translated label1. >> >> in a Konsole window : >> LANG=fr_FR >> ./test-lang.gambas -> Label1 is translated in Fran?ais ok >> >> LANG=es_ES >> ./test-lang.gambas -> Label1 is translated in Espagnol ok >> >> but if I select system.language with one of the RadioButton and show >> form1 with button1 it only show the translation according to $LANG. >> If LANG=es_ES it show Espagnol with RadioButton Espagnol selected but if >> I select Anglais with RadioButton it show Label1 :-( >> >> I doubt to be really clear ;-) but perhaps could you try the project ? >> To see am I doing wrong. >> >> >> Regards >> > > This has been fixed in the svn. > > I tried and it works perfectly ! From jscops at ...11... Fri Dec 15 14:15:52 2006 From: jscops at ...11... (Jacky) Date: Fri, 15 Dec 2006 14:15:52 +0100 Subject: [Gambas-user] Change command In-Reply-To: <000001c71850$218b0e00$6401a8c0@...1587...> References: <000001c71850$218b0e00$6401a8c0@...1587...> Message-ID: <200612151415.52731.jscops@...11...> Bonjour ? tous, My code. Tab = "Fiches_Parametres" & Soc Utils.db.Exec("ALTER TABLE " & Tab & " CHANGE (Dnfac Dnfac Char(6))") It seem that this code is bad because mysql return an error message ( Not Gambas ) but i can't see where i am wrong. Is anybody can help me ? Gambas 1.9.46 under Suse10.1 Many thank's Jack. From pvera at ...729... Fri Dec 15 15:41:59 2006 From: pvera at ...729... (Pablo Vera) Date: Fri, 15 Dec 2006 08:41:59 -0600 Subject: [Gambas-user] Change command In-Reply-To: <200612151415.52731.jscops@...11...> References: <000001c71850$218b0e00$6401a8c0@...1587...> <200612151415.52731.jscops@...11...> Message-ID: <4582B437.3080804@...729...> I think you have an extra pair of parenthesis and maybe you need to quote the table name, something like this: Utils.db.Exec("ALTER TABLE `" & Tab & "` CHANGE Dnfac Dnfac Char(6)") What error is MySQL returning ? Pablo Jacky wrote: > Bonjour ? tous, > > My code. > Tab = "Fiches_Parametres" & Soc > Utils.db.Exec("ALTER TABLE " & Tab & " CHANGE (Dnfac Dnfac Char(6))") > > It seem that this code is bad because mysql return an error message ( Not > Gambas ) but i can't see where i am wrong. > Is anybody can help me ? > > Gambas 1.9.46 under Suse10.1 > > Many thank's > > Jack. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jscops at ...11... Fri Dec 15 17:05:37 2006 From: jscops at ...11... (Jacky) Date: Fri, 15 Dec 2006 17:05:37 +0100 Subject: [Gambas-user] Change command In-Reply-To: <4582B437.3080804@...729...> References: <000001c71850$218b0e00$6401a8c0@...1587...> <200612151415.52731.jscops@...11...> <4582B437.3080804@...729...> Message-ID: <200612151705.38070.jscops@...11...> Le Vendredi 15 D?cembre 2006 15:41, Pablo Vera a ?crit?: > I think you have an extra pair of parenthesis and maybe you need to > quote the table name, something like this: > > Utils.db.Exec("ALTER TABLE `" & Tab & "` CHANGE Dnfac Dnfac Char(6)") > > What error is MySQL returning ? > > Pablo Salut Pablo Without quote your syntax is right. The syntax is : Utils.db.Exec("ALTER TABLE " & Tab & " CHANGE Dnfac Dnfac Char(6)") Yet it is strange because with ADD we can use bracket. Utils.db.Exec("ALTER TABLE " & Tab & " ADD (Num2 INTEGER(6) ,Num3 INTEGER(6))") but we can also not use them. Utils.db.Exec("ALTER TABLE " & Tab & " ADD Num2 INTEGER(6) ,Num3 INTEGER(6)") Thank you very much ! Good week end Jack. From jscops at ...11... Fri Dec 15 17:22:48 2006 From: jscops at ...11... (Jacky) Date: Fri, 15 Dec 2006 17:22:48 +0100 Subject: [Gambas-user] Change command In-Reply-To: <200612151705.38070.jscops@...11...> References: <000001c71850$218b0e00$6401a8c0@...1587...> <4582B437.3080804@...729...> <200612151705.38070.jscops@...11...> Message-ID: <200612151722.48671.jscops@...11...> > Yet it is strange because with ADD we can use bracket. > Utils.db.Exec("ALTER TABLE " & Tab & " ADD (Num2 INTEGER(6) ,Num3 > INTEGER(6))") > but we can also not use them. > Utils.db.Exec("ALTER TABLE " & Tab & " ADD Num2 INTEGER(6) ,Num3 > INTEGER(6)") Excuse me. After some tests we can't use parenthesis with ADD but we must use them with CHANGE. Jack. From pvera at ...729... Fri Dec 15 20:13:14 2006 From: pvera at ...729... (Pablo Vera) Date: Fri, 15 Dec 2006 13:13:14 -0600 Subject: [Gambas-user] Change command In-Reply-To: <200612151722.48671.jscops@...11...> References: <000001c71850$218b0e00$6401a8c0@...1587...> <4582B437.3080804@...729...> <200612151705.38070.jscops@...11...> <200612151722.48671.jscops@...11...> Message-ID: <4582F3CA.2010204@...729...> According to MySQL documentation, none of these instructions use parenthesis, which means that in some cases it might work and in some others, not. I've never used parenthesis and this statements have always worked for me. Pablo Jacky wrote: >> Yet it is strange because with ADD we can use bracket. >> Utils.db.Exec("ALTER TABLE " & Tab & " ADD (Num2 INTEGER(6) ,Num3 >> INTEGER(6))") >> but we can also not use them. >> Utils.db.Exec("ALTER TABLE " & Tab & " ADD Num2 INTEGER(6) ,Num3 >> INTEGER(6)") > > Excuse me. After some tests we can't use parenthesis with ADD but we must use > them with CHANGE. > > Jack. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From leonardo at ...1237... Sun Dec 17 11:10:58 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Sun, 17 Dec 2006 11:10:58 +0100 Subject: [Gambas-user] Database questions Message-ID: <458517B2.1080205@...1237...> Hi everybody. I would like to create a form to access a SQLite3 database. I have to set a connection between a database and some textboxes, where I'll put my data to insert in the DB. I've looked at the documentation but the section gb.db.form lacks in some controls so I don't know how to proceed... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From Karl.Reinl at ...9... Sun Dec 17 16:37:20 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 17 Dec 2006 16:37:20 +0100 Subject: [Gambas-user] Database questions In-Reply-To: <458517B2.1080205@...1237...> References: <458517B2.1080205@...1237...> Message-ID: <1166369840.8416.4.camel@...1622...> Salut Leonardo, you can look at the Examples in the IDE, and at least you can open the 'gambas-database-manager' to see. Amicalment Charlie Am Sonntag, den 17.12.2006, 11:10 +0100 schrieb Leonardo Miliani: > Hi everybody. > I would like to create a form to access a SQLite3 database. > I have to set a connection between a database and some textboxes, where > I'll put my data to insert in the DB. > I've looked at the documentation but the section gb.db.form lacks in > some controls so I don't know how to proceed... > From wdahn at ...1000... Sun Dec 17 16:52:02 2006 From: wdahn at ...1000... (Werner) Date: Sun, 17 Dec 2006 23:52:02 +0800 Subject: [Gambas-user] inverse operation to New? Message-ID: <458567A2.6090009@...1000...> Say my software has instantiated objects of a class (actually thousands and thousands of them). Each of these objects uses memory to hold its local data. I looked at the docs but could not find anything that explains how to properly dispose of a no longer needed object and free its allocated memory. What am I missing? Thanks Werner From j0e at ...103... Thu Dec 14 17:27:10 2006 From: j0e at ...103... (jum) Date: Thu, 14 Dec 2006 11:27:10 -0500 Subject: [Gambas-user] Some suggestion + feature missing In-Reply-To: References: Message-ID: <200612141127.11070.j0e@...103...> Date: Sun, 3 Dec 2006 04:11:35 -0500 > From: Rob > Subject: Re: [Gambas-user] Some suggestion > To: gambas-user at lists.sourceforge.net > Message-ID: <200612030411.35748.sourceforge-raindog2 at ...94...> > Content-Type: text/plain; charset="iso-8859-1" > > On Saturday 02 December 2006 18:24, Christopher Brian Jack wrote: > > stack pulls, by convention, return the top element of the > > stack before moving the stack pointer (postincrementing the > > stack pointer) and pushes, by convention, move the stack > > pointer before storing the data (predecrementing stack > > pointer). Virtually every CPU (and compsci textbook) out > > there uses these same semantics for stack operations. > > The terminology in my CS textbooks all those years ago was "push > and pop", not "push and pull". Gambas already has Push() and > Pop().... jum was just looking for a method of the Array object > that acted like Push and Pop, but would operate on any element > of an array, not just the top (last) element. > > I personally would like to see equivalents to Shift and Unshift > (perl functions that behave like Pop and Push but on the bottom > (first) element of a list rather than the top element,) but the > Add method combined with a Remove method that returned the value > it removed would be good enough for me. > > Rob I am not only wants a solution but I need it simple (short) too, so I prefer pop(i) rather than remove(i). May be Benoit knows me better about it. So I always use: - x,y,w,h rather than top,left,wide,height - object.max than object.count - 1 (actually I ask Benoit to add it) - IF without THEN if more than one line (I also beg Benoit to make THEN optional, which make him called me lazy guy:-) - if() rather than iif() - and other feature like that (I hope it much in the future) So because my preference is like that, I want to ask about 1.9.46a version: - why iif() should have 3 mandatory parameters, I would like the old one. So we can use: PRINT "blablabla" & if(again, "blablabla") & if(more, "blablabla") rather than: PRINT "blablabla" & if(again, "blablabla", "") & if(more, "blablabla", "") actually I have a lot of code like this. - why max() and min() only use 2 argument so insted of using: PRINT max(a,b,c,d,e) we should use: PRINT max(max(max(max(a,b),c),d),e) ' confusing, eh or may be: PRINT max(max(max(a,b),max(b,c)),e) ' still confuse? actually right now I am not have code like thit, but I think it can happen to someone else. So without it it like some gambas feature missing, so I hope it only temporary because of some quick-fix of a bug make it like that. Regards, L. Jumadi From gael.le-hech at ...357... Tue Dec 19 16:18:56 2006 From: gael.le-hech at ...357... (=?ISO-8859-1?Q?Ga=EBl_Le_Hec=27H?=) Date: Tue, 19 Dec 2006 16:18:56 +0100 Subject: [Gambas-user] write #pointer Message-ID: <458802E0.6070905@...357...> Hi, is it normal to get "" in sBuff ? DIM pBuff AS Pointer DIM sBuff AS String pBuff = Alloc(10) WRITE #pBuff, "123" & Chr$(0), 4 sBuff = StrPtr(pBuff) Free(pBuff) PRINT "sBuff = " & sBuff From leonardo at ...1237... Tue Dec 19 22:59:39 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 19 Dec 2006 22:59:39 +0100 Subject: [Gambas-user] Printing question Message-ID: <458860CB.8020605@...1237...> I would like to know if there is an easy way to print some datas in a pre-formatted form, like Active Report under Visual Basic, for example. I've looked at the Printer class in the documentation but I can only manage it as a "white paper" where I can draw lines, rectangles and put some text. Using it, create a document (i.e. a selling document) takes me a LOT of time and a LOT of code... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From cjro99 at ...67... Tue Dec 19 23:16:48 2006 From: cjro99 at ...67... (javier romero) Date: Tue, 19 Dec 2006 22:16:48 +0000 Subject: [Gambas-user] install Gambas2 in Mandriva Message-ID: Hi, After a great great fight with the dependencies finally i install Gambas2 in my mandriva 2006. ./Configure -C, make and make install apparently works ok, but when i try to run gambas2 NOTHING HAPPENS. where the program is installed?, searching i find in /usr/local/bin the Gambas2, gba2....etc but nothing, they doesnt work only in some cases when im in root mode send me a message when use gba2: proyect file not found /usr/loca/bin/.proyect If Gambas2 is installed, how i can RUN IT???? Also, i have installed Gambas 1.0.16, this works pretty good but i want prove Gambas2 Thansk Javier Romero ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Wed, 15 Nov 2006 10:37:12 +0100 > Subject: [Gambas-user] Release of gambas 1.9.46a > > Hi, > > This release just fixes the bug with the Menu.Name property. > > Sorry for the inconvenience! > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Busca desde cualquier p?gina Web con una protecci?n excepcional. Consigue la Barra de herramientas de Windows Live hoy mismo y GRATUITAMENTE. http://www.toolbar.live.com From sourceforge-raindog2 at ...94... Tue Dec 19 23:23:37 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 19 Dec 2006 17:23:37 -0500 Subject: [Gambas-user] install Gambas2 in Mandriva In-Reply-To: References: Message-ID: <200612191723.38446.sourceforge-raindog2@...94...> On Tuesday 19 December 2006 17:16, javier romero wrote: > Hi, > After a great great fight with the dependencies finally i > install Gambas2 in my mandriva 2006. ./Configure -C, make and > make install apparently works ok, but when i try to run > gambas2 NOTHING HAPPENS. where the program is installed?, Recent versions of gambas2 name the program "gambas2.gambas" instead of just "gambas2". Try that.... I apologize to the Mandriva users for not keeping the RPMs up to date. My laptop runs Kubuntu currently, though I plan to switch back to Mandriva 2007 when work slows down, and while my server still runs Mandriva, it's 64-bit so is of no use with Gambas. Hopefully by mid-winter I'll be back in the swing of things. Rob From cjro99 at ...67... Wed Dec 20 14:47:50 2006 From: cjro99 at ...67... (javier romero) Date: Wed, 20 Dec 2006 13:47:50 +0000 Subject: [Gambas-user] install Gambas2 in Mandriva Message-ID: Yes, i have istalled gambas 1.0.16 of kudla and its works pretty well, the 1.9.31 RPM of kudla doesnt works Now i try install the tar of 1.9.46a. i do all the steps and its works correctry but Nothing, Gambas2 (1.9.46a) doesnt works with mandriva in /usr/local/bin this files are created gambas2 gambas2.gambas gambas-database-manager-gambas (this only works) gba2 gbc2 gbi2 gbx2 I try with each one and nothing happens, only databese manager runs What i can do? Thanks Javier ---------------------------------------- > From: sourceforge-raindog2 at ...94... > To: gambas-user at lists.sourceforge.net > Date: Tue, 19 Dec 2006 17:23:37 -0500 > Subject: Re: [Gambas-user] install Gambas2 in Mandriva > > On Tuesday 19 December 2006 17:16, javier romero wrote: > > Hi, > > After a great great fight with the dependencies finally i > > install Gambas2 in my mandriva 2006. ./Configure -C, make and > > make install apparently works ok, but when i try to run > > gambas2 NOTHING HAPPENS. where the program is installed?, > > Recent versions of gambas2 name the program "gambas2.gambas" > instead of just "gambas2". Try that.... > > I apologize to the Mandriva users for not keeping the RPMs up to > date. My laptop runs Kubuntu currently, though I plan to switch > back to Mandriva 2007 when work slows down, and while my server > still runs Mandriva, it's 64-bit so is of no use with Gambas. > > Hopefully by mid-winter I'll be back in the swing of things. > > Rob > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Busca desde cualquier p?gina Web con una protecci?n excepcional. Consigue la Barra de herramientas de Windows Live hoy mismo y GRATUITAMENTE. http://www.toolbar.live.com From leonardo at ...1237... Wed Dec 20 22:51:12 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 20 Dec 2006 22:51:12 +0100 Subject: [Gambas-user] Printing question In-Reply-To: <458860CB.8020605@...1237...> References: <458860CB.8020605@...1237...> Message-ID: <4589B050.5050300@...1237...> Leonardo Miliani ha scritto: > I would like to know if there is an easy way to print some datas in a > pre-formatted form, like Active Report under Visual Basic, for example. > I've looked at the Printer class in the documentation but I can only > manage it as a "white paper" where I can draw lines, rectangles and put > some text. Using it, create a document (i.e. a selling document) takes > me a LOT of time and a LOT of code... > Any suggestion for my question? Is it possible, for example, to directly print a form? -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From Karl.Reinl at ...9... Wed Dec 20 23:35:53 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 20 Dec 2006 23:35:53 +0100 Subject: [Gambas-user] Printing question In-Reply-To: <4589B050.5050300@...1237...> References: <458860CB.8020605@...1237...> <4589B050.5050300@...1237...> Message-ID: <1166654153.15845.12.camel@...1622...> Am Mittwoch, den 20.12.2006, 22:51 +0100 schrieb Leonardo Miliani: > Leonardo Miliani ha scritto: > > I would like to know if there is an easy way to print some datas in a > > pre-formatted form, like Active Report under Visual Basic, for example. > > I've looked at the Printer class in the documentation but I can only > > manage it as a "white paper" where I can draw lines, rectangles and put > > some text. Using it, create a document (i.e. a selling document) takes > > me a LOT of time and a LOT of code... > > > > Any suggestion for my question? > Is it possible, for example, to directly print a form? > Salut, Christian Faure has a DBReportDesigner/DBReportViewer Tool, but I can't refind his home page. Look in gambas-user archiv. Amicalment Charlie From leonardo at ...1237... Wed Dec 20 23:55:37 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 20 Dec 2006 23:55:37 +0100 Subject: [Gambas-user] Printing question In-Reply-To: <1166654153.15845.12.camel@...1622...> References: <458860CB.8020605@...1237...> <4589B050.5050300@...1237...> <1166654153.15845.12.camel@...1622...> Message-ID: <4589BF69.80008@...1237...> Charlie Reinl ha scritto: > Am Mittwoch, den 20.12.2006, 22:51 +0100 schrieb Leonardo Miliani: >> Leonardo Miliani ha scritto: >>> I would like to know if there is an easy way to print some datas in a >>> pre-formatted form, like Active Report under Visual Basic, for example. >>> I've looked at the Printer class in the documentation but I can only >>> manage it as a "white paper" where I can draw lines, rectangles and put >>> some text. Using it, create a document (i.e. a selling document) takes >>> me a LOT of time and a LOT of code... >>> >> Any suggestion for my question? >> Is it possible, for example, to directly print a form? >> > Salut, > > Christian Faure has a DBReportDesigner/DBReportViewer Tool, but I can't > refind his home page. > > Look in gambas-user archiv. > > Amicalment > Charlie > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks. I've looked in the Gambas mailing-list archive and I've found something about that tool but the link I've found doesnt't work anymore... It seems that the Christian Faure's webspace has gone off and the last news of that tool are one year and half old... Very badly... :-( -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From jredrejo at ...626... Thu Dec 21 13:47:43 2006 From: jredrejo at ...626... (=?ISO-8859-1?Q?Jos=E9_Luis_Redrejo?=) Date: Thu, 21 Dec 2006 13:47:43 +0100 Subject: [Gambas-user] problems with inheritance Message-ID: <8eb28a500612210447h122d1e0bg2427d1966e8cb098@...627...> Hi, I'm having problems using inheritance and method overriding between more than two classes. I don't know if it's a bug, or just I'm not doing it correctly. This is the problem: Class1 has a sub called translate(aText as String) Class1 inherits from Class2 and Class2 inherits from Class3. Both Class3 & Class2 have also the translate sub, with the same sintax in the definition. In class1 sub translate I have: super.translate(aText) ....more actions... and the same in Class2 sub translate. Doing objecto=New Class1 objeto.translate("whatever") causes a stack overflow in method translate in Class2. If I only have two classes it works ok, but with three classes I always get the same error. So: is it a bug r am I doing something wrong? Regards Jos? L. From Karl.Reinl at ...9... Thu Dec 21 13:48:35 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 21 Dec 2006 13:48:35 +0100 Subject: [Gambas-user] Printing question In-Reply-To: <4589BF69.80008@...1237...> References: <458860CB.8020605@...1237...> <4589B050.5050300@...1237...> <1166654153.15845.12.camel@...1622...> <4589BF69.80008@...1237...> Message-ID: <1166705315.8582.2.camel@...1622...> Am Mittwoch, den 20.12.2006, 23:55 +0100 schrieb Leonardo Miliani: > Charlie Reinl ha scritto: > > Am Mittwoch, den 20.12.2006, 22:51 +0100 schrieb Leonardo Miliani: > >> Leonardo Miliani ha scritto: > >>> I would like to know if there is an easy way to print some datas in a > >>> pre-formatted form, like Active Report under Visual Basic, for example. > >>> I've looked at the Printer class in the documentation but I can only > >>> manage it as a "white paper" where I can draw lines, rectangles and put > >>> some text. Using it, create a document (i.e. a selling document) takes > >>> me a LOT of time and a LOT of code... > >>> > >> Any suggestion for my question? > >> Is it possible, for example, to directly print a form? > >> > > Salut, > > > > Christian Faure has a DBReportDesigner/DBReportViewer Tool, but I can't > > refind his home page. > > > > Look in gambas-user archiv. > > > > Amicalment > > Charlie > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > Thanks. I've looked in the Gambas mailing-list archive and I've found > something about that tool but the link I've found doesnt't work > anymore... It seems that the Christian Faure's webspace has gone off and > the last news of that tool are one year and half old... > Very badly... :-( > Salut Leonardo. here his email, from end of march 2006 Christian Faure May be still works. Amicalment Charlie From leonardo at ...1237... Thu Dec 21 23:12:56 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 21 Dec 2006 23:12:56 +0100 Subject: [Gambas-user] Printing question In-Reply-To: <1166705315.8582.2.camel@...1622...> References: <458860CB.8020605@...1237...> <4589B050.5050300@...1237...> <1166654153.15845.12.camel@...1622...> <4589BF69.80008@...1237...> <1166705315.8582.2.camel@...1622...> Message-ID: <458B06E8.90808@...1237...> Charlie Reinl ha scritto: > Am Mittwoch, den 20.12.2006, 23:55 +0100 schrieb Leonardo Miliani: >> Charlie Reinl ha scritto: >>> Am Mittwoch, den 20.12.2006, 22:51 +0100 schrieb Leonardo Miliani: >>>> Leonardo Miliani ha scritto: >>>>> I would like to know if there is an easy way to print some datas in a >>>>> pre-formatted form, like Active Report under Visual Basic, for example. >>>>> I've looked at the Printer class in the documentation but I can only >>>>> manage it as a "white paper" where I can draw lines, rectangles and put >>>>> some text. Using it, create a document (i.e. a selling document) takes >>>>> me a LOT of time and a LOT of code... >>>>> >>>> Any suggestion for my question? >>>> Is it possible, for example, to directly print a form? >>>> >>> Salut, >>> >>> Christian Faure has a DBReportDesigner/DBReportViewer Tool, but I can't >>> refind his home page. >>> >>> Look in gambas-user archiv. >>> >>> Amicalment >>> Charlie >>> >>> >>> ------------------------------------------------------------------------- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share your >>> opinions on IT & business topics through brief surveys - and earn cash >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> Thanks. I've looked in the Gambas mailing-list archive and I've found >> something about that tool but the link I've found doesnt't work >> anymore... It seems that the Christian Faure's webspace has gone off and >> the last news of that tool are one year and half old... >> Very badly... :-( >> > Salut Leonardo. > > here his email, from end of march 2006 > Christian Faure > > May be still works. > > Amicalment > Charlie > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thanks a lot for the address. I've just wrote him. Let's see if that e-mail is still on :-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From cjro99 at ...67... Fri Dec 22 13:49:09 2006 From: cjro99 at ...67... (javier romero) Date: Fri, 22 Dec 2006 12:49:09 +0000 Subject: [Gambas-user] install Gambas2 in Mandriva Message-ID: Anybody knows how gambas2 runs in mandriva 2006? I install gambas 1.9.46a but it doesnt works, nothing happends. in Konsole, in /usr/local/bin i give "Gambas2" or "gambas2.gambas" and Nothing Thanks Javier Romero _________________________________________________________________ ?Ya est? aqu? Windows Live Spaces! Ahora podr?s crear f?cilmente tu propio sitio Web. http://spaces.live.com/signup.aspx From tehsis at ...626... Fri Dec 22 17:33:41 2006 From: tehsis at ...626... (Pablo Terradillos) Date: Fri, 22 Dec 2006 16:33:41 +0000 Subject: [Gambas-user] Send mail using SMTP Message-ID: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> Hi everyone, this is my first message on this list, and i'm a new Gamba's User... My question is about the gb.net.smtp component. I have two problems... with the way i have to use this component... let me explain... I want to send an email to "somebody at ...1623..." using my ISP's smtp server So... i put an smtpclient named smtpclient1 into my form a text box which contains the name of the sender and a text area which contains the message itself... how can i do it? i tried this way... smtpclient1.Host = "myispserver.com" smtpclient1.To = "somebody at ...1623..." smtpclient1.From = "myname" but of course... this doesn't works... Gambas says that "smtpclient.to is read only" So... my questions... 1- How is the correct way to use this component? 2- In which property would be the message? (the one's contained in the text area) Hope you can help me... i didn't found anything googling or in the Gambas'help... Thank's you in advance -- Pablo E. Terradillos - Tehsis http://tehsis.blogspot.com http://softehsis.blogspot.com From sourceforge-raindog2 at ...94... Fri Dec 22 19:07:05 2006 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 22 Dec 2006 13:07:05 -0500 Subject: [Gambas-user] install Gambas2 in Mandriva In-Reply-To: References: Message-ID: <200612221307.05635.sourceforge-raindog2@...94...> On Friday 22 December 2006 07:49, javier romero wrote: > Anybody knows how gambas2 runs in mandriva 2006? > I install gambas 1.9.46a but it doesnt works, nothing > happends. in Konsole, in /usr/local/bin i give "Gambas2" or > "gambas2.gambas" and Nothing My only Mandriva 2006 machine right now is a 64-bit machine, so I can't test it myself. (When I do switch back to Mandriva, it'll be version 2007.) What errors do you get, or does it just go back to the shell prompt without any output at all? You posted in an earlier message that the database manager was working, which means Gambas itself is installed correctly, as well as gb.qt. It's just the IDE that's having problems. Rob From gambas at ...1... Sat Dec 23 14:38:07 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 23 Dec 2006 14:38:07 +0100 Subject: [Gambas-user] install Gambas2 in Mandriva In-Reply-To: References: Message-ID: <200612231438.07478.gambas@...1...> On Friday 22 December 2006 13:49, javier romero wrote: > Anybody knows how gambas2 runs in mandriva 2006? > > I install gambas 1.9.46a but it doesnt works, nothing happends. > in Konsole, in /usr/local/bin i give "Gambas2" or "gambas2.gambas" and > Nothing > > Thanks > Javier Romero Please post the output of (./configure; make; make install) so that we see what happened. Regards, -- Benoit Minisini From gambas at ...1... Sat Dec 23 19:30:49 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 23 Dec 2006 19:30:49 +0100 Subject: [Gambas-user] write #pointer In-Reply-To: <458802E0.6070905@...357...> References: <458802E0.6070905@...357...> Message-ID: <200612231930.50275.gambas@...1...> On Tuesday 19 December 2006 16:18, Ga?l Le Hec'H wrote: > Hi, > > is it normal to get "" in sBuff ? > > DIM pBuff AS Pointer > DIM sBuff AS String > pBuff = Alloc(10) > WRITE #pBuff, "123" & Chr$(0), 4 > sBuff = StrPtr(pBuff) > Free(pBuff) > PRINT "sBuff = " & sBuff > StrPtr() does not make a copy of the string, so do not free pBuff in the background. Regards, -- Benoit Minisini From gambas at ...1... Sat Dec 23 19:43:24 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 23 Dec 2006 19:43:24 +0100 Subject: [Gambas-user] Some suggestion + feature missing In-Reply-To: <200612141127.11070.j0e@...103...> References: <200612141127.11070.j0e@...103...> Message-ID: <200612231943.24134.gambas@...1...> On Thursday 14 December 2006 17:27, jum wrote: > Date: Sun, 3 Dec 2006 04:11:35 -0500 > > > From: Rob > > Subject: Re: [Gambas-user] Some suggestion > > To: gambas-user at lists.sourceforge.net > > Message-ID: <200612030411.35748.sourceforge-raindog2 at ...94...> > > Content-Type: text/plain; charset="iso-8859-1" > > > > On Saturday 02 December 2006 18:24, Christopher Brian Jack wrote: > > > stack pulls, by convention, return the top element of the > > > stack before moving the stack pointer (postincrementing the > > > stack pointer) and pushes, by convention, move the stack > > > pointer before storing the data (predecrementing stack > > > pointer). Virtually every CPU (and compsci textbook) out > > > there uses these same semantics for stack operations. > > > > The terminology in my CS textbooks all those years ago was "push > > and pop", not "push and pull". Gambas already has Push() and > > Pop().... jum was just looking for a method of the Array object > > that acted like Push and Pop, but would operate on any element > > of an array, not just the top (last) element. > > > > I personally would like to see equivalents to Shift and Unshift > > (perl functions that behave like Pop and Push but on the bottom > > (first) element of a list rather than the top element,) but the > > Add method combined with a Remove method that returned the value > > it removed would be good enough for me. > > > > Rob > > I am not only wants a solution but I need it simple (short) too, > so I prefer pop(i) rather than remove(i). May be Benoit knows me better > about it. So I always use: > - x,y,w,h rather than top,left,wide,height > - object.max than object.count - 1 (actually I ask Benoit to add it) Maybe I could a synonymous support directly in the compiler, so that: A.Top is replaced by A.y, A.Left by A.x, and so on. A.Max will be automatically replaced by (A.Count - 1). I will study what I can do... > - IF without THEN if more than one line (I also beg Benoit to make THEN > optional, which make him called me lazy guy:-) > - if() rather than iif() > - and other feature like that (I hope it much in the future) > > So because my preference is like that, I want to ask about 1.9.46a version: > > - why iif() should have 3 mandatory parameters, I would like the old one. > So we can use: > PRINT "blablabla" & if(again, "blablabla") & if(more, "blablabla") > rather than: > PRINT "blablabla" & if(again, "blablabla", "") & if(more, "blablabla", > "") actually I have a lot of code like this. > > - why max() and min() only use 2 argument so insted of using: > PRINT max(a,b,c,d,e) > we should use: > PRINT max(max(max(max(a,b),c),d),e) ' confusing, eh > or may be: > PRINT max(max(max(a,b),max(b,c)),e) ' still confuse? > actually right now I am not have code like thit, but I think it can > happen to someone else. Max() or Min() with more than two arguments is very rare, but I admit that If() with two arguments only can be useful. Alas this syntax will only be possible in Gambas 3. > > So without it it like some gambas feature missing, so I hope it only > temporary because of some quick-fix of a bug make it like that. > > Regards, > > L. Jumadi > Regards, -- Benoit Minisini From nando_f at ...951... Tue Dec 26 06:47:04 2006 From: nando_f at ...951... (nando) Date: Tue, 26 Dec 2006 00:47:04 -0500 Subject: [Gambas-user] Some suggestion + feature missing In-Reply-To: <200612231943.24134.gambas@...1...> References: <200612141127.11070.j0e@...103...> <200612231943.24134.gambas@...1...> Message-ID: <20061226054155.M93206@...1382...> The terms top,left,wide,height closely resemble what they do and apply to as opposed to x,y,w,h which are more short forms. Although I can use x,y,w,h I have gotten used to the 'words' It is easier to read and debug, especially when the programs are very large and trying to debug. -Fernando ---------- Original Message ----------- From: Benoit Minisini To: mailing list for gambas users Sent: Sat, 23 Dec 2006 19:43:24 +0100 Subject: Re: [Gambas-user] Some suggestion + feature missing > On Thursday 14 December 2006 17:27, jum wrote: > > Date: Sun, 3 Dec 2006 04:11:35 -0500 > > > > > From: Rob > > > Subject: Re: [Gambas-user] Some suggestion > > > To: gambas-user at lists.sourceforge.net > > > Message-ID: <200612030411.35748.sourceforge-raindog2 at ...94...> > > > Content-Type: text/plain; charset="iso-8859-1" > > > > > > On Saturday 02 December 2006 18:24, Christopher Brian Jack wrote: > > > > stack pulls, by convention, return the top element of the > > > > stack before moving the stack pointer (postincrementing the > > > > stack pointer) and pushes, by convention, move the stack > > > > pointer before storing the data (predecrementing stack > > > > pointer). Virtually every CPU (and compsci textbook) out > > > > there uses these same semantics for stack operations. > > > > > > The terminology in my CS textbooks all those years ago was "push > > > and pop", not "push and pull". Gambas already has Push() and > > > Pop().... jum was just looking for a method of the Array object > > > that acted like Push and Pop, but would operate on any element > > > of an array, not just the top (last) element. > > > > > > I personally would like to see equivalents to Shift and Unshift > > > (perl functions that behave like Pop and Push but on the bottom > > > (first) element of a list rather than the top element,) but the > > > Add method combined with a Remove method that returned the value > > > it removed would be good enough for me. > > > > > > Rob > > > > I am not only wants a solution but I need it simple (short) too, > > so I prefer pop(i) rather than remove(i). May be Benoit knows me better > > about it. So I always use: > > - x,y,w,h rather than top,left,wide,height > > - object.max than object.count - 1 (actually I ask Benoit to add it) > > Maybe I could a synonymous support directly in the compiler, so that: > A.Top is replaced by A.y, A.Left by A.x, and so on. A.Max will be > automatically replaced by (A.Count - 1). I will study what I can do... > > > - IF without THEN if more than one line (I also beg Benoit to make THEN > > optional, which make him called me lazy guy:-) > > - if() rather than iif() > > - and other feature like that (I hope it much in the future) > > > > So because my preference is like that, I want to ask about 1.9.46a version: > > > > - why iif() should have 3 mandatory parameters, I would like the old one. > > So we can use: > > PRINT "blablabla" & if(again, "blablabla") & if(more, "blablabla") > > rather than: > > PRINT "blablabla" & if(again, "blablabla", "") & if(more, "blablabla", > > "") actually I have a lot of code like this. > > > > - why max() and min() only use 2 argument so insted of using: > > PRINT max(a,b,c,d,e) > > we should use: > > PRINT max(max(max(max(a,b),c),d),e) ' confusing, eh > > or may be: > > PRINT max(max(max(a,b),max(b,c)),e) ' still confuse? > > actually right now I am not have code like thit, but I think it can > > happen to someone else. > > Max() or Min() with more than two arguments is very rare, but I admit that > If() with two arguments only can be useful. Alas this syntax will only be > possible in Gambas 3. > > > > > So without it it like some gambas feature missing, so I hope it only > > temporary because of some quick-fix of a bug make it like that. > > > > Regards, > > > > L. Jumadi > > > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From leonardo at ...1237... Tue Dec 26 15:35:27 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 26 Dec 2006 15:35:27 +0100 Subject: [Gambas-user] Managing databases Message-ID: <4591332F.1000702@...1237...> I've tried to look at the example projects but I didn't understand how the DB connections work with Gambas... sorry :-( I'm creating a project to manage an SQLite3 database in which I'll put some tables to archive an agenda and other infos. I would like to know how to select the value of a field in a table.... Let's suppose that my DB will contain these tables and fields: CODES typeA typeB AGENDA code address phone I will store 2 name types, typeA and typeB, which will have different codes. If I will be able to create a new contact I will first look for the avaible free code (Codes.typeA or Codes.typeB) and then I will create the contact using in Agenda.code the above code. I've connected to my SQLite3 DB named archive with this code: PUBLIC SUB New_contact() DIM hConnection AS NEW Connection DIM hTable AS result DIM TypeA, TypeB AS Integer hConnection.Name = Application.Path & "/archive" hConnection.Type = "sqlite3" hConnection.OPEN END But now I don't know how to select the value stored in table CODES and field TypeA, and how to create a new field in table AGENDA. Any suggestion will be welcome :-) -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From cjro99 at ...67... Tue Dec 26 16:08:44 2006 From: cjro99 at ...67... (javier romero) Date: Tue, 26 Dec 2006 15:08:44 +0000 Subject: [Gambas-user] install Gambas2 in Mandriva Message-ID: Benoit i send a mail with 3 attachment, the outputs of ./configure, make and make install,in mandriva 2006 but its held because is very large, do you want to re sent separated in small parts? Regards Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Sat, 23 Dec 2006 14:38:07 +0100 > Subject: Re: [Gambas-user] install Gambas2 in Mandriva > > On Friday 22 December 2006 13:49, javier romero wrote: > > Anybody knows how gambas2 runs in mandriva 2006? > > > > I install gambas 1.9.46a but it doesnt works, nothing happends. > > in Konsole, in /usr/local/bin i give "Gambas2" or "gambas2.gambas" and > > Nothing > > > > Thanks > > Javier Romero > > Please post the output of (./configure; make; make install) so that we see > what happened. > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ ?Ya est? aqu? Windows Live Spaces! Ahora podr?s crear f?cilmente tu propio sitio Web. http://spaces.live.com/signup.aspx From gambas at ...1... Tue Dec 26 16:46:21 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 26 Dec 2006 16:46:21 +0100 Subject: [Gambas-user] install Gambas2 in Mandriva In-Reply-To: References: Message-ID: <200612261646.21637.gambas@...1...> On Tuesday 26 December 2006 16:08, javier romero wrote: > Benoit i send a mail with 3 attachment, the outputs of ./configure, make > and make install,in mandriva 2006 but its held because is very large, do > you want to re sent separated in small parts? > > Regards > Javier > > Send it to my private e-mail. Regards, -- Benoit Minisini From gambas at ...1... Tue Dec 26 16:47:19 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 26 Dec 2006 16:47:19 +0100 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> Message-ID: <200612261647.19191.gambas@...1...> On Friday 22 December 2006 17:33, Pablo Terradillos wrote: > Hi everyone, this is my first message on this list, and i'm a new Gamba's > User... > > My question is about the gb.net.smtp component. > > I have two problems... with the way i have to use this component... let me > explain... > > I want to send an email to "somebody at ...1623..." using my ISP's smtp > server > > So... i put an smtpclient named smtpclient1 into my form a text box which > contains the name of the sender and a text area which contains the message > itself... > > how can i do it? i tried this way... > > smtpclient1.Host = "myispserver.com" > smtpclient1.To = "somebody at ...1623..." > smtpclient1.From = "myname" > > but of course... this doesn't works... Gambas says that "smtpclient.to is > read only" > > So... my questions... > > 1- How is the correct way to use this component? > 2- In which property would be the message? (the one's contained in the text > area) > > Hope you can help me... i didn't found anything googling or in the > Gambas'help... > > Thank's you in advance You must write: smtpclient1.To = ["somebody at ...1623..."] 'To' is a string array, so that you can specify more than one sender! Regards, -- Benoit Minisini From cjro99 at ...67... Tue Dec 26 18:25:23 2006 From: cjro99 at ...67... (javier romero) Date: Tue, 26 Dec 2006 17:25:23 +0000 Subject: [Gambas-user] install Gambas2 in Mandriva Message-ID: Ok, but i dont know your private mail, please send me Thanks Javier ---------------------------------------- > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Tue, 26 Dec 2006 16:46:21 +0100 > Subject: Re: [Gambas-user] install Gambas2 in Mandriva > > On Tuesday 26 December 2006 16:08, javier romero wrote: > > Benoit i send a mail with 3 attachment, the outputs of ./configure, make > > and make install,in mandriva 2006 but its held because is very large, do > > you want to re sent separated in small parts? > > > > Regards > > Javier > > > > > > Send it to my private e-mail. > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Llama a tus amigos de PC a PC: ?Es GRATIS! http://get.live.com/messenger/overview From gambas at ...1... Tue Dec 26 18:28:43 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 26 Dec 2006 18:28:43 +0100 Subject: [Gambas-user] install Gambas2 in Mandriva In-Reply-To: References: Message-ID: <200612261828.44190.gambas@...1...> On Tuesday 26 December 2006 18:25, javier romero wrote: > Ok, but i dont know your private mail, please send me > > Thanks > Javier > This is the mail I used for posting on the mailing-list! -- Benoit Minisini From tehsis at ...626... Tue Dec 26 19:23:28 2006 From: tehsis at ...626... (Pablo Terradillos) Date: Tue, 26 Dec 2006 18:23:28 +0000 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <200612261647.19191.gambas@...1...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <200612261647.19191.gambas@...1...> Message-ID: <546f17d70612261023v5be323bbw2b55979bc3699709@...627...> thanks, but, That doesn't works... i get the same error... Anyway, i found this in google: http://www.nabble.com/Release-of-gambas-1.9.26-t1211000.html Using the example... smtpclient1.Host = "someserver.com" smtpclient1.From = "tehsis" smtpclient1.To.Add("someone at ...1624...") smtpclient1..Add("Hello", "text/plain;charset=utf-8") smtpclient1.send() But i get an error #11... at the line "smtpclient1..Add("Hello", "text/plain;charset=utf-8") " Thanks you! On 12/26/06, Benoit Minisini wrote: > > On Friday 22 December 2006 17:33, Pablo Terradillos wrote: > > Hi everyone, this is my first message on this list, and i'm a new > Gamba's > > User... > > > > My question is about the gb.net.smtp component. > > > > I have two problems... with the way i have to use this component... let > me > > explain... > > > > I want to send an email to "somebody at ...1623..." using my ISP's smtp > > server > > > > So... i put an smtpclient named smtpclient1 into my form a text box > which > > contains the name of the sender and a text area which contains the > message > > itself... > > > > how can i do it? i tried this way... > > > > smtpclient1.Host = "myispserver.com" > > smtpclient1.To = "somebody at ...1623..." > > smtpclient1.From = "myname" > > > > but of course... this doesn't works... Gambas says that "smtpclient.tois > > read only" > > > > So... my questions... > > > > 1- How is the correct way to use this component? > > 2- In which property would be the message? (the one's contained in the > text > > area) > > > > Hope you can help me... i didn't found anything googling or in the > > Gambas'help... > > > > Thank's you in advance > > You must write: > > smtpclient1.To = ["somebody at ...1623..."] > > 'To' is a string array, so that you can specify more than one sender! > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Pablo E. Terradillos - Tehsis http://tehsis.blogspot.com http://softehsis.blogspot.com From gambas at ...1... Tue Dec 26 19:39:40 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 26 Dec 2006 19:39:40 +0100 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <546f17d70612261023v5be323bbw2b55979bc3699709@...627...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <200612261647.19191.gambas@...1...> <546f17d70612261023v5be323bbw2b55979bc3699709@...627...> Message-ID: <200612261939.40817.gambas@...1...> On Tuesday 26 December 2006 19:23, Pablo Terradillos wrote: > thanks, but, That doesn't works... i get the same error... > > Anyway, i found this in google: > http://www.nabble.com/Release-of-gambas-1.9.26-t1211000.html > > Using the example... > > smtpclient1.Host = "someserver.com" > smtpclient1.From = > "tehsis>" > > smtpclient1.To.Add("someone at ...1624...ype=post&post=3200361&i=1>") > > smtpclient1.1&i=2>.Add("Hello", "text/plain;charset=utf-8") > smtpclient1.send() > > But i get an error #11... at the line > "smtpclient1.61&i=2>.Add("Hello", "text/plain;charset=utf-8") " > > Thanks you! > Please can you send me the code that raises the Signal #11? -- Benoit Minisini From Karl.Reinl at ...9... Tue Dec 26 19:42:59 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 26 Dec 2006 19:42:59 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <4591332F.1000702@...1237...> References: <4591332F.1000702@...1237...> Message-ID: <1167158579.5127.7.camel@...1622...> Am Dienstag, den 26.12.2006, 15:35 +0100 schrieb Leonardo Miliani: > I've tried to look at the example projects but I didn't understand how > the DB connections work with Gambas... sorry :-( > > I'm creating a project to manage an SQLite3 database in which I'll put > some tables to archive an agenda and other infos. > > I would like to know how to select the value of a field in a table.... > Let's suppose that my DB will contain these tables and fields: > > CODES > typeA > typeB > > AGENDA > code > address > phone > > I will store 2 name types, typeA and typeB, which will have different > codes. If I will be able to create a new contact I will first look for > the avaible free code (Codes.typeA or Codes.typeB) and then I will > create the contact using in Agenda.code the above code. > > I've connected to my SQLite3 DB named archive with this code: > > PUBLIC SUB New_contact() > DIM hConnection AS NEW Connection > DIM hTable AS result > DIM TypeA, TypeB AS Integer > > hConnection.Name = Application.Path & "/archive" > hConnection.Type = "sqlite3" > hConnection.OPEN > > END > > But now I don't know how to select the value stored in table CODES and > field TypeA, and how to create a new field in table AGENDA. > > Any suggestion will be welcome :-) > Salut Leonardo, send you an example, a short project, where you can write, look and delete records in your AGENDA table. I didn't understand whats the job of table CODES, so I made a Function GetNewID for getting a new counter for code in AGENDA . Keep attention this Function sets his counte + 1 while getting the cout of existing records, that can be wrong, if you delete one. Hope that example helps. Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: TestDB-0.0.1.tar.gz Type: application/x-compressed-tar Size: 5358 bytes Desc: not available URL: From leonardo at ...1237... Tue Dec 26 22:58:14 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 26 Dec 2006 22:58:14 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <1167158579.5127.7.camel@...1622...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> Message-ID: <45919AF6.2090802@...1237...> Charlie Reinl ha scritto: > Salut Leonardo, > > send you an example, a short project, where you can write, look and > delete records in your AGENDA table. Thanks a LOT for your project. It helped me to understand the way to manage DB using Gambas code. But I didn't find the use of "!" in Gambas documentation... Is it a way to specify the access to tables, isn't it? > > I didn't understand whats the job of table CODES, so I made a Function > GetNewID for getting a new counter for code in AGENDA . In my project I will manage 2 type of contacts, regular customers, that have long-term relationships, and passing customers, that have sporadic selling relationships. I will refer to the first ones using Cxxxx where "C" means customer and xxxx is a unique autoincrement number. I will refer to the second ones using Pxxxx where "P" means passing and xxxx is a unique autoincrement number. I will store the avaible codes for both the types of customers in CODES table, in 2 separated field. When I will create a new contact in my AGENDA, I first will access to CODES and look at the avaible code for my customer (from field Customer or Passing, as explained above) and then I will add the contact in AGENDA. Why this? Because in another part of my project I will have to be able to look in AGENDA and run some operations if the contact is a "C"ustomer-type, or other operations in case my contact is a "P"assing-type. Using a code in format letter+number I will store 2 informations (type of contact and number of contact) in a single alphanumeric data. > > Keep attention this Function sets his counte + 1 while getting the cout > of existing records, that can be wrong, if you delete one. I didn't understand why if I cancel a record, the project cancels ALL the records. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From Karl.Reinl at ...9... Tue Dec 26 23:37:52 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 26 Dec 2006 23:37:52 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <45919AF6.2090802@...1237...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> <45919AF6.2090802@...1237...> Message-ID: <1167172672.17363.6.camel@...1622...> Am Dienstag, den 26.12.2006, 22:58 +0100 schrieb Leonardo Miliani: > Charlie Reinl ha scritto: > > Salut Leonardo, > > > > send you an example, a short project, where you can write, look and > > delete records in your AGENDA table. > > Thanks a LOT for your project. It helped me to understand the way to > manage DB using Gambas code. > But I didn't find the use of "!" in Gambas documentation... > Is it a way to specify the access to tables, isn't it? To the field. > > > > > I didn't understand whats the job of table CODES, so I made a Function > > GetNewID for getting a new counter for code in AGENDA . > > In my project I will manage 2 type of contacts, regular customers, that > have long-term relationships, and passing customers, that have sporadic > selling relationships. I will refer to the first ones using Cxxxx where > "C" means customer and xxxx is a unique autoincrement number. I will > refer to the second ones using Pxxxx where "P" means passing and xxxx is > a unique autoincrement number. > I will store the avaible codes for both the types of customers in CODES > table, in 2 separated field. > When I will create a new contact in my AGENDA, I first will access to > CODES and look at the avaible code for my customer (from field Customer > or Passing, as explained above) and then I will add the contact in AGENDA. > Why this? > Because in another part of my project I will have to be able to look in > AGENDA and run some operations if the contact is a "C"ustomer-type, or > other operations in case my contact is a "P"assing-type. > Using a code in format letter+number I will store 2 informations (type > of contact and number of contact) in a single alphanumeric data. > > > > > Keep attention this Function sets his counte + 1 while getting the cout > > of existing records, that can be wrong, if you delete one. > > I didn't understand why if I cancel a record, the project cancels ALL > the records. It's a bug in the project, and not well tested. replace line 84 by con.Delete("AGENDA", "code = &1",id) Sorry Charlie From Karl.Reinl at ...9... Tue Dec 26 23:53:06 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 26 Dec 2006 23:53:06 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <45919AF6.2090802@...1237...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> <45919AF6.2090802@...1237...> Message-ID: <1167173587.17363.15.camel@...1622...> Am Dienstag, den 26.12.2006, 22:58 +0100 schrieb Leonardo Miliani: > Charlie Reinl ha scritto: > > Salut Leonardo, > > > > send you an example, a short project, where you can write, look and > > delete records in your AGENDA table. > > Thanks a LOT for your project. It helped me to understand the way to > manage DB using Gambas code. > But I didn't find the use of "!" in Gambas documentation... > Is it a way to specify the access to tables, isn't it? > > > > > I didn't understand whats the job of table CODES, so I made a Function > > GetNewID for getting a new counter for code in AGENDA . > > In my project I will manage 2 type of contacts, regular customers, that > have long-term relationships, and passing customers, that have sporadic > selling relationships. I will refer to the first ones using Cxxxx where > "C" means customer and xxxx is a unique autoincrement number. I will > refer to the second ones using Pxxxx where "P" means passing and xxxx is > a unique autoincrement number. > I will store the avaible codes for both the types of customers in CODES > table, in 2 separated field. > When I will create a new contact in my AGENDA, I first will access to > CODES and look at the avaible code for my customer (from field Customer > or Passing, as explained above) and then I will add the contact in AGENDA. > Why this? > Because in another part of my project I will have to be able to look in > AGENDA and run some operations if the contact is a "C"ustomer-type, or > other operations in case my contact is a "P"assing-type. > Using a code in format letter+number I will store 2 informations (type > of contact and number of contact) in a single alphanumeric data. > So I think its better to make a autoincrement number and a 4 field, i name it 'typ' where you store a 'C' or a 'P' . Now you can make "Select * from AGENDA where typ ='C'" and if you need more then 'C' and 'P' you can add everything you want , e.g. 'G' for Guest etc. > > > > Keep attention this Function sets his counte + 1 while getting the cout > > of existing records, that can be wrong, if you delete one. > > I didn't understand why if I cancel a record, the project cancels ALL > the records. > From tehsis at ...626... Tue Dec 26 23:55:46 2006 From: tehsis at ...626... (Pablo Terradillos) Date: Tue, 26 Dec 2006 22:55:46 +0000 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <200612261939.40817.gambas@...1...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <200612261647.19191.gambas@...1...> <546f17d70612261023v5be323bbw2b55979bc3699709@...627...> <200612261939.40817.gambas@...1...> Message-ID: <546f17d70612261455y5fd4ce45gaf9bbe3c5c139820@...627...> Here you have: SmtpClient1.Host = "mail.gigared.com" SmtpClient1.From = remitente SmtpClient1.To.Add("tehsis at ...626...") SmtpClient1.Add("hola", "text/plain;charset=utf-8") 'CONFLICTO SmtpClient1.Send() Let me know if you want the entire program... On 12/26/06, Benoit Minisini wrote: > > On Tuesday 26 December 2006 19:23, Pablo Terradillos wrote: > > thanks, but, That doesn't works... i get the same error... > > > > Anyway, i found this in google: > > http://www.nabble.com/Release-of-gambas-1.9.26-t1211000.html > > > > Using the example... > > > > smtpclient1.Host = "someserver.com" > > smtpclient1.From = > > "tehsis< > http://www.nabble.com/user/SendEmail.jtp?type=post&post=3200361&i=0 > >>" > > > > smtpclient1.To.Add("someone at ...1624...< > http://www.nabble.com/user/SendEmail.jtp?t > >ype=post&post=3200361&i=1>") > > > > smtpclient1.< > http://www.nabble.com/user/SendEmail.jtp?type=post&post=320036 > >1&i=2>.Add("Hello", "text/plain;charset=utf-8") > > smtpclient1.send() > > > > But i get an error #11... at the line > > "smtpclient1.< > http://www.nabble.com/user/SendEmail.jtp?type=post&post=32003 > >61&i=2>.Add("Hello", "text/plain;charset=utf-8") " > > > > Thanks you! > > > > Please can you send me the code that raises the Signal #11? > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Pablo E. Terradillos - Tehsis http://tehsis.blogspot.com http://softehsis.blogspot.com From gambas at ...1... Wed Dec 27 00:10:13 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Dec 2006 00:10:13 +0100 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <546f17d70612261455y5fd4ce45gaf9bbe3c5c139820@...627...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <200612261939.40817.gambas@...1...> <546f17d70612261455y5fd4ce45gaf9bbe3c5c139820@...627...> Message-ID: <200612270010.13832.gambas@...1...> On Tuesday 26 December 2006 23:55, Pablo Terradillos wrote: > Here you have: > > SmtpClient1.Host = "mail.gigared.com" > SmtpClient1.From = remitente > SmtpClient1.To.Add("tehsis at ...626...") > SmtpClient1.Add("hola", "text/plain;charset=utf-8") 'CONFLICTO > SmtpClient1.Send() > > Let me know if you want the entire program... > I would like! -- Benoit Minisini From tehsis at ...626... Wed Dec 27 00:15:52 2006 From: tehsis at ...626... (Pablo Terradillos) Date: Tue, 26 Dec 2006 23:15:52 +0000 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <200612270010.13832.gambas@...1...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <200612261939.40817.gambas@...1...> <546f17d70612261455y5fd4ce45gaf9bbe3c5c139820@...627...> <200612270010.13832.gambas@...1...> Message-ID: <546f17d70612261515l7c930103k8167c22b0b735a25@...627...> Ok, i attached the files... The program is to send message to cell phones... but, only for test, it send the message to my e.mail On 12/26/06, Benoit Minisini wrote: > > On Tuesday 26 December 2006 23:55, Pablo Terradillos wrote: > > Here you have: > > > > SmtpClient1.Host = "mail.gigared.com" > > SmtpClient1.From = remitente > > SmtpClient1.To.Add("tehsis at ...626...") > > SmtpClient1.Add("hola", "text/plain;charset=utf-8") 'CONFLICTO > > SmtpClient1.Send() > > > > Let me know if you want the entire program... > > > > I would like! > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Pablo E. Terradillos - Tehsis http://tehsis.blogspot.com http://softehsis.blogspot.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Principal.class Type: application/octet-stream Size: 745 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Principal.form Type: application/octet-stream Size: 1739 bytes Desc: not available URL: From leonardo at ...1237... Wed Dec 27 00:52:21 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 27 Dec 2006 00:52:21 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <1167173587.17363.15.camel@...1622...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> <45919AF6.2090802@...1237...> <1167173587.17363.15.camel@...1622...> Message-ID: <4591B5B5.9000606@...1237...> Charlie Reinl ha scritto: > So I think its better to make a autoincrement number and a 4 field, i > name it 'typ' where you store a 'C' or a 'P' . > Now you can make "Select * from AGENDA where typ ='C'" and if you need > more then 'C' and 'P' you can add everything you want , e.g. 'G' for > Guest etc. I've choosen a composed code (letter and number) because I must use this code out of my program too. Those codes will be written on paper cards that will be stored inside a classic office archiver. If someone will look at a card in that archiver, he will be able to know in a second which type of customer he's mananing just looking at his code (C is a regular customer, P is a non regular one) and he will also be able to search for his datas in my electronic archive just typing that code on keyboard. (It can happen that there can be a C1 contact and a P1 contact too). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From gambas at ...1... Wed Dec 27 12:22:58 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Dec 2006 12:22:58 +0100 Subject: [Gambas-user] New event interception mechanism Message-ID: <200612271222.58611.gambas@...1...> Hi, I have just implemented a new event interception mechanism in Gambas. This mechanism is based on a new class named 'Observer'. To intercept the events raised by an object, just do: DIM hObserver AS Observer hObserver = NEW Observer(TheObject) AS "AnyName" Each time 'TheObject' will raise an event named 'ObjectEvent', then the observer will catch it first, and then call the event handler named 'AnyName_ObjectEvent', as if the observer object has raised this event itself. If you use STOP EVENT in the observer event handler, then the official parent of the object will never see the event. If you define several observers on the same object, they will get the event in their definition order. This mechanism will allow to extend easily existing controls with Gambas. As an example, you will find in gb.form a new control named 'TableView' (if you have a better name just tell me). It is an editable GridView. This control is written in Gambas, inherits GridView, and allows cells to be edited by intercepting events, and defining a few new methods. To use it, just call the new 'Edit' method when you want to edit the current cell. This method takes optional parameters: the first is a list of possible values, if you want to edit the cell with a ComboBox instead of a TextBox, and the second tells if the ComboBox must be read-only or not. Regards, -- Benoit Minisini From nando_f at ...1382... Wed Dec 27 20:51:49 2006 From: nando_f at ...1382... (nando) Date: Wed, 27 Dec 2006 14:51:49 -0500 Subject: [Gambas-user] New event interception mechanism In-Reply-To: <200612271222.58611.gambas@...1...> References: <200612271222.58611.gambas@...1...> Message-ID: <20061227195130.M97387@...1382...> Bravo! Will this be in the next stable? ---------- Original Message ----------- From: Benoit Minisini To: gambas-user at lists.sourceforge.net Sent: Wed, 27 Dec 2006 12:22:58 +0100 Subject: [Gambas-user] New event interception mechanism > Hi, > > I have just implemented a new event interception mechanism in Gambas. > > This mechanism is based on a new class named 'Observer'. To intercept the > events raised by an object, just do: > > DIM hObserver AS Observer > hObserver = NEW Observer(TheObject) AS "AnyName" > > Each time 'TheObject' will raise an event named 'ObjectEvent', then the > observer will catch it first, and then call the event handler > named 'AnyName_ObjectEvent', as if the observer object has raised this event > itself. > > If you use STOP EVENT in the observer event handler, then the official parent > of the object will never see the event. > > If you define several observers on the same object, they will get the event in > their definition order. > > This mechanism will allow to extend easily existing controls with Gambas. > > As an example, you will find in gb.form a new control named 'TableView' (if > you have a better name just tell me). It is an editable GridView. > > This control is written in Gambas, inherits GridView, and allows cells to be > edited by intercepting events, and defining a few new methods. > > To use it, just call the new 'Edit' method when you want to edit the current > cell. > > This method takes optional parameters: the first is a list of possible values, > if you want to edit the cell with a ComboBox instead of a TextBox, and the > second tells if the ComboBox must be read-only or not. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From leonardo at ...1237... Wed Dec 27 23:22:35 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Wed, 27 Dec 2006 23:22:35 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <1167172672.17363.6.camel@...1622...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> <45919AF6.2090802@...1237...> <1167172672.17363.6.camel@...1622...> Message-ID: <4592F22B.70101@...1237...> Please help me again :-) I'm having some problems about the edit/update process. I've created my DB and put inside it my table named "codes" with only 2 fields, "customers" and "passing". These 2 field contain the codes used by the rest of the program. I should increment their content through the program but I cannot do it because I still continue to receive an error "signal #11"... This is the part of the code: ..... hConn.Name = Application.Path & "/archive" hConn.Type = "sqlite3" hConn.OPEN hRes = hConn.Edit("codes") IF CodeLett = "M" THEN hRes!customers = CodeNum ELSE hRes!passing = CodeNum END IF hRes.Update ...... When I run my project, an error is generated and the program halts... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From Karl.Reinl at ...9... Wed Dec 27 23:43:05 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 27 Dec 2006 23:43:05 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <4592F22B.70101@...1237...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> <45919AF6.2090802@...1237...> <1167172672.17363.6.camel@...1622...> <4592F22B.70101@...1237...> Message-ID: <1167259385.5155.15.camel@...1622...> Am Mittwoch, den 27.12.2006, 23:22 +0100 schrieb Leonardo Miliani: > Please help me again :-) > > I'm having some problems about the edit/update process. > I've created my DB and put inside it my table named "codes" with only 2 > fields, "customers" and "passing". These 2 field contain the codes used > by the rest of the program. I should increment their content through the > program but I cannot do it because I still continue to receive an error > "signal #11"... > This is the part of the code: > ..... > > hConn.Name = Application.Path & "/archive" > hConn.Type = "sqlite3" > hConn.OPEN > > hRes = hConn.Edit("codes") > IF CodeLett = "M" THEN > hRes!customers = CodeNum > ELSE > hRes!passing = CodeNum > END IF > hRes.Update > > ...... > > When I run my project, an error is generated and the program halts... > Salut Leonardo, could you send us the structure of the 'codes' table, and how CodeNum is build. Or better make an archiv of the project, including the sqlite3 DB and post this. Amicalment Charlie From leonardo at ...1237... Thu Dec 28 00:04:08 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 28 Dec 2006 00:04:08 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <1167259385.5155.15.camel@...1622...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> <45919AF6.2090802@...1237...> <1167172672.17363.6.camel@...1622...> <4592F22B.70101@...1237...> <1167259385.5155.15.camel@...1622...> Message-ID: <4592FBE8.7050605@...1237...> This is my project. Run it, enter the password "password" (very easy, isn't it? :-)), and then click on the first big icon on left (or choose "Moduli/Anagrafica/Gestione clienti"). Then, click on the "new" icon. It will compare a little window where you can choose the type of customer (i.e., choose "Mensile" and then click OK). After that, click on the "save" icon in the new panel and you'll get the error. The table "codici" (this is the real name of my table) contains only 2 integer fields. (P.S.: the project lacks some graphics because the original archive was filtered by a mailing-list script because it was too big. I think this new one could contain all the necessary stuff). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software -------------- next part -------------- A non-text attachment was scrubbed... Name: PGA-Garage.tar.bz2 Type: application/x-bzip Size: 73172 bytes Desc: not available URL: From Karl.Reinl at ...9... Thu Dec 28 00:51:32 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 28 Dec 2006 00:51:32 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <4592FBE8.7050605@...1237...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> <45919AF6.2090802@...1237...> <1167172672.17363.6.camel@...1622...> <4592F22B.70101@...1237...> <1167259385.5155.15.camel@...1622...> <4592FBE8.7050605@...1237...> Message-ID: <1167263493.5155.23.camel@...1622...> Am Donnerstag, den 28.12.2006, 00:04 +0100 schrieb Leonardo Miliani: > This is my project. > Run it, enter the password "password" (very easy, isn't it? :-)), and > then click on the first big icon on left (or choose > "Moduli/Anagrafica/Gestione clienti"). Then, click on the "new" icon. > It will compare a little window where you can choose the type of > customer (i.e., choose "Mensile" and then click OK). After that, click > on the "save" icon in the new panel and you'll get the error. > > The table "codici" (this is the real name of my table) contains only 2 > integer fields. > > (P.S.: > the project lacks some graphics because the original archive was > filtered by a mailing-list script because it was too big. I think this > new one could contain all the necessary stuff). Salut Leonardo, I fail to browse the table 'codici' The gDM craches if I want to open the data. Does sqlite worke with 'serial' ? I ignore what that should be, so I can't help. Anybody knows ? Amicalment Charlie From leonardo at ...1237... Thu Dec 28 00:57:38 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 28 Dec 2006 00:57:38 +0100 Subject: [Gambas-user] Managing databases In-Reply-To: <1167263493.5155.23.camel@...1622...> References: <4591332F.1000702@...1237...> <1167158579.5127.7.camel@...1622...> <45919AF6.2090802@...1237...> <1167172672.17363.6.camel@...1622...> <4592F22B.70101@...1237...> <1167259385.5155.15.camel@...1622...> <4592FBE8.7050605@...1237...> <1167263493.5155.23.camel@...1622...> Message-ID: <45930872.5060404@...1237...> Charlie Reinl ha scritto: > I fail to browse the table 'codici' > The gDM craches if I want to open the data. I can browse the DB with Knoda, if this can help you. Anyway, you can open the DB just typing "sqlite3 archivio" in a console window. > > Does sqlite worke with 'serial' ? > > I ignore what that should be, so I can't help. The "codici" table just contains 2 integer fields. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From leonardo at ...1237... Thu Dec 28 01:34:12 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 28 Dec 2006 01:34:12 +0100 Subject: [Gambas-user] Signal error #11 Message-ID: <45931104.8010408@...1237...> As I posted some threads ago, I still continue to receive a signal error #11 when I run my project. Run it, enter the password "password" (very easy, isn't it? :-)), and then click on the first big icon on left (or choose "Moduli/Anagrafica/Gestione clienti"). Then, click on the "new" icon. A little window will compare, where you can choose the type of customer (i.e., choose "Mensile" and then click OK). After that, click on the "save" icon in the new panel and you'll get the error. It seems that there are problems in the edit section but I cannot find them... The table "codici" (this is the real name of my table) contains only 2 integer fields. (P.S.: the project lacks some graphics but I think this archive should contain all the necessary stuff to run it). -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software -------------- next part -------------- A non-text attachment was scrubbed... Name: PGA-Garage.tar.bz2 Type: application/x-bzip Size: 73172 bytes Desc: not available URL: From leonardo at ...1237... Thu Dec 28 02:41:13 2006 From: leonardo at ...1237... (Leonardo Miliani) Date: Thu, 28 Dec 2006 02:41:13 +0100 Subject: [Gambas-user] Signal error #11 In-Reply-To: <45931104.8010408@...1237...> References: <45931104.8010408@...1237...> Message-ID: <459320B9.6030900@...1237...> Leonardo Miliani ha scritto: > As I posted some threads ago, I still continue to receive a signal error > #11 when I run my project. > > Run it, enter the password "password" (very easy, isn't it? :-)), and > then click on the first big icon on left (or choose > "Moduli/Anagrafica/Gestione clienti"). Then, click on the "new" icon. > A little window will compare, where you can choose the type of > customer (i.e., choose "Mensile" and then click OK). After that, click > on the "save" icon in the new panel and you'll get the error. > > It seems that there are problems in the edit section but I cannot find > them... > The table "codici" (this is the real name of my table) contains only 2 > integer fields. > > (P.S.: > the project lacks some graphics but I think this archive > should contain all the necessary stuff to run it). > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user I've found a solution. I've converted the field types of "codici" table from INTEGER to CHAR and setting a primary key. So, the table changed from SQL create table codici ("mensili" integer, "passanti" integer) to create table codici ("tipo" CHAR(50) NOT NULL, "valore" CHAR(10),PRIMARY KEY ("tipo")) The first declaration didn't work, generating that error. More over, I found that without a referring field, Gambas didn't work properly. I mean that create a simple table with 1 row and 2 columns (2 fields), I didn't find no way to tell Gambas to direct the edit/update operations to that unique row. Maybe this was what generated the signal #11. Maybe... -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software From rolf.frogs at ...221... Thu Dec 28 13:27:53 2006 From: rolf.frogs at ...221... (rolf) Date: Thu, 28 Dec 2006 13:27:53 +0100 Subject: [Gambas-user] Using pdf in Gambas Message-ID: <200612281327.53915.rolf.frogs@...221...> Hi everybody out there, I try to find any documentation or an example for the usage of gb.pdf. Could somebody give me a hint. Thanks rolf From gambas at ...1... Thu Dec 28 21:34:53 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 28 Dec 2006 21:34:53 +0100 Subject: [Gambas-user] Using pdf in Gambas In-Reply-To: <200612281327.53915.rolf.frogs@...221...> References: <200612281327.53915.rolf.frogs@...221...> Message-ID: <200612282134.53690.gambas@...1...> On Thursday 28 December 2006 13:27, rolf wrote: > Hi everybody out there, > > I try to find any documentation or an example for the usage of gb.pdf. > Could somebody give me a hint. > > Thanks > rolf > The component is not finished. You can just open a PDF file and gets an image from each page of the PDF document. This way: DIM hPDF AS NEW PDFDocument DIM hPict AS Picture DIM iPage AS Integer hPDF.Open(PdfFilePath) hPDF.Scale = ... hPDF.Rotation = ... FOR iPage = 0 TO hPDF.Count - 1 hPict = hPDF[iPage].GetPicture() ... NEXT Regards, -- Benoit Minisini From rolf.frogs at ...221... Fri Dec 29 10:09:57 2006 From: rolf.frogs at ...221... (rolf) Date: Fri, 29 Dec 2006 10:09:57 +0100 Subject: [Gambas-user] Using pdf in Gambas In-Reply-To: <200612282134.53690.gambas@...1...> References: <200612281327.53915.rolf.frogs@...221...> <200612282134.53690.gambas@...1...> Message-ID: <200612291009.58132.rolf.frogs@...221...> Hi Benoit, > > I try to find any documentation or an example for the usage of gb.pdf. > > Could somebody give me a hint. > The component is not finished. You can just open a PDF file and gets an > image from each page of the PDF document. > > This way: > > DIM hPDF AS NEW PDFDocument > DIM hPict AS Picture > DIM iPage AS Integer > > hPDF.Open(PdfFilePath) > hPDF.Scale = ... > hPDF.Rotation = ... > > FOR iPage = 0 TO hPDF.Count - 1 > hPict = hPDF[iPage].GetPicture() > ... > NEXT > Thanks Benoit, that helps. Rolf From tehsis at ...626... Sat Dec 30 02:55:42 2006 From: tehsis at ...626... (Pablo Terradillos) Date: Fri, 29 Dec 2006 22:55:42 -0300 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <546f17d70612261515l7c930103k8167c22b0b735a25@...627...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <200612261939.40817.gambas@...1...> <546f17d70612261455y5fd4ce45gaf9bbe3c5c139820@...627...> <200612270010.13832.gambas@...1...> <546f17d70612261515l7c930103k8167c22b0b735a25@...627...> Message-ID: <546f17d70612291755n2df3f101tcd15f0dcf630d513@...627...> have you found something? On 12/26/06, Pablo Terradillos wrote: > > Ok, i attached the files... > > The program is to send message to cell phones... but, only for test, it > send the message to my e.mail > > On 12/26/06, Benoit Minisini wrote: > > > > On Tuesday 26 December 2006 23:55, Pablo Terradillos wrote: > > > Here you have: > > > > > > SmtpClient1.Host = "mail.gigared.com" > > > SmtpClient1.From = remitente > > > SmtpClient1.To.Add("tehsis at ...626...") > > > SmtpClient1.Add("hola", "text/plain;charset=utf-8") 'CONFLICTO > > > SmtpClient1.Send() > > > > > > Let me know if you want the entire program... > > > > > > > I would like! > > > > -- > > Benoit Minisini > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys - and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Pablo E. Terradillos - Tehsis > http://tehsis.blogspot.com > http://softehsis.blogspot.com > > -- Pablo E. Terradillos - Tehsis http://tehsis.blogspot.com http://softehsis.blogspot.com From gambas at ...1... Sat Dec 30 09:23:18 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 30 Dec 2006 09:23:18 +0100 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <546f17d70612291755n2df3f101tcd15f0dcf630d513@...627...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <546f17d70612261515l7c930103k8167c22b0b735a25@...627...> <546f17d70612291755n2df3f101tcd15f0dcf630d513@...627...> Message-ID: <200612300923.18908.gambas@...1...> On Saturday 30 December 2006 02:55, Pablo Terradillos wrote: > have you found something? > I didn't have the time to look at your problem yet. I'm moving house today, and I don't think I will have an Internet connection before a week. So you will have to be patient! Regards, -- Benoit Minisini From gambas at ...1... Sat Dec 30 09:28:33 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 30 Dec 2006 09:28:33 +0100 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <546f17d70612291755n2df3f101tcd15f0dcf630d513@...627...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <546f17d70612261515l7c930103k8167c22b0b735a25@...627...> <546f17d70612291755n2df3f101tcd15f0dcf630d513@...627...> Message-ID: <200612300928.33353.gambas@...1...> On Saturday 30 December 2006 02:55, Pablo Terradillos wrote: > have you found something? > > On 12/26/06, Pablo Terradillos wrote: > > Ok, i attached the files... > > > > The program is to send message to cell phones... but, only for test, it > > send the message to my e.mail > > > > On 12/26/06, Benoit Minisini wrote: > > > On Tuesday 26 December 2006 23:55, Pablo Terradillos wrote: > > > > Here you have: > > > > > > > > SmtpClient1.Host = "mail.gigared.com" > > > > SmtpClient1.From = remitente > > > > SmtpClient1.To.Add("tehsis at ...626...") > > > > SmtpClient1.Add("hola", "text/plain;charset=utf-8") 'CONFLICTO > > > > SmtpClient1.Send() > > > > > > > > Let me know if you want the entire program... Actually the bug was plain stupid. Just specify a name for the attachment as a workaround: SmtpClient1.Add("hola", "text/plain;charset=utf-8", "attachment #1") I will fix that in the svn repository. Regards, -- Benoit Minisini From rohnny at ...1248... Sat Dec 30 13:44:37 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 30 Dec 2006 13:44:37 +0100 Subject: [Gambas-user] double slashes Message-ID: <45965F35.9060808@...1248...> How todo double slashes in a string.? dim s as string s = "SomeText//moreText//moreText" But when I write this to a file it's only s = "SomeText/moreText/moreText" -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://gambasforum.tk From tehsis at ...626... Sat Dec 30 14:55:19 2006 From: tehsis at ...626... (Pablo Terradillos) Date: Sat, 30 Dec 2006 10:55:19 -0300 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <200612300928.33353.gambas@...1...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <546f17d70612261515l7c930103k8167c22b0b735a25@...627...> <546f17d70612291755n2df3f101tcd15f0dcf630d513@...627...> <200612300928.33353.gambas@...1...> Message-ID: <546f17d70612300555x460ce13of82241943fc82fbd@...627...> I will try that this afternoon, thanks very much and sorry for the hurry :$ Congratulations for your new house! happy moving Thanks again! On 12/30/06, Benoit Minisini wrote: > > On Saturday 30 December 2006 02:55, Pablo Terradillos wrote: > > have you found something? > > > > On 12/26/06, Pablo Terradillos wrote: > > > Ok, i attached the files... > > > > > > The program is to send message to cell phones... but, only for test, > it > > > send the message to my e.mail > > > > > > On 12/26/06, Benoit Minisini wrote: > > > > On Tuesday 26 December 2006 23:55, Pablo Terradillos wrote: > > > > > Here you have: > > > > > > > > > > SmtpClient1.Host = "mail.gigared.com" > > > > > SmtpClient1.From = remitente > > > > > SmtpClient1.To.Add("tehsis at ...626...") > > > > > SmtpClient1.Add("hola", "text/plain;charset=utf-8") 'CONFLICTO > > > > > SmtpClient1.Send() > > > > > > > > > > Let me know if you want the entire program... > > Actually the bug was plain stupid. Just specify a name for the attachment > as a > workaround: > > SmtpClient1.Add("hola", "text/plain;charset=utf-8", "attachment #1") > > I will fix that in the svn repository. > > Regards, > > -- > Benoit Minisini > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Pablo E. Terradillos - Tehsis http://tehsis.blogspot.com http://softehsis.blogspot.com From pvera at ...729... Sat Dec 30 17:57:49 2006 From: pvera at ...729... (Pablo Vera) Date: Sat, 30 Dec 2006 10:57:49 -0600 Subject: [Gambas-user] double slashes In-Reply-To: <45965F35.9060808@...1248...> References: <45965F35.9060808@...1248...> Message-ID: <45969A8D.30504@...729...> Try it like this: s = "SomeText////moreText////moreText" Pablo _____________________________________________________________________ Rohnny Stormo wrote: > How todo double slashes in a string.? > > dim s as string > > s = "SomeText//moreText//moreText" > > But when I write this to a file it's only > > s = "SomeText/moreText/moreText" > > > From rohnny at ...1248... Sat Dec 30 19:03:16 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 30 Dec 2006 19:03:16 +0100 Subject: [Gambas-user] double slashes In-Reply-To: References: Message-ID: <4596A9E4.9010207@...1248...> Thanks it worked. Why is this needed is there a bug or... -- R. Stormo ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://gambasforum.tk From tehsis at ...626... Sun Dec 31 23:09:15 2006 From: tehsis at ...626... (Pablo Terradillos) Date: Sun, 31 Dec 2006 19:09:15 -0300 Subject: [Gambas-user] Send mail using SMTP In-Reply-To: <546f17d70612300555x460ce13of82241943fc82fbd@...627...> References: <546f17d70612220833h5de4e6f6o3fcfaa6f7f2e0b2f@...627...> <546f17d70612261515l7c930103k8167c22b0b735a25@...627...> <546f17d70612291755n2df3f101tcd15f0dcf630d513@...627...> <200612300928.33353.gambas@...1...> <546f17d70612300555x460ce13of82241943fc82fbd@...627...> Message-ID: <546f17d70612311409s7147c626x1f0f20ef2308d67f@...627...> it's still don't working... i got the same error =( is that modify all i have to do? anyway... i will keep trying... thanks you On 12/30/06, Pablo Terradillos wrote: > > I will try that this afternoon, thanks very much and sorry for the hurry > :$ > > Congratulations for your new house! happy moving > > Thanks again! > > On 12/30/06, Benoit Minisini wrote: > > > > On Saturday 30 December 2006 02:55, Pablo Terradillos wrote: > > > have you found something? > > > > > > On 12/26/06, Pablo Terradillos wrote: > > > > Ok, i attached the files... > > > > > > > > The program is to send message to cell phones... but, only for test, > > it > > > > send the message to my e.mail > > > > > > > > On 12/26/06, Benoit Minisini < gambas at ...1...> wrote: > > > > > On Tuesday 26 December 2006 23:55, Pablo Terradillos wrote: > > > > > > Here you have: > > > > > > > > > > > > SmtpClient1.Host = "mail.gigared.com" > > > > > > SmtpClient1.From = remitente > > > > > > SmtpClient1.To.Add("tehsis at ...626... ") > > > > > > SmtpClient1.Add("hola", "text/plain;charset=utf-8") 'CONFLICTO > > > > > > SmtpClient1.Send() > > > > > > > > > > > > Let me know if you want the entire program... > > > > Actually the bug was plain stupid. Just specify a name for the > > attachment as a > > workaround: > > > > SmtpClient1.Add("hola", "text/plain;charset=utf-8", "attachment #1") > > > > I will fix that in the svn repository. > > > > Regards, > > > > -- > > Benoit Minisini > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Pablo E. Terradillos - Tehsis > http://tehsis.blogspot.com > http://softehsis.blogspot.com > -- Pablo E. Terradillos - Tehsis http://tehsis.blogspot.com http://softehsis.blogspot.com