indikad wrote:Breakout
window: Purchase Orders | shipments
These lines of code does not work - it compiles but crashes JIWA.
JiwaShipmentObject.ShipmentLines.Item(1).FXRate = 59.36
JiwaShipmentObject.ShipmentLines.Item(1).FXRate = "59.36"
however I can read no problem
msgbox CStr( JiwaShipmentObject.ShipmentLines.Item(1).FXRate )
what am I doing wrong ?
any help is appreciated.
Indika,
I've just had a try of this and I can set it fine. I suspect which breakout in which you execute the line of code :
- Code: Select all
JiwaShipmentObject.ShipmentLines.Item(1).FXRate = 59.36
Is important.
I added a custom menu option to the shipment form by adding this line to the Form Loaded breakout :
- Code: Select all
VBFormObject.mRecordCustom(0).Caption = "Test"
VBFormObject.mRecordCustom(0).Visible = True
and then in the Form Custom Menu Clicked, I added this code :
- Code: Select all
JiwaShipmentObject.ShipmentLines.Item(1).FXRate = 59.36
and when I run this, it sets the FX Rate no problem.
Let me know which particular breakout you are trying to set the FX Rate, and I'll test again - also it may be important to know what other properties or methods your breakout is setting/calling preceding the line of code in question.
Also, you may like to let me know which version of Jiwa you are trying this on.