VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code clears the contents of all the fields like textbox and combo box

by Kamlesh Santani (5 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 5th December 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This code clears the contents of all the fields like textbox and combo box

API Declarations


'x is a control (only fields where values are entered or selected like textbox, combobox, listbox)

Rate This code clears the contents of all the fields like textbox and combo box



    if typeof x is textbox then 
        x.text=""
    elseif typeof x is combobox then
        x.text=""

    end if
next


Download this snippet    Add to My Saved Code

This code clears the contents of all the fields like textbox and combo box Comments

No comments have been posted about This code clears the contents of all the fields like textbox and combo box. Why not be the first to post a comment about This code clears the contents of all the fields like textbox and combo box.

Post your comment

Subject:
Message:
0/1000 characters