I can't even BEGIN to explain this...

dwolking

New Member
I have a situation where Progress seems to have no interest in writing to a field in my table. I initially found the problem in the following line:

if not avail scomm-adj
then create scomm-adj.
assign scomm-adj.invno = v-inv
scomm-adj.line = v-line
scomm-adj.chg-req-type = v-corr
scomm-adj.chg-req-by = caps(userid('dictdb'))
scomm-adj.chg-req-comment = v-reason
scomm-adj.chg-req-cost = v-newstd
scomm-adj.adi-cost = v-adi-cost
scomm-adj.chg-req-date = today
scomm-adj.chg-req-time = time
scomm-adj.chg-req-incl = v-incl
scomm-adj.adj-mrg = v-adjmrg
scomm-adj.chg-rev-stat = 'UR'
scomm-adj.markup = v-markup
scomm-adj.userlog1 = if v-markup = v-markup2
then yes
else no
scomm-adj.po = v-po
scomm-adj.comper = v-comper
scomm-adj.userdec1 = v-reb-amt.

Where everything appeared to update EXCEPT scomm-adj.markup. When I isolated the update with the following, I got even weirder results.

Going into this v-markup = 1.03 and scomm-adj.markup = 1.00. The following is a snippet that I used for testing...

assign
v-test = no.

disp
v-test
v-markup
scomm-adj.markup
with frame f-bizarre1.
pause.
assign
v-test = yes
scomm-adj.markup = v-markup.

disp
v-test
v-markup
scomm-adj.markup
with frame f-bizarre2.
pause.

Running this produces the following:

v-test v-markup Markup
no 1.03 1.00

Press space bar to continue.

v-test v-markup Markup
yes 1.03 1.00

Why would the variable update, but NOT the field? This is such a simple thing... What am I missing?

Anyone? Help!

Dan W.
 
Never mind...

Sorry about that... As it turns out, the table field was defined as an integer, but formatted to display as a decimal.

Gah!
 
Back
Top