COMBOBOX with oDBF
Posted: Wed Jan 03, 2007 8:07 pm
I want to store 'L', 'A' or 'O' in a (1 character) database field called MAIL_CAT (Mail category = Local, African, Overseas)
But I want to use a Combobox so the user can only make a valid choice, but I only want to store the first letter ie. L, A, or O in the database.
REDEFINE COMBOBOX oDBF:MAIL_CAT ITEMS {"Local", "African", "Overseas" } ID 4012 OF oDLG
... doesn't do it.
Is there a way the screen can show 'Overseas' when it sees 'O' in the database field? How?
But I want to use a Combobox so the user can only make a valid choice, but I only want to store the first letter ie. L, A, or O in the database.
REDEFINE COMBOBOX oDBF:MAIL_CAT ITEMS {"Local", "African", "Overseas" } ID 4012 OF oDLG
... doesn't do it.
Is there a way the screen can show 'Overseas' when it sees 'O' in the database field? How?