Converting String to Integer
In Visual Script Editor to convert a string to Integer then add the two numbers together launched from the Properties and Data Sources.
ReferenceField("XXXX-Active.ShipDtl_OurInventoryShipQty")
ReferenceField("XXXX-Active.ShipDtl_OurJobShipQty")
Dim InvQty as Integer
Dim JobQty as Integer
InvQty = CInt(Field("XXXX-Active.ShipDtl_OurInventoryShipQty"))
JobQty = CInt(Field("XXXX-Active.ShipDtl_OurJobShipQty"))
Value = InvQty + JobQty
As the code is written above, I receive the following error...
OnAutoSelectedEvent (Line 5): Dim InvQty as Integer: Expected end of statement. Not sure why this is an error, or how to fix it.
0
-
Brian Kozic
★ BarTender Hero ★
Found answer to this on posting 'Adding two or more value'
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
1 commentaire