VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Acces control thru variable

James Travis  (2 Submissions)   Miscellaneous   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Be able to access multiple controls which require the same task with minimal code. Basically I wanted to be able to access controls without having to write numerous bits and peices to reach multiple controls with multiple forms and could not find what I needed so I decided to post. Here you are creating 2 control arrays with labels and all the code will demonstrate is randomly changeing the color of a randomly selected label.
This is my first post so if a bit lame hope you at least find it usefull.

Inputs
You need to create a form with the following items. Timer1 Set Interval = 1000 Label1 (0 - 7) Control Array Label2 (0 - 7) Control Array

Returns
None.

Side Effects
None.

Rate Acces control thru variable (4(4 Vote))
Acces control thru variable.bas

Acces control thru variable Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters