VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Changing Object focus

by Charlie M. Valizado (4 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 24th April 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Changing Object focus

Rate Changing Object focus



'WRITE THESE CODE IN A KEYPRESS EVENT

   IF KEYASCII=vbKeyReturn THEN
    'CALL THE NAME OF THE FUNCTION
   END IF

 
'=============================
'WRITE THESE CODES IN A MODULE
'=============================

function from_ary_2_ary(objname as object,startindex as integer, nextindex as integer, lastindex as integer)  'THIS FUNCTION COULD BE USE TO OBJECT 
                                 'WHICH NOT INDEX TO INDEX OBJECT
    if startindex<lastindex then
        objname(nextindex).setfocus
    else
        objname(0).setfocus
    end if 
end function

function from_ary_2not_ary(objname as object)
    objname.setfocus
end function


'THIS IS ONLY A PARTIAL FUNCTIONS
'MORE FUNCTIONS NEXT


Download this snippet    Add to My Saved Code

Changing Object focus Comments

No comments have been posted about Changing Object focus. Why not be the first to post a comment about Changing Object focus.

Post your comment

Subject:
Message:
0/1000 characters