0

hi guys

 how to declare boolean for log-in and log-out when i scan the id. anyone can give me an idea.
 ASAP and thank in advance.
3
Contributors
5
Replies
17
Views
3 Years
Discussion Span
Last Post by Learner010
0

Huh? Explain precisely what you are trying to do. What do YOU mean by "scan the id", and how are you implementing the log-in/log-out functionality?

0

OK, sory

i have the form for login and logout, i need to scan the given id to login and after scanned the msbox will display "you successfully login". Same as where i scan the given id to logout the msgbox should displayed"thank you,goobye".

i think i need to declare condition if it is goin to in or to out.IF the scanned id is already login they need to logout.

and that my problem i can't logout

hoping.

Edited by lrhimma

0

i don't understand the exact the problem but i guess that the following will be hint for you.

on login button's click

dim xvar as boolean = false
id=textbox1.text
if(id="valid text")then
xvar=true
end if
if (xvar=true) then
msgbox("login successful")
else
msgbox("wrong id")
end if

however you can do it without using boolean.

on logout button

msgbox("logout")

i've not tested the code but i hope that it will work as hint.

Edited by Learner010

0

thank @learner010

i will try your suggestion. That's the thing what i need and wanted to do.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.