Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread bill-lancaster via Gambas-user
Sorry, my mistake. The textarea control works fine if I don't intercept key strokes. (Form_KeyPress()) Thanks again for the responses -- View this message in context: http://gambas.8142.n7.nabble.com/textarea-won-t-accept-text-tp59911p59961.html Sent from the gambas-user mailing list archive a

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread PICCORO McKAY Lenz
i not at the depot, and in my work i have gambas 3.1 (wheeze/squeeze), the "rare" behaviour are at the depot of my work with gambas 3.9 but as adrien said: works in playgroud and works at my home in gambas 3.1, in few hours i go to the depot and paste the code.. Lenz McKAY Gerardo (PICCORO) http:

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Tony Morehen
Sorry about that, What strings are you using? What output do you want? For example: fn("(foo)") do you want "(foo)" or "(foo" yours returns "(foo" fn("(foo)x") do you want "(foo)" or "(foo" yours returns "(foo" fn("(foo)xx") do you want "(foo)" or "(foo" or "(foo)x" yours returns "(foo)x" fn

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread PICCORO McKAY Lenz
HEY TONY; ITS PICCORO; NOT PICARO! GR in the playground wprks perfectly, i not have 3.10, but in the job i have 3.1 and at my home 3.5 its a bug in 3.9 and 3.8, *with 3.1 works perfectly in debian squeeze (very older but better)* 2017-07-28 21:02 GMT-04:00 Adrien Prokopowicz : > Actually, h

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Tony Morehen
It's difficult to say for sure what's happening without Piccaro's test strings. However, 2 things do come to mind. First, according to Gambas doc, InStr(strinchar, ")", -n) does a left to right search for ")", starting at -n characters from the end of strinchar. So if Instr doesn't find ")"

Re: [Gambas-user] help with ListView code?

2017-07-28 Thread mikeB
Greetings, I just want to give a BIG THANK YOU to all those that responded to help me solve this problem - special gratitude goes out to 'Tobias Boege' for his time and efforts to give me a better picture of whats going on with the "ColunmView" control. I've still got a few problems to solve

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Fernando Cabral
Piccoro, sorry for my previous information. Something was missing. In fact, both versions work the same: * strinchar = "test )after)r"positionlen = (InStr(strinchar, ")", -1) - 1)Print strincharPrint positionlenstrinchar = Mid(strinchar, 1, positionlen) Print strinc

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Fernando Cabral
2017-07-28 20:46 GMT-03:00 PICCORO McKAY Lenz : > 2017-07-28 17:17 GMT-04:00 Fernando Cabral : > >> > in the following code: >> > strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1) >> > What does inStr() returns if nothing is found? You may be passing an >> invalid argument to Mid().

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Adrien Prokopowicz
Le Sat, 29 Jul 2017 02:40:44 +0200, Jussi Lahtinen a écrit: No... again. My initial mail was correct. It should be: strinchar = Mid(strinchar, 1, (InStr(strinchar, ")", -1) - 1)) But the IDE makes highlighting bug with the brackets. Jussi On Sat, Jul 29, 2017 at 3:33 AM, Jussi Lahtinen

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Jussi Lahtinen
No... again. My initial mail was correct. It should be: strinchar = Mid(strinchar, 1, (InStr(strinchar, ")", -1) - 1)) But the IDE makes highlighting bug with the brackets. Jussi On Sat, Jul 29, 2017 at 3:33 AM, Jussi Lahtinen wrote: > Hmmm... sorry, no mistake... I will look closer. > > > Ju

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Jussi Lahtinen
Hmmm... sorry, no mistake... I will look closer. Jussi On Sat, Jul 29, 2017 at 3:33 AM, Jussi Lahtinen wrote: > Because the line makes no sense at all. Try to remove ")". > > > Jussi > > On Fri, Jul 28, 2017 at 11:55 PM, PICCORO McKAY Lenz < > mckaygerh...@gmail.com> wrote: > >> in the followi

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Jussi Lahtinen
Because the line makes no sense at all. Try to remove ")". Jussi On Fri, Jul 28, 2017 at 11:55 PM, PICCORO McKAY Lenz wrote: > in the following code: > > strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1) > > IDE said error invalid argument, but if i do: > > psotionlen = InSt

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread PICCORO McKAY Lenz
2017-07-28 17:17 GMT-04:00 Fernando Cabral : > > in the following code: > > > > strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1) > > > > What does inStr() returns if nothing is found? You may be passing an > invalid argument to Mid(). > Please, check it up. > fernando check it up

Re: [Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread Fernando Cabral
2017-07-28 17:55 GMT-03:00 PICCORO McKAY Lenz : > in the following code: > > strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1) > > What does inStr() returns if nothing is found? You may be passing an invalid argument to Mid(). Please, check it up. - fernando > IDE said error inval

