Page 4 of 6

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 3:45 pm
by Pablo César
esgici wrote:And second ( as in early versions of CSBx ) implementing search operation ( lines 226 trough 236 in of combosearchbox.prg in HFCL lib) may be a bit different:

Code: Select all

   cSearchValue := TRIM( UPPER( cCurValue ) ) // Compare TRIM() with HB_TRIM() 
                                              // and     UPPER() with HB_UPPER()
   
   AEVAL( aitems, { | c1 | IF( UPPER( LEFT( c1, LEN( cSearchValue ) ) ) == cSearchValue,;
                    AADD( aResults, c1 ), ) } )
                    
   IF EMPTY( aResults ) .AND. lAnyWhere
      AEVAL( aitems, { | c1 | IF( cSearchValue $ UPPER( c1 ),;
                              AADD( aResults, c1 ), ) } )
   ENDIF
Dear Esgici, there is another question regarding UPPER case transform in special characters. For spanish, portuguese and probably other languages which uses accents in it character like as "á" which after UPPER is not be converted to "Á". For right behaviour, I believe this array list should be not with accents. Probably in ANSI it works perfectely...

And another question which you Esgici not answered yet:
Screen65.PNG
Screen65.PNG (16.33 KiB) Viewed 3929 times
Could you fix this ?

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 3:51 pm
by esgici
Pablo César wrote:
esgici wrote:As Pablo said : Sorry, sorry and sorry :(

But you didn't warn us "after selected an item" :(

I'll continue to search; because trailing space should not cause an error like this.

Regards
Caramba ! I made mistake again... sorry for everybody !

Mr. Rathinagiri and Jairo were right (also me at begining, probably Esgici influences on me, :lol: ) ! There is a RTE afeter selecting. And for ComboSearBox needs for triming space in each elements. Was right for beginig, sorry (today I have awaike up at 4h in morn, due to my coughing fit). My apologies, colleagues !

So Mr. Esgici, start again with these problem, probably you should treat in your code, just to avoid future problems in case not trimed spaces.
Querido amigo

Me too have some bad news

Worked right (without error) without trimming ;)

simply by saved as ANSI ( by influenced by you ;) )

Definitely problem is in UT-8, not trimming.

By the way, dear Pablo;

I'm not author, simply the humble starter of CSBx; but please don't take wrong; this doesn't means "this isn't my problem"; both as the starter and as member of HMG community every problem interest me.

In other hand I'm very sad because I'm totally unable in the UT-8 area.

By the way please go a bit slow, I can't follow; before I write a response came a lot of posts

Regards

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 4:11 pm
by esgici
Regarding "missing combobox (box last) line" problem; I agree with you, we need correct this.

But please once look at combosearchbox.prg in HFCL lib; how many complex it is.

As a very little example, do you believe if I said: the combo box seen in the screen is not a real combo box, it is a list-box in fact; the search box isn't a real text-box it is a window in fact ?

Anyway I'll work on it too.

TIA :D

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 4:17 pm
by esgici
rathinagiri wrote::) I was packing my desktop to you to show this problem. :)
Cleaning is always good ;)

Regards

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 5:04 pm
by Pablo César
esgici wrote:Worked right (without error) without trimming ;)

simply by saved as ANSI ( by influenced by you ;) )
I know... but we need to universalize this question of several language, and UNICODE is the way ! Take in mind there are some languages with specials characteres that is ude to be accented. Upper case will not work properlly in these cases.
Definitely problem is in UT-8, not trimming.
This is serious case, we need to check with the genious of HMG/UNICODE: Dr. Claudio Soto, who can tell us how to solve this question. Because I have quite same problem in STRU in .lng files which containes specific spaces in the file.
By the way, dear Pablo;

I'm not author, simply the humble starter of CSBx; but please don't take wrong; this doesn't means "this isn't my problem"; both as the starter and as member of HMG community every problem interest me.
Sure, my firned. I am feeling like at home with you and all my critics are to be with one objetive: to primise a quality fo all.
In other hand I'm very sad because I'm totally unable in the UT-8 area.
Let's ask help to Mr. Claudio, he is so kind !
By the way please go a bit slow, I can't follow; before I write a response came a lot of posts
You are a very good friend not only of me but for all this comunity. And I thank you for your good attentions in all matters. You also are so kind.
esgici wrote:the combo box seen in the screen is not a real combo box, it is a list-box in fact
I'm sure you will get the good ways to fix missing last line (at least in WinXP), probably by ISTHEMED case ??

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 6:05 pm
by Leopoldo Blancas
Hola Pablo Cesar...

Si como dijiste, y dijiste bien, el más divertido soy yo, después de leer todos los Post y ver que relajo provoque si que me dio risa, estaba viendo en cada Post quien tenia la razón o quien tenia una solución mejor... pero esta bien. Amigos Esgici, Pablo, Rathinagiri, todos gracias por contestar, ya que me liberan de una preocupación de que estaba haciendo algo mal.

Esperando que esto se solucione lo mejor posible :D

Saludos
Polo
*-----------------------------------------------------------------------------------------------------------------------------------------
Hello Pablo Cesar ...

If, as you said, and said well, the most fun I, after reading all posts and see that mess cause if I had to laugh, I was watching every Post who was right or who had a better solution ... but that's ok. Friends Esgici, Paul, Rathinagiri, thanks for answering all since I released a concern that I was doing something wrong.

Hoping this is resolved best. :D

regards
Polo

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 6:24 pm
by esgici
Olá Polo

You are welcome to discussion you was started ;)

But you haven't still said, what was your problem exactly :lol:

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 6:45 pm
by Leopoldo Blancas
Hola Esgici,

Mi problema es que trate de hacer el ejemplo pero con mi archivo y a la hora de escoger un ítem me da el error... Y como dijo el amigo pablo, el archivo lo hice por medio de una base de datos.

Para mi opinión esta bien los resultados que muestra al ir tecleando, ya que no se exactamente como empieza la dirección que estoy buscando.

Saludos
Polo
*------------------------------------------------------------------------------------------------------------------------------------------------
Hello Esgici,

My problem is I try to make the example but with my file and choosing an item gives me the error ... And as Paul said the friend, I did file through a database.

To my opinion this shows good results to go typing, since it is not exactly as I start looking for the address.

regards
Polo

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 7:41 pm
by Leopoldo Blancas
Hola Esgici...

También me gustaría que este control aceptara los que no sean los que hay en el array, para después uno los pudiera agregar en dicho array y después guardarlos en el archivo lst.

O como se haría esto?
Saludos
Polo
*---------------------------------------------------------------------------------------------------------------------------------------------
Hello Esgici ...

I would also accept that this control which are not the ones in the array, then one could add in that the array and then save the file lst.

Or would it?
regards
Polo

Re: Problema con combosearchbox/ problem combosearchbox

Posted: Sat Mar 23, 2013 7:53 pm
by Leopoldo Blancas
Hola esgici!!!

También estaría bien si aceptara nuevos ítems, en el caso de que no lo encuentre en el array que estamos utilizando, para después agregarlo a nuestro archivo LST.

Gracias
Polo
*--------------------------------------------------------------------------------------------------------------------------------------
Esgici Hello!

Also would be nice if accepting new items, in case you do not find in the array we are using, and then add it to our LST file.


Or would it?
thanks
regards
POLO