Jump to content
  • Advertisement
Sign in to follow this  
majc

Visual Basic 6 with Database

This topic is 4442 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im trying to read some values of some fields, make a multiplication and then add the result to a database. I tryed to do this: Private Sub cmdCalc_Click() Dim op1 As Single Dim op2 As Single op1 = Val(txtQuant.Txt) op2 = Val(txtUni.Txt) txtTotLiq = Op1 * Op2 End Sub But the problem is that when i try to write txtQuant. apears Count, Item, LBound and Ubound, dont apears .Txt Why??

Share this post


Link to post
Share on other sites
Advertisement
my guess is that the txtQuant is a control array
i.e. you have an index property for multiple controls called txtQuant. You need to find out what control index you want to write to is from the control properties , then reference it like this

txtQuant(1).text = value.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!