[Gambas-user] why this could not be? error in runtime?

2017-07-28 Thread PICCORO McKAY Lenz
in the following code: strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1) IDE said error invalid argument, but if i do: psotionlen = InStr(strinchar, ")", -1) - 1 strinchar = Mid(strinchar, 1, psotionlen) works, why? i wnat to remove the last occurence of a char but byba

Re: [Gambas-user] replace beetween two strings

2017-07-28 Thread PICCORO McKAY Lenz
RegExp.Replace are since 3.5, but thanks for the sugestion fernando, the idea are usefully due i'll emulate the pattern with shell commands Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-28 13:43 GMT-04:00 Fernando Cabral : > 2017-07-28 13:11 GMT-03:00 PICCORO McKAY Lenz :

Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread PICCORO McKAY Lenz
umm RegExp.Replace are only since 3.5 .. searching for alternatives, due i have for now Debian wheeze and the gamgas (with supoport by vendor) are 3.1 any ideas? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-28 13:51 GMT-04:00 Fernando Cabral : > 2017-07-28 12:50 GMT-03:

Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread Fernando Cabral
2017-07-28 12:50 GMT-03:00 PICCORO McKAY Lenz : > wow! i must made a string search procedure until "comment" was find.. ! > > i think that but i also think that a reg expresion must be better with pcre > component! > My suggestion it to be used with pcre componte. I only gave you the search and r

Re: [Gambas-user] replace beetween two strings

2017-07-28 Thread Fernando Cabral
2017-07-28 13:11 GMT-03:00 PICCORO McKAY Lenz : > > " string pepe pablo, data toto made thinker data2 \" and also a pizza" > > i what to remove all the string or extrac all the string beetween the > "data" fist ocurrence and the next after that ocurrence.. > ".*?data (.*?) data2" saves the substr

Re: [Gambas-user] since are available SQLrequest?

2017-07-28 Thread PICCORO McKAY Lenz
2017-07-28 13:17 GMT-04:00 Benoît Minisini : > Yes, but you are supposed to read the release notes, or eventually search > into them. > okok i understand benoit but i mean in case of more "normal mortal human users" that not read the release notes, not all are fashion way of the software updates!

Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread Benoît Minisini via Gambas-user
Le 28/07/2017 à 17:37, Fernando Cabral a écrit : Perhaps Bill has met the same problem I have here. I can't use IDE in my regular machines because it will not take anything from the keyboard. I only can edit my source code using a virtual machine. Nevertheless - I must add - the textarea in my pr

Re: [Gambas-user] since are available SQLrequest?

2017-07-28 Thread Benoît Minisini via Gambas-user
Le 28/07/2017 à 16:38, PICCORO McKAY Lenz a écrit : grrr the wiki must have that! thanks! please care with wiki aditions! most distributions and gambas programers dont have time/patiente to compile lasted gambas release.. Yes, but you are supposed to read the release notes, or eventually sea

Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread bill-lancaster via Gambas-user
Thanks for the ideas, Textarea works in other projects. A copy of the the offending project is attached. MusicLibraryCreate-0.gz Meanwhile, I'll see if I can make a simpler version. -- View this message in context: http:/

Re: [Gambas-user] gb.pcre regexp replace does not indicate since!

2017-07-28 Thread PICCORO McKAY Lenz
ah! thanks! sorry for noise! its very confusing due the languaje Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-28 12:56 GMT-04:00 Tobias Boege : > On Fri, 28 Jul 2017, PICCORO McKAY Lenz wrote: > > http://gambaswiki.org/wiki/comp/gb.pcre/regexp/replace has a "since > 3.9.

Re: [Gambas-user] gb.pcre regexp replace does not indicate since!

2017-07-28 Thread Tobias Boege
On Fri, 28 Jul 2017, PICCORO McKAY Lenz wrote: > http://gambaswiki.org/wiki/comp/gb.pcre/regexp/replace has a "since 3.9.X" > but does not indicate what! > > the hole "replace" or only a part functionality? > The note *below* the "Since 3.9.3" marker. The Replace() method exists since 3.5.0, as

[Gambas-user] gb.pcre regexp replace does not indicate since!

2017-07-28 Thread PICCORO McKAY Lenz
http://gambaswiki.org/wiki/comp/gb.pcre/regexp/replace has a "since 3.9.X" but does not indicate what! the hole "replace" or only a part functionality? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -- Chec

[Gambas-user] replace beetween two strings

