Error code 148

SteveJBarratt

New Member
Can anybody explain error code 148?

** Numeric format provides for no digits (148).

From Progress Help file.....

** Numeric format <format> provides for no digits. (148)
A numeric format must have at least one position that represents digits of the number. For example, the format $$$.$$ is not valid since at least one >,Z,9 or * must be used in a numeric format.


I am using Progress 9.1D SP6 on Win 2K.

This error code occurs when I delete lines from a browse. The browse has a field in it that is formated to either an integer or decimal depending on a setting of a flag.

On populating the browse with either or both, sets of formats, there are no errors.

on deleteing the lines the error occurs when the last line is deleted.
i.e. The browse has zero iterations. I have coded for the zero iterations and this is trapped.

The full code for this problem is quite long, I therefore don't want to post it just yet.

Is there a simple solution or do I need to post the full code?

Regards.

Steve.
:confused:
 
This is the row display of my browse, which sets the format.

FIND FIRST ean OF t_display NO-LOCK NO-ERROR.
IF AVAILABLE ean THEN
DO:
IF ean.weighted-item THEN
ASSIGN
t_display.qty-transfered:FORMAT IN BROWSE {&browse-name} = ">>>>>9.999":U
t_display.qty-expected:FORMAT IN BROWSE {&browse-name} = "->>>>>9.999":U.
ELSE
ASSIGN
t_display.qty-transfered:FORMAT IN BROWSE {&browse-name} = ">>>>9":U
t_display.qty-expected:FORMAT IN BROWSE {&browse-name} = "->>>>9":U.
END.
IF p-mode <> "View" THEN t_display.qty-transfered:FONT IN BROWSE {&browse-name} = incontrol.system_control.entry-font.
IF NOT AVAILABLE ean THEN RETURN NO-APPLY.

Once again the problem only occurs when the browse is empty....?

If you need to see more of my code, just ask.

Regards

Steve.
:confused:
 
t_display.qty-transfered:FONT IN BROWSE {&browse-name} = incontrol.system_control.entry-font.

This code change only current cell font.
I think you want to change COLUMN-FONT.
Rirht?
(But this is simple comment.)


(** Numeric format provides for no digits (148).)
I do not know what is the real problem.

I have Progress 9.1A.
Here did not work format changeing in Browse.
Syintax is correct. But no more.
The format not changed. (Without error message)

I think format changeing not work in Browse. (at least in 9.1A)
Format changeing need to "COLUMN-FORMAT" widget.
(Linke "COLUMN-FONT")

This is exist in 9.1D?
 
The changing of the font in the browse is only required for this cell. This is to indicate the cell that is being updated. I don't believe that is as anything to do with this error message. We use this line of code in many other programs without any errors.

We are using 9.1D SP6. The Problem with changing formats in browsers is being tested here to see if this is a bug!!!!

I'll let you know how I get on with this....

Regards

Steve.
 
;p Problem Solved!;p

The problem was that the browse cell in question had default format of decimal.

Within the code I was re-setting the cell format to integer if a flag was set and changing to decimal with an else statement.

The solution was to default it to a integer and ONLY change it to decimal if the flag was set.

i.e. Not using the else statement to reset the default which wasn't required.

The result is the code works perfectely.

Thanks for your help.

Kind regards.

Steve.
 
toast.gif

Not at all. :-)

But, this is not my merit.

Regards.
 
:blush1: Ooops!:blush1:


A colleague of mine, found that this does NOT work!!

I tested the example without trying both settings of the flag.

The truth is if I use the default settings (Integer in the browse) and do not try to amend the format of the browse cell. Then delete the row. No error occurs. i.e. This works.

However if I now try to change the format of the browse cell to decimal the problem occurs.

Problem NOT solved.

I don't understand why I can change the format of the cell in the browse, then when I delete the row from the browse (zero itterations) the error code 148 occurs?

I have a browse with a field formatted for integer.

I can programtically change the format of the cell to decimal.

I can place a decimal in the cell and it displays correctley.

I then delete the row.

If it is the only row in the browse error 148 occurs ?

Why?

Can anyone help?

Steve.
 
Some more info for your test.

I have got as far as, reformating the column, before you delete the row. this seems to work. The real problem appears to be when the row-display changes the format and you then delete the new formated column.

We also now have introduced a second problem, the system freezes when changing from either dec to int or int to dec. This I am looking into now and will let you know what I find. I don't think the two are related. I will check this too.

Steve.
:confused:
 
Back
Top