Re: [Gambas-user] What's faster: RegExp or String function

2011-11-30 Thread Jussi Lahtinen
Why don't you run benchmarks to find out? Dim ff As Float Dim ii As Integer ff = Timer For ii = 1 To SomeNumber FunctionToTest() Next Print "Time to run: " & CStr(Timer - ff) Choose value for "SomeNumber" so that run time is significant enough to give reasonably reliable measurement, in o

Re: [Gambas-user] problems after ubuntu 11.04 update

2011-11-30 Thread Jussi Lahtinen
Strange, AFAIK everything seems to be OK. "gb.form.dialog" seems to be compiled and installed. Maybe the update bring up some incompatible library version... I hope Benoit can say something more helpful. Jussi On Wed, Nov 30, 2011 at 11:28, JUHASZ Robert wrote: > Thanks for your instructions

[Gambas-user] What's faster: RegExp or String function

2011-11-30 Thread Phạm Quang Dương
Hi all, I want to remove all substring marked with '<>'. I have 2 functions: Dim rEx As New Regexp rEx.Compile("<.*>") rEx.Exec(s) While rEx.Offset >= 0 s = Replace(s, rEx.Text, "") rEx.Exec(s) Wend And i=Instr(s,"<") while i > 0 j=InStr(s,">", i) cut out from s the substring f

Re: [Gambas-user] Drag & drop files

2011-11-30 Thread Phạm Quang Dương
Hi, For 1 of your questions, try (require gvfs library): Library "libgvfscommon:0" Private Extern g_object_unref(gObject As Pointer) Private Extern g_file_new_for_uri(fUri As Pointer) As Pointer Private Extern g_file_get_path(gFile As Pointer) As String Public Function pathFromURI(uri As String

Re: [Gambas-user] Locale question and gambas and dates.

2011-11-30 Thread Dag-Jarle Johansen
ups, just opposite dd/mm/ is in fact european and if you see that if you go to your calendar in Kubuntu it should be ok. If you need to convert the datestring, write a little sub, I do have something lying around here, if you want to. I am used to convert almost every date to MySql-formats and

Re: [Gambas-user] Locale question and gambas and dates.

2011-11-30 Thread Dag-Jarle Johansen
hi, looks like the same format as the american to me, so I rather think this is a linuxbug rather than a gambas-bug. my humble opinion. Regards, Dag-Jarle 2011/11/30 richard terry > On Wednesday 30 November 2011 21:33:55 Benoît Minisini wrote: > > Le 30/11/2011 11:22, richard terry a écrit : >

[Gambas-user] something to do - once again

2011-11-30 Thread Dag-Jarle Johansen
to you who responded on my first request, I have to appoligage. I have changed my location - about 16.000 kms - and here we have WIFI in house. but I bought the wrong stick, it seams, I can't get it work with linux. and then using some kind of SVN is not easy - MS ist shit here, and I have to chang

Re: [Gambas-user] Locale question and gambas and dates.

2011-11-30 Thread richard terry
On Wednesday 30 November 2011 21:33:55 Benoît Minisini wrote: > Le 30/11/2011 11:22, richard terry a écrit : > > I have had the occasion to install my svn and get it up/running on > > kubuntu 11, god what a pain. > > > > Anway when I ran the program, virtualy nothing would save, because: > > > > Is

Re: [Gambas-user] gambas3 on oneric

2011-11-30 Thread Benoît Minisini
Le 30/11/2011 11:20, richard terry a écrit : > On Wednesday 30 November 2011 18:48:48 Caveat wrote: > > Ok, bad hair day, yes very ambiguous. > > What I meant was that the gambas web site has no listing of needed > dependencies. > > Anway I found this at http://www.domotiga.nl/projects/domotiga/wik

Re: [Gambas-user] Locale question and gambas and dates.

2011-11-30 Thread Benoît Minisini
Le 30/11/2011 11:22, richard terry a écrit : > I have had the occasion to install my svn and get it up/running on kubuntu 11, > god what a pain. > > Anway when I ran the program, virtualy nothing would save, because: > > IsDate(textbox1.text) always returned false for a correct date (AU). > > I lo

[Gambas-user] Locale question and gambas and dates.

2011-11-30 Thread richard terry
I have had the occasion to install my svn and get it up/running on kubuntu 11, god what a pain. Anway when I ran the program, virtualy nothing would save, because: IsDate(textbox1.text) always returned false for a correct date (AU). I looked and found that he had the locale set to America. I

Re: [Gambas-user] gambas3 on oneric

2011-11-30 Thread richard terry
On Wednesday 30 November 2011 18:48:48 Caveat wrote: Ok, bad hair day, yes very ambiguous. What I meant was that the gambas web site has no listing of needed dependencies. Anway I found this at http://www.domotiga.nl/projects/domotiga/wiki/Install Ubuntu Oneiric Ocelot 11.10 sudo apt-get inst

Re: [Gambas-user] problems after ubuntu 11.04 update

2011-11-30 Thread Norbert Szenográdi
Hello Robert, You can try Kendek's ppa repository: https://launchpad.net/~nemh/+ppa-packages I hope this help for your problem. Robi: próbáld meg Kendek ppa tárolóját, remélem megoldja a problémád :-) Üdv.: Sevoir 2011-11-30 10:28 keltezéssel, JUHASZ Robert írta: > Thanks for your instructions

Re: [Gambas-user] problems after ubuntu 11.04 update

2011-11-30 Thread JUHASZ Robert
Thanks for your instructions Jussi, I tried to follow them. However I still receive the same error message as before. I attached the log file. Thanks for any help. Robi -Original Message- From: Jussi Lahtinen Reply-to: mailing list for gambas users To: mailing list for gambas users S