Thanx for the reply's but I managed to sort it, it was a problem with the
combobox.index returning a negative number, and using the wrong event ( I
had used change, worked with click ). After finding the problems it was
simple to sort.
Thanx again for quick reply's.
--
View this message in cont
> I am new to Gambas & am having a small problem with a simple stock control
> program. When th program starts a file is read and each record is loaded
> and broken down and the element values are assigned to separate arrays, a
> combobox is loaded with the names of the stock items. On my form when
Hi
Until your post I was not aware of valuebox at all! After looking at the
documentation I am not sure I am much the wiser.:-((
Valuebox is a specialisation of a textbox to allow for formatted input. I
think it is easier, in your case, to use textboxes and control your own
formatting with form
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[iR
I am new to Gambas & am having a small problem with a simple stock control
program. When th program starts a file is read and each record is loaded and
broken down and the element values are assigned to separate arrays, a
combobox is loaded with the names of the stock items. On my form when
runnin