CLASSES!!!!helpppppppp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • knychtell
    New Member
    • Jan 2007
    • 66

    CLASSES!!!!helpppppppp

    hi, you might say that im so pathetic, but i really dont understand my prof, i have troubles t\regarding with classes, pls hepl me

    i have created a login form with controls that i have dragged onto the form,
    i prof, wanted us to convert it to class instead, pls, help me with this, i will be having my defence on feb10, pls help me,

    form1

    Code:
    dim a,b as string
    dim c as new form2
    a="USER1"
    b=lcase(a) ' can you help me here
    every time i try to add " a " (USER1)> it returns me an error wich i have had declared,
    why is that?, i type a correct word but it gives me an error, what i want is to give me an acces even if i typed in Upper or lowercase





    Code:
    if txtbox1.text=a and txtbox2.text="P@ssw0rd"
    then c.show
    end if
    thanks a lot, i woul really appreciate your kindness...
    Last edited by willakawill; Feb 5 '07, 10:20 AM. Reason: please use code tags
  • sukeshchand
    New Member
    • Jan 2007
    • 88

    #2
    Try this
    Code:
    if ucase(trim(txtbox1.text))=ucase(a) and txtbox2.text="P@ssw0rd" then 
               c.show
    end if

    Comment

    Working...