[Gambas-user] Unable to change valuebox contents after selecting record from combobox

CelticBhoy weldon_gary at ...67...
Thu Mar 26 18:16:11 CET 2009


This is the code I have used to assign the values to the valuebox's :-

PUBLIC SUB Amend_Change()

  DIM iRef AS Integer
  iRef = ItemName.Index
  PackSize = PSize[iRef]
  SalesDiv.Value = SDiv[iRef]
  StockOnHand.Value = SOnHand[iRef]
  ItemCost1.Value = ICost1[iRef]
  ItemCost2.Value = ICost2[iRef]
  ItemCost3.Value = ICost3[iRef]
  ItemCost4.Value = ICost4[iRef]
  BarSelling.Value = BSell[iRef]
  OSSelling.Value = OSSell[iRef]
  OSMulti.Value = OSMult[iRef]
  MultiSize.Value = MSize[iRef]

END

All the arrays are defined as FLOAT type.

-- 
View this message in context: http://www.nabble.com/Unable-to-change-valuebox-contents-after-selecting-record-from-combobox-tp22723578p22726729.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list