If you know Qbaisc and VB4.0 HELP 
Author Message
 If you know Qbaisc and VB4.0 HELP

Sup...
I need to know how to do this in vb4.0

cls
1
if a$ = 2344 then 10 else 1
if a$ = other then 1

Well I wann make it so that when you use the Text1 and use the pasword
character, When u enter for say" 2344 " it will open the next form. if you
type any thing else it stays their till you try the right password?

Help me
mazer#pld.com



Wed, 02 Feb 2000 03:00:00 GMT  
 If you know Qbaisc and VB4.0 HELP

Quote:

>Sup...
>I need to know how to do this in vb4.0

>cls
>1
>if a$ = 2344 then 10 else 1
>if a$ = other then 1

>Well I wann make it so that when you use the Text1 and use the pasword
>character, When u enter for say" 2344 " it will open the next form. if you
>type any thing else it stays their till you try the right password?

>Help me
>mazer#pld.com

pwd$ = ""
do until pwd$ = "2344"
  pwd$ = text1.text
loop
form2.load

Visit my source code page at http://www.mindspring.com/~johnecarter
Visit my favorite school at http://www.mindspring.com/~addison

Get PR-Tracker -- tracks problem reports, defects, bugs
INFORMATION:  http://www.prtracker.com/info.html
DOWNLOAD:     http://www.prtracker.com/download.html



Wed, 02 Feb 2000 03:00:00 GMT  
 If you know Qbaisc and VB4.0 HELP

John,

I think that this,

Quote:
> pwd$ = ""
> do until pwd$ = "2344"
>   pwd$ = text1.text
> loop
> form2.load

would, if entered in a button_click event would just sit there.

If entered in the text_change event it would, on the first keystroke,
lockup the system (You'd need a DoEvent in there to process additional
keystrokes).

If the UI is "type then push the button" then on the button_click event
just enter
        if text1.text = "2344" then form2.show

If the UI is more dynamic (launch the form as soon as the right pwd is
typed), then do the same line of code on the text1_change event. As soon
as they hit that second '4', bang! the form loads.

A major probem with either of these approaches is that the pwd is in the
code.  Even compiled, the pwd will be visible to any decent browser.  
Need to throw a one-way-hash function in there and save the results to
the registry.  Then, when the pwd is reentered, run the same function
and compare that to what was found in the registry.

Bill



Wed, 02 Feb 2000 03:00:00 GMT  
 If you know Qbaisc and VB4.0 HELP



Quote:
>Well I wann make it so that when you use the Text1 and use the pasword
>character, When u enter for say" 2344 " it will open the next form. if you
>type any thing else it stays their till you try the right password?

>Help me
>mazer#pld.com

You need a button and a text1 object.

For checking the password input use this by putting it in the buttons
click event:

If text1.text = "PASSWORD" then
 load FORM 'Show next form
 unload me  ' unloads form
[...]  ' your lines here...
else
 msgbox "Your password is wrong!"   'creates a Message
 text1.text = ""  ' this line deletes the wrong password input
 [...] ' your lines here....
end if
***

***



Wed, 02 Feb 2000 03:00:00 GMT  
 If you know Qbaisc and VB4.0 HELP


Quote:
>John,

>I think that this,

>> pwd$ = ""
>> do until pwd$ = "2344"
>>   pwd$ = text1.text
>> loop
>> form2.load

>would, if entered in a button_click event would just sit there.

>If entered in the text_change event it would, on the first keystroke,
>lockup the system (You'd need a DoEvent in there to process additional
>keystrokes).

>If the UI is "type then push the button" then on the button_click event
>just enter
>    if text1.text = "2344" then form2.show

>If the UI is more dynamic (launch the form as soon as the right pwd is
>typed), then do the same line of code on the text1_change event. As soon
>as they hit that second '4', bang! the form loads.

>A major probem with either of these approaches is that the pwd is in the
>code.  Even compiled, the pwd will be visible to any decent browser.  
>Need to throw a one-way-hash function in there and save the results to
>the registry.  Then, when the pwd is reentered, run the same function
>and compare that to what was found in the registry.

>Bill

I won't disagree with anything you said, but the presentation of the
original message indicates the poster is not looking for serious
password protection, and he appears to need some experience doing
research in the Help file, if not in the manual ;-)

Visit my source code page at http://www.mindspring.com/~johnecarter
Visit my favorite school at http://www.mindspring.com/~addison

Get PR-Tracker -- tracks problem reports, defects, bugs
INFORMATION:  http://www.prtracker.com/info.html
DOWNLOAD:     http://www.prtracker.com/download.html



Thu, 03 Feb 2000 03:00:00 GMT  
 If you know Qbaisc and VB4.0 HELP

-----BEGIN PGP SIGNED MESSAGE-----

Quote:

> I won't disagree with anything you said, but the presentation of the
> original message indicates the poster is not looking for serious
> password protection, and he appears to need some experience doing
> research in the Help file, if not in the manual ;-)

I think you're right.  

Often, when I read something here that peaks my interest, I can usually
find an answer with a couple of hits of the Help file.  Since i usually
don't remember much, I figure I've probably spent more time than most
puzzeling my way through Help files. That might give me some kind of
advantage...  ;-)

Bill

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQCVAwUBM/eGEqwtq3kR+EmhAQGqbgP/QCVMgB5+7PvnuMdhiv8HCttaxeop0uZq
rg0EQ7AcGLlMA4Oy3xJZkSI16LS0VVU3mCdUMjPBVP+t8N25RZEdmKNvREJSD8hn
Y6J3xT+eLlqTrV3RwkkdUoop2vIjTSzKGQ4OqCYVbwo/PJ2nPQxQrdnqzKzBJTMg
Il1Lprjs+4A=
=PQPH
-----END PGP SIGNATURE-----



Thu, 03 Feb 2000 03:00:00 GMT  
 If you know Qbaisc and VB4.0 HELP


[snip]

Quote:
>I think you're right.  

>Often, when I read something here that peaks my interest, I can usually
>find an answer with a couple of hits of the Help file.  Since i usually
>don't remember much, I figure I've probably spent more time than most
>puzzeling my way through Help files. That might give me some kind of
>advantage...  ;-)

>Bill

I cut my programming teeth on some original Bell Labs UNIX manuals -
definitely not "words to humans".  However, they really do make the
Help files seem easy to use ;-)

Visit my source code page at http://www.mindspring.com/~johnecarter
Visit my favorite school at http://www.mindspring.com/~addison

Get PR-Tracker -- tracks problem reports, defects, bugs
INFORMATION:  http://www.prtracker.com/info.html
DOWNLOAD:     http://www.prtracker.com/download.html



Sat, 05 Feb 2000 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. HELP anyone know how to run an external exe in VB4.0

2. Know SQL for VB4..Please HELP me.

3. networking qbaisc

4. Opening a Qbaisc program in Pbasic

5. Animation in Qbaisc

6. I know someone wants an unopened VB4 16/32

7. VB4: any known bugs with Toolbar?

8. VB4 16bit GPF and I don't know why (I bother sometimes)

9. ****** Anyone knows about GIF problems with VB4 ?? **************

10. I'd like to know the essential VB4 DLL's needed to an executable

11. How to know if a program is running, VB4 32

12. Known Bugs with VB4?

 

 
Powered by phpBB® Forum Software