I am migrating an application and I have a field called Status which I am using in a combobox .. However I ran across a problem .. what happens if the data in the table ( in this case = "Dispute" ) is not found in the array aStatus ? .. apparently cStatus is not found even though the data for cStatus = "Dispute" .. but the value that shows in the combobox is blank ..
Is there a way to over-ride that behavior if cStatus is not found in aStatus so that if cStatus is not found, at least cStatus will be visible in the combobox field?
Thanks
Rick Lipkin
Local oStatus,cStatus,aStatus
aStatus := {}
aadd( aStatus, "All")
aadd( aStatus, "Active" )
cStatus := a->Status // "Dispute"
REDEFINE COMBOBOX oStatus var cStatus ID 148 of oInvt ;
ITEMS aStatus when cMode <> "V"
oStatus:SetFont( oFontB )
oStatus:lIncSearch = .T.