Is there a way to have dynamic formating in a frame
Here is an example of what I am trying to do
-------------------------------------------------------------------
def var p-desc as char.
def var h-desc.
form
p-desc at 32 format "x(8)" space(0) h-desc skip
with side-labels center row 1 frame mainf
title " Customer Maintenance ".
main:
.
.
.
if customer.country = "USA" then
p-desc = "1"
else
p-desc = "011-" + country.p-code + "-"
display p-desc with frame mainf.
update h-desc with frame mainf.
-------------------------------------------------------------------
but instead of having the format "x(8)" for p-desc I would rather it
have a format of "x(length(p-desc))"
what would be a means or syntax of doing this?
Thanks,
Dave
Here is an example of what I am trying to do
-------------------------------------------------------------------
def var p-desc as char.
def var h-desc.
form
p-desc at 32 format "x(8)" space(0) h-desc skip
with side-labels center row 1 frame mainf
title " Customer Maintenance ".
main:
.
.
.
if customer.country = "USA" then
p-desc = "1"
else
p-desc = "011-" + country.p-code + "-"
display p-desc with frame mainf.
update h-desc with frame mainf.
-------------------------------------------------------------------
but instead of having the format "x(8)" for p-desc I would rather it
have a format of "x(length(p-desc))"
what would be a means or syntax of doing this?
Thanks,
Dave