VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

An Example of the TypeOf method

Elliot McCardle  (3 Submissions)   Custom Controls/Forms/Menus   Visual Basic 5.0   Beginner   Wed 3rd February 2021

I had several forms with several controls on each. I wanted to clear each control, but I wanted to make it as painless as possible. This code takes a form and iterates through each control clearing the values. Currently, it works with text boxes, combo boxes, data pickers, and masked edit controls. all you have to do is pass a form name to the procedure. It uses the for each...next loop, along with the typeof method. I hope this helps.

Inputs
for name

Rate An Example of the TypeOf method (6(6 Vote))
An Example of the TypeOf method.bas

An Example of the TypeOf method Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters