473,396 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

CLASSES!!!!helpppppppp

knychtell
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

Expand|Select|Wrap|Line Numbers
  1. dim a,b as string
  2. dim c as new form2
  3. a="USER1"
  4. 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





Expand|Select|Wrap|Line Numbers
  1. if txtbox1.text=a and txtbox2.text="P@ssw0rd"
  2. then c.show
  3. end if
thanks a lot, i woul really appreciate your kindness...
Feb 5 '07 #1
1 867
Try this
Expand|Select|Wrap|Line Numbers
  1. if ucase(trim(txtbox1.text))=ucase(a) and txtbox2.text="P@ssw0rd" then 
  2.            c.show
  3. end if 
Feb 5 '07 #2

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.