Hye people … I need some help… I want to do a process where the user selects a Final currency and the sistem shows the final values in that currency. So i call to a form where are the differents currency codes and I want that the user marks the register (Ctrl + F1) and when the user closes the form with ESC to find the marked currency. I have these code sentences: MyForm.RUNMODAL(MyTable); MyTable.MARKEDONLY(TRUE); IF MyTable.FIND(’-’) THEN MESSAGE(MyTable.Field); But it never returns the Marked register… I cannot modify anything in the Form code because it’s an standar object… so I have to do all from my own process. Any help? Thanks
It will be much easier to use this construction: IF FORM.RUNMODAL(FORM::MyForm,MyTable) = ACTION::LookupOK THEN MESSAGE(MyTable.MyField)
Which translates to: IF FORM.RUNMODAL(FORM::Currencies,Currency) = ACTION::LookupOK THEN MyCurrencyCode := Currency.Code
I forgot to say that this does not require the user to Mark the record. The Currencies form is shown, the user will select one record and that will be the record returned when he presses OK.
Ok, Alberto it runs… abrigado!!