Sunday, November 14, 2010

In VB 6 How do you make a button write text to a label?

I am making a stock system in visual basic 6, i have been able to record the cost of the product just not the name of the product, I have a button called ';Apple'; this records down the price of the apple to a label called ';lblStockCost';, But i have another label called ';lblStockName'; and i need to write the name apple to the label with the variable ';Dim Stock As String';.In VB 6 How do you make a button write text to a label?
decalare this up the top so its not in no sub or in a seprate module Dim Stock As String



stock = stock + ';apple';

lblStockName.caption = stock



u might need use %26amp; not the + been such a long time since iv used vb cant rember

No comments:

Post a Comment