Edit Extended / Edit WorkArea - ABM / ABM2

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

User avatar
serge_girard
Posts: 1415
Joined: Sun Nov 25, 2012 2:44 pm
Location: Belgium
Has thanked: 114 times
Been thanked: 17 times
Contact:

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by serge_girard » Thu Feb 16, 2017 11:09 am

Hi Ruben,

Nice job! The FIND option however needs a little adaption: I tried finding 'glen' (Glen) and it gave not found.
Pablo: thx for BIGELEM!

Serge

rubenalf
Posts: 9
Joined: Mon Jan 11, 2016 5:55 pm
Been thanked: 1 time

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf » Thu Feb 16, 2017 12:44 pm

------ English ------
Yes Pablo, I did not mention you should use superlib.a for BIGELEM()
(well, I did on the code, beside the calling at the function)
There is another similar (I did no try it) ft_AEMaxLen() --> libhbnf.a

Actually I did not check FIND option. I will do

Thanks Pablo, Serge and all that have evaluated mi modest work
Ruben

------ Español ------

Si Pablo, olvidé mencionar que se debe usar superlib.a para BIGELEM()
(realmente lo hice en el código, al lado de la llamada a la función)
Hay otra función similar que no probé ft_AEMaxLen() --> libhbnf.a

Realmente no usé la opcion FIND.

Gracias Pablo, Sergio y todos los que se interesaron por este modesto aporte
Ruben

rubenalf
Posts: 9
Joined: Mon Jan 11, 2016 5:55 pm
Been thanked: 1 time

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf » Thu Feb 16, 2017 2:36 pm

Serge:
My changes do not interact with FIND option. To look for last name try changing index order (upper left on the browse)
Should not be conflicts because the modifications are (surprising) very few. You can look at the code for

Code: Select all

 *<< begin modif (2017-02) ComboBox 
You will find no more than 40 code lines in basically 3 places.

It is compatible with the original Edit Extend, only should be noted that if you have a special save routine, witch is an optional
parameter, you should modify it accordingly. That is the reason why it will not work the "Advanced test" on the demo w/o modifications.


------ Español ------
Los cambios no deberían afectar la opción de búsqueda FIND. Para buscar por apellido prueba cambiando el índice (arriba a la izq. en el browse)
No debería haber otros conflictos porque las modificaciones son pocas en contra de lo esperado. Si buscan en el código la frase

Code: Select all

 *<< begin modif (2017-02) ComboBox 
verán que no hay más de 40 lineas de código basicamente en 3 partes.

Debe ser totalmente compatible con el original Edit Extend, solo se debe aclarar que si tienes tu propia rutina de grabacion
debes modificarla para que pueda manejar los Comboboxes. Por eso no funciona "Advanced test" en el demo sin modificarlo.

User avatar
serge_girard
Posts: 1415
Joined: Sun Nov 25, 2012 2:44 pm
Location: Belgium
Has thanked: 114 times
Been thanked: 17 times
Contact:

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by serge_girard » Fri Feb 17, 2017 8:54 am

Thx !

Sege

rubenalf
Posts: 9
Joined: Mon Jan 11, 2016 5:55 pm
Been thanked: 1 time

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf » Sat Feb 18, 2017 3:19 am

Para evitar confusión agregué el COMBOBOX sobre un h_edit_ex.prg original.
To avoid confusion I made the changes for COMBOBOX on original h_edit_ex.prg

Ahora verifica que la función devuelva una matriz, caso contrario la ignora.
Now, it cheks that list function return an array, otherway just ignore it.

He modificado en el demo la rutina AdvancedSave() para que maneje bien los COMBOBOX.
I have modified the AdvancedSave() routine in the demo to handle the COMBOBOX well.
Attachments
Editex-demo_CB - copia.zip
(49.21 KiB) Downloaded 9 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest