Thanks, Benoît.
The "make" error has gone, the help browser behaves like any other window,
and I even learned how to copy from help. Fine!
-Original-Nachricht-
Subject: Re: [Gambas-user] To the wish list: FHelpBrowser
Date: Tue, 23 Nov 2010 18:57:25 +0100
Fr
is no newer one.
Regards
Matti
-Original-Nachricht-----
Subject: Re: [Gambas-user] To the wish list: FHelpBrowser
Date: Tue, 23 Nov 2010 18:57:25 +0100
From: Benoît Minisini
To: mailing list for gambas users
> 1. As I asked before, why does the HelpBrowser have to be a &q
> 1. As I asked before, why does the HelpBrowser have to be a "utility"
> window that you can't minimize? I can't see no reason why it couldn't be a
> "normal" window that could be used much easier. Read, minimize, try, and
> read again...
>
Upgrade to the latest revision, and set "Use utility wi
> 1. As I asked before, why does the HelpBrowser have to be a "utility"
> window that you can't minimize? I can't see no reason why it couldn't be a
> "normal" window that could be used much easier. Read, minimize, try, and
> read again...
My window manager allows me to roll/unroll the help window
1. As I asked before, why does the HelpBrowser have to be a "utility" window
that you can't minimize? I can't see no reason why it couldn't be a "normal"
window that could be used much easier. Read, minimize, try, and read again...
2. Right now, it is impossible to copy some text from FHelpBrowser
Thanks Benoît,
I will compile revision 2260 in a few days
since I got a few other things to take care of
Regards,
Dimitris
2009/8/22 Benoît Minisini
> > > Benoît,
> > >
> > > Perhaps you could also enhance Find to accept regular expressions (or
> > > something similar to what we can use with L
> > Benoît,
> >
> > Perhaps you could also enhance Find to accept regular expressions (or
> > something similar to what we can use with LIKE)
> >
> > If it already does can you provide some more documentation about it in
> > Gambasdoc?
> >
> >
> > Regards
> > Dimitris
>
> I'm not sure I will do tha
I think AddSorted() and FindSorted() are very useful (in other parts
of my code).
Quickly looking in to my code, I find 8 instances were to use them...
that would increase
performance.
Jussi
2009/8/22 Benoît Minisini :
>> Benoît,
>>
>> Perhaps you could also enhance Find to accept regular expre
> Benoît,
>
> Perhaps you could also enhance Find to accept regular expressions (or
> something similar to what we can use with LIKE)
>
> If it already does can you provide some more documentation about it in
> Gambasdoc?
>
>
> Regards
> Dimitris
>
I'm not sure I will do that. But I'm not sure I w
Benoît,
Perhaps you could also enhance Find to accept regular expressions (or
something similar to what we can use with LIKE)
If it already does can you provide some more documentation about it in
Gambasdoc?
Regards
Dimitris
2009/8/22 Benoît Minisini
> > Jussi Lahtinen ha scritto:
> > > Mean
> Jussi Lahtinen ha scritto:
> > Meaning like this? Should be faster!
> >
> > Dim col As New Collection
> >
> > For ii = 0 To iMyArray.Max
> > col.Add(iMyArray[ii], iMyArray[ii])
> > Next
> >
> > iMyArray.Clear()
> >
> > For Each ii In col
> > iMyArray.Add(ii)
> > Next
> >
> >
> > Jussi
> >
> > 20
Jussi Lahtinen ha scritto:
> Meaning like this? Should be faster!
>
> Dim col As New Collection
>
> For ii = 0 To iMyArray.Max
> col.Add(iMyArray[ii], iMyArray[ii])
> Next
>
> iMyArray.Clear()
>
> For Each ii In col
> iMyArray.Add(ii)
> Next
>
>
> Jussi
>
>
> 2009/8/21 Benoît Minisini :
>
>>> N
Meaning like this? Should be faster!
Dim col As New Collection
For ii = 0 To iMyArray.Max
col.Add(iMyArray[ii], iMyArray[ii])
Next
iMyArray.Clear()
For Each ii In col
iMyArray.Add(ii)
Next
Jussi
2009/8/21 Benoît Minisini :
>> Now I use algorithm like this (maybe not optimal);
>>
>> Dim ii
> Now I use algorithm like this (maybe not optimal);
>
> Dim ii As Integer
> Dim jj As Integer
> Dim bRemove As Boolean
>
> While ii < iMyArray.Count
>
> jj = 0
> bRemove = False
> While jj < iMyArray.Count
> If ii <> jj And iMyArray[ii] = iMyArray[jj] Then
> iMyArray.Remove(ii)
> bRemove
hey Jussi,
if of course you prefer the integer approach rather than my approach
you could try this one.
--
Dim tmpInitial as Integer
tmpInitial = iMyArray.Find("my item")
iMyArray[tmpInitial] &= "-b
hey Jussi,
I've tried a similar technique filtering about 5230 filenames and with my
old HyperThreaded p...@3ghz
It works pretty good for me :)
as I said give it a try :)
Regards
Dimitris
On Fri, Aug 21, 2009 at 1:49 PM, Jussi Lahtinen wrote:
> Usually string handling is slower than integer,
Usually string handling is slower than integer, although I haven't
test that in Gambas.
Jussi
On Fri, Aug 21, 2009 at 22:43, Dimitris Anogiatis wrote:
> Hey Jussi,
>
> If you want to find the duplicate values in an array... give this trick a
> try
>
> 1) turn the array into a string
> 2) store i
Hey Jussi,
If you want to find the duplicate values in an array... give this trick a
try
1) turn the array into a string
2) store it in a temp string variable
3) find the first occurence of the value you want
4) put the rest of the string in another temp variable
5) do a replace(tempString, "what
Now I use algorithm like this (maybe not optimal);
Dim ii As Integer
Dim jj As Integer
Dim bRemove As Boolean
While ii < iMyArray.Count
jj = 0
bRemove = False
While jj < iMyArray.Count
If ii <> jj And iMyArray[ii] = iMyArray[jj] Then
iMyArray.Remove(ii)
bRemove = True
Else
Inc jj
What I do also to avoid duplicates is check the array before you add
the new entry to it
IF MyArray.Find("YourString") = -1 THEN MyArray.Add("YourString")
--
Let Crystal Reports handle the reporting - Free Crystal Reports
> Hi!
> Gambas has VERY good set of methods regarding arrays, but something is
> missing! I'd like to see iMyArray.RemoveDuplicates. Because with large
> arrays this simple task
> is pretty CPU intensive!
> What do you think?
>
>
> Jussi
>
Why do you have duplicates inside your array?
--
Benoît
Can you use the array.find() method?
maybe loop through the array?
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
Hi!
Gambas has VERY good set of methods regarding arrays, but something is missing!
I'd like to see iMyArray.RemoveDuplicates. Because with large arrays
this simple task
is pretty CPU intensive!
What do you think?
Jussi
23 matches
Mail list logo