Char formating -Help

make

Member
Hi Peggers,

i have a little Problem with the formating of some char variables.
I have done the following :

Def var custnr as char no-undo.

But custnr should be formated like this as initial value.

000000000000000

Later in code, i want to add or replace some chars.

But i dont know how i can do this.

Thanks for help !

Greets

Make
 

Crittar

Member
Make,

Try:

DEFINE VARIABLE custnr AS CHARACTER FORMAT 'x(16)' INITIAL '0000000000000000' NO-UNDO.

As to how you add / replace characters - I would need more information on the logic you need to apply before I could answer that.
 
Top