Constant values

Posted by ojfoggin on 05-Mar-2010 09:59

Hi Guys,

Is there any way to set up constant values for a procedure?

I am doing stuff with a grid control and it checks the column number.

I'd like to set the column numbers to be...

ORDERNO = 1

ITEMCODE = 2

QTY = 3

etc...

to make the code easier to read.

These won't be used anywhere other than in the file I'm working on.

Progress 10.1b.

Thanks!

Oliver

All Replies

Posted by Admin on 05-Mar-2010 10:12

Update to 10.1C and create static read-only integer properties in a "enum" class.

Posted by ojfoggin on 08-Mar-2010 03:40

Hi,

Unfortunately that doesn't help me with the program I am currently writing.

Is there any other way that I can do this using 10.1b?

Thanks

Posted by Peter Judge on 08-Mar-2010 07:40

ojfoggin wrote:

Hi,

Unfortunately that doesn't help me with the program I am currently writing.

Is there any other way that I can do this using 10.1b?

Thanks

Preprocessors?

&scoped-define ORDERNO  1

&scoped-define ITEMCODE  2

&scoped-define QTY  3

-- peter

Posted by ojfoggin on 08-Mar-2010 09:34

I've seen those used before but didn't know how to define my own

Sorted now!

Thanks

This thread is closed