[Migrated content. Thread originally posted on 22 August 2004]
I have recently started coverting a load of legacy acu cobol to windows and am finding some very frustrating things that may well be a lack of knowledge on my part. I am doing it the hard way at the moment without using ACUbench - but making quick and reasonable progress.
Can someone tell me how to use grids so that user entry into cells is formatted - i.e. numeric edited, currency etc. I have already given up on the hope that grids will aloow a cell to contain drop down lists etc. If there is no way of using grids to accept edited data I am a little confused as to what use to make of it.
Keith Lawrence
Keith,
If you are familiar with ActiveX object models (or want to learn), I would recommend using an ActiveX grid control that will allow you to use drop down lists and many, many more things. I'm not sure if there is a way to handle the editing of entry that you are looking for, but I'll bet there are a handful of controls that would. They are pretty inexpensive and offer free downloadswith a trial license. I usually prove I can get one working properly before I even buy it.
(BTW, I didn't use AcuBench either...) ;-)
Rob
[Migrated content. Thread originally posted on 22 August 2004]
I have recently started coverting a load of legacy acu cobol to windows and am finding some very frustrating things that may well be a lack of knowledge on my part. I am doing it the hard way at the moment without using ACUbench - but making quick and reasonable progress.
Can someone tell me how to use grids so that user entry into cells is formatted - i.e. numeric edited, currency etc. I have already given up on the hope that grids will aloow a cell to contain drop down lists etc. If there is no way of using grids to accept edited data I am a little confused as to what use to make of it.
Keith Lawrence
Keith
Try setting ALIGNMENT and DATA-TYPES properties of the grid e.g.
DATA-COLUMNS (1, 18, 21),
DISPLAY-COLUMNS (1, 18, 21),
ALIGNMENT ("U", "C", "R"),
DATA-TYPES ("X", "X", "9"),
The 3rd column is right justified and is numeric.
You can define these in your screen section which will make the intial painting of the control smoother.
Hope this helps.
SR
[Migrated content. Thread originally posted on 22 August 2004]
I have recently started coverting a load of legacy acu cobol to windows and am finding some very frustrating things that may well be a lack of knowledge on my part. I am doing it the hard way at the moment without using ACUbench - but making quick and reasonable progress.
Can someone tell me how to use grids so that user entry into cells is formatted - i.e. numeric edited, currency etc. I have already given up on the hope that grids will aloow a cell to contain drop down lists etc. If there is no way of using grids to accept edited data I am a little confused as to what use to make of it.
Keith Lawrence
Thanks for those hints.
I think I will have to look at an ActiveX alternative. Yes I tried all the data-type stuff - but it really isn;t any good for getting a response such as a screen entry of pic z(7)9.99.
It does seem that although Grids give some nice bendfits, they are extremely limited regarding using them for general cell type input - trust that they will enhance this in later releases.