Page 1 of 1

ComboBox in Grid Sample

Posted: Sat Mar 14, 2009 6:55 am
by sudip
Hi,

I saw how to find COMBOBOX in GRID (Example Grid_7 onwards). Can I use non-numeric values (in most cases character) for combobox? I mean Item Description will be displayed in the combobox and item code will be stored in the array.

With best regards.

Sudip

Re: ComboBox in Grid Sample

Posted: Sat Mar 14, 2009 7:57 am
by Rathinagiri
Combo box items are always 'character/string' and the referenced value is always 'numeric'. Does that solve your problem?

Re: ComboBox in Grid Sample

Posted: Sat Mar 14, 2009 12:41 pm
by sudip
Hello Rathinagiri,

Thank you, I am now confirmed. Actually I thought if there is any syntax like we have in browse like INPUTITEMS, DISPLAYITEMS... :)

Now I shall think the structure of logic of the array.

Yes, it just came to my mind:-

I shall store Description and Code (say ItemCode and ItemDesc) in 2 different arrays of same size.
Then I store the index number of the matching code in a different 2d array (which will be browsed through grid).
Then for COMBOBOX display purpose I can use the Description array.

... yes, I got it :) (may be I can't express my thought ;()

Thanks a lot.

With best regards.

Sudip