2017-07-28 Thread PICCORO McKAY Lenz
i'v this cae, in a line i have: " string pepe pablo, data toto made thinker data2 \" and also a pizza" i what to remove all the string or extrac all the string beetween the "data" fist ocurrence and the next after that ocurrence.. i try to do but in the for each always replace twice.. Lenz Mc

Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread PICCORO McKAY Lenz
wow! i must made a string search procedure until "comment" was find.. ! i think that but i also think that a reg expresion must be better with pcre component! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-28 11:34 GMT-04:00 Fernando Cabral : > 2017-07-28 11:57 GMT-03:00

Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread Fernando Cabral
Perhaps Bill has met the same problem I have here. I can't use IDE in my regular machines because it will not take anything from the keyboard. I only can edit my source code using a virtual machine. Nevertheless - I must add - the textarea in my program is working fine. - fernando 2017-07-28 12:1

Re: [Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread Fernando Cabral
2017-07-28 11:57 GMT-03:00 PICCORO McKAY Lenz : > > my target objetive it parse a text/line like this: > > fiel1 TEXT COMMENT "coment fiel1" , field2 TEXT, fiel3 TEXT > fiel4 NUMBER(10,2), fiel5 TEXT COMMENT "pepepeep", > fiel6 TEXT > > into this: > > fiel1 TEXT /* coment fiel1*/ , field2 TEXT

Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread Charlie
bill-lancaster wrote > I'm obviously missing something here but have just added a textarea > control to my form. > I can display text in it from code but can only enter one character. > Any ideas? I have tried this and I can't find a fault. I can enter as much text as I like. Put text in with code

Re: [Gambas-user] Weather app in Software Farm

2017-07-28 Thread Charlie
Tony Morehen wrote > Hi Charlie, I just published a new version of gbWeather. Hi Tony, This seems to be working quite well though I don't always get 'Future' icons. I have been playing with this idea as well and if you look here you will see all

[Gambas-user] traslate grep expresion to detect COMMENT in line sql

2017-07-28 Thread PICCORO McKAY Lenz
i have a sql file that hava also lines like : COMMENT " " , field f2 \n in console with this grep/sed can sustituye multilines or single lines sed -ne '/comment/{:;/\o47;\s*$/!{N;b};s/\n\s*/ /;p}' http://qgqlochekone.blogspot.com -

Re: [Gambas-user] Trouble with CSVFile Component

2017-07-28 Thread PICCORO McKAY Lenz
2017-07-27 21:48 GMT-04:00 Mark Walters : > And while Gambas feels very familiar, it's also quite different, and I'm > still acclimating to it. > always will be difference in any case, please dont assume any new artifac always want to emulate guindows.. > Thanks for your help :-) > in the IDE *

Re: [Gambas-user] since are available SQLrequest?

2017-07-28 Thread PICCORO McKAY Lenz
grrr the wiki must have that! thanks! please care with wiki aditions! most distributions and gambas programers dont have time/patiente to compile lasted gambas release.. and the other more important lasted gambas release does not fit always the currentl stable linux distributions dependences.. i

Re: [Gambas-user] textarea won't accept text

2017-07-28 Thread Adrien Prokopowicz
Le Fri, 28 Jul 2017 16:08:49 +0200, bill-lancaster via Gambas-user a écrit: I'm obviously missing something here but have just added a textarea control to my form. I can display text in it from code but can only enter one character. Any ideas? That looks like a bug. Can you send a projec

Re: [Gambas-user] Trouble with CSVFile Component

2017-07-28 Thread Charlie
markwalt wrote > Hi guys, > > I'm trying to write a very simple program that pulls in one CSV File, and > spits out another, based on what's inside the file. I use CSV files all the time. I find them easy and fast. Have a look at the attached example, hopefully it will help. CLIOnly1.tar

Re: [Gambas-user] since are available SQLrequest?

2017-07-28 Thread Benoît Minisini via Gambas-user
Le 28/07/2017 à 00:42, PICCORO McKAY Lenz a écrit : i see that in wiki, http://gambaswiki.org/wiki/comp/gb.db/sqlrequest since are available that? there its available for gambas 3.1? It's there since Gambas 3.8. -- Benoît Minisini

[Gambas-user] textarea won't accept text

2017-07-28 Thread bill-lancaster via Gambas-user
I'm obviously missing something here but have just added a textarea control to my form. I can display text in it from code but can only enter one character. Any ideas? -- View this message in context: http://gambas.8142.n7.nabble.com/textarea-won-t-accept-text-tp59911.html Sent from the gambas-

Re: [Gambas-user] help with ListView code?

2017-07-28 Thread Tobias Boege
On Thu, 27 Jul 2017, mikeB wrote: > Greetings all, > I've got a Listview (set as Column view) with 2 columns that I'm using > > for testing so I might understand how all this works so can add it to a > project. > > testCode.. > With listview1 >

Re: [Gambas-user] help with ListView code?

2017-07-28 Thread Fabien Bodard
Le 28 juil. 2017 07:12, "mikeB" a écrit : Greetings all, I've got a Listview (set as Column view) with 2 columns that I'm using for testing so I might understand how all this works so can add it to a project. testCode.. With listview1 .Clear