Column Name o Column Label

pako

New Member
Hii !!!.

Any of you code, happy people out there have an easy way to take a column name o column label (no data) in a browse, when a press "start-search" in it.

Thanks in advanced.




:awink:
 

jongpau

Member
Pako,

Try something like this:
Code:
DEF VAR lhColumn AS HANDLE NO-UNDO.

ON "START-SEARCH":U OF BROWSE {&BROWSE-NAME} DO:
  lhColumn = BROWSE {&BROWSE-NAME}:CURRENT-COLUMN.

  MESSAGE lhColumn:NAME lhColumn:LABEL
          VIEW-AS ALERT-BOX.
END.
If you have Progress v9.x you can use the column-name and a dynamic query to sort the browse on the selected column.

In earlier version(s) of Progress you will have to create some sort of CASE statement (using the column name) that opens the browse's query with the required sorting.

If you need more help let me know :)

HTH.
 

pako

New Member
Column Name

Great !!

jongpau, thanks a lot for your help, for this moment i dont have more problems with it, but maybe i need something similar than you needed, to put some buttons or icons to indicate descending or ascending sort.
In this moment i will try to know how to search a record over the same column typing a string, once you selected the column.

:chat:
 
pako,
I have written a program for Version 9.1 that allows you to search for strings on a browser.

It works for both smart and normal browsers.

It is available on the following thread and is called browsearch.w

browsearch.w thread
 
Top