Answered Change Browse column format at runtime

Hello guys,

I want to change at runtime a colonne format for my browse. At the start I set in my BROWSE Display:
Code:
myTable.myfield FORMAT ">>>>>>>9,99"

At runtime I need to display data that are only integer.
I tried to do this:
Code:
DEFINE VARIABLE hCol as HANDLE.

hCol = myBrowse:GET-BROWSE-COLUMN(1) .
hCol:FORMAT = ">>>>>>>9".

But when runing it I get this error message:
Utilisazion non valid on the browse method FORM. No ligne selected (382)

Do you have any idea ?

Best Regards,
 

Osborne

Active Member
The problem is you are trying to change the format using a method that only works if there is at least one selected record/row in the browse:

Invalid use of browse method . There are no selected rows. (382)

In order to use this method, there must be at least one selected row in the browse widget.

Try the solutions in the attached text files.
 

Attachments

  • How to Change the Format of a Browse Column at Runtime.txt
    2.4 KB · Views: 33
  • How to change the format of a static browse column at runtime.txt
    1.1 KB · Views: 27
  • Trying to change the FORMAT of a browse column dynamically.txt
    1.3 KB · Views: 28
Top