Originally posted by Cander
what you want to do is creat to subs/function of the same name..but differnt parameters...the program will know which one to run


public sub login(name as string, username as string, password as string)

public sub login(username as string, password as string)
Don't forget to use the Overloads keyword.

Public Overloads Sub login(name as string, username as string, password as string)

Public Overloads Sub login(username as string, password as string)