Thread: Please help me
View Single Post
  #2 (permalink)  
Old 05-12-2008, 02:06 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 7,432
Last Blog:
Web slideshow in JavaS...
Credits: 1,323
Rep Power: 61
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: Please help me

It might work, but it's TERRIBLE code! Look at all those Else Ifs!

This is a better way:
Code:
Select Case a

Case "mnuMasterParameterSetupCabang"
frmCabang.Show vbModal
Me.Hide
frmauth.txtUserName.Text = ""
frmauth.txtP***word.Text = ""

End Case

Case "Something else"

'Do this is a = 'Something else'

End Case

End Select
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Reply With Quote