By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

calculate average using runtime textboxes

P: 9
add runtime textboxes and input values into them to calculate the average

my code to add the runtime textboxes is:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.  
  3.         Dim TextControl As TextBox
  4.  
  5.         controlid = controlid + 1
  6.         Load Text1(controlid)
  7.         Set TextControl = Text1(controlid)
  8.         With TextControl
  9.             .Left = (Text1(controlid - 1).Left + Text1(controlid - 1).Width) + 100
  10.             .Top = 20
  11.            .Width = 1000
  12.            .Height = 20
  13.            .Visible = True
  14.        End With
  15.    End Sub
How to i input values into them and calculate the average.
Apr 13 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.