469,315 Members | 1,795 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

Do until loop

Let me start off by saying I have VB working model which means no help. I
have searched MSDN. It seems that I get "Read the help" instead of answers
which is totally useless to me. With that said can someone please help me
understand why this does not work?

Dim x As String

Private Sub cmdlogin_Click()
Do Until x = "Corey"
If txtlogin = "Corey" Then
frmcorey.Show
Unload frmlogin
End If
lbllogin = "Please login"
Loop
End Sub

Private Sub Form_Load()
lbllogin = ("Please login")
End Sub

Thank you
Eric in Tampa

Jul 17 '05 #1
8 15494
You have nothing changing the value of "x"... this Do/Loop will
likely loop perpetually.

Try adding AFTER the Do Until: x = txtlogin.Text

"Eric" <ep******@tampabay.rr.com> wrote in message
news:uZ*******************@twister.tampabay.rr.com ...
Let me start off by saying I have VB working model which means no help. I
have searched MSDN. It seems that I get "Read the help" instead of answers which is totally useless to me. With that said can someone please help me
understand why this does not work?

Dim x As String

Private Sub cmdlogin_Click()
Do Until x = "Corey"
If txtlogin = "Corey" Then
frmcorey.Show
Unload frmlogin
End If
lbllogin = "Please login"
Loop
End Sub

Private Sub Form_Load()
lbllogin = ("Please login")
End Sub

Thank you
Eric in Tampa

Jul 17 '05 #2
Eric <ep******@tampabay.rr.com> schreef in berichtnieuws
uZ*******************@twister.tampabay.rr.com...
It seems that I get "Read the help" instead of answers
which is totally useless to me.


Are you going to appologize to me here too ?

For anyone who want's to know what Eric is (or I am) talking about, take a
look in "comp.lang.basic.visual" , at the thread "intAge = Val(strAge) ???
Say what"
( OS*******************@twister.tampabay.rr.com... )
By the way : What's the problem ? With your code I mean.

I can *guess* what it is, but why didn't you just *tell* us ?
It "does not work" does not really qualify as a problem-description ...
By the way : the answer is that the problem is your Do-until loop Remove
it.

Regards,
Rudy Wieser

P.s.
Maybe you should try to obtain a VB Help-file, so you can check for yourself
what the commands mean & do ...
Jul 17 '05 #3
Now that was uncalled for, No I will not appologize to you for that reason.
I will keep posting and hope not to hear from you again.

Eric
"R.Wieser" <rw***************@xs4all.nl> wrote in message
news:3f*********************@dreader5.news.xs4all. nl...
Eric <ep******@tampabay.rr.com> schreef in berichtnieuws
uZ*******************@twister.tampabay.rr.com...
It seems that I get "Read the help" instead of answers
which is totally useless to me.
Are you going to appologize to me here too ?

For anyone who want's to know what Eric is (or I am) talking about, take a
look in "comp.lang.basic.visual" , at the thread "intAge = Val(strAge) ???
Say what"
( OS*******************@twister.tampabay.rr.com... )
By the way : What's the problem ? With your code I mean.

I can *guess* what it is, but why didn't you just *tell* us ?
It "does not work" does not really qualify as a problem-description ...
By the way : the answer is that the problem is your Do-until loop Remove
it.

Regards,
Rudy Wieser

P.s.
Maybe you should try to obtain a VB Help-file, so you can check for

yourself what the commands mean & do ...

Jul 17 '05 #4
Rudy, you are so intent at me looking at the help file that my working model
visual basic does not have. May I ask that you pass your copy of help along
to me. If I had the help file for visual Basic 6 then I who have less need
to ask for help.

Thank you
Eric in Tampa
"R.Wieser" <rw***************@xs4all.nl> wrote in message
news:3f*********************@dreader5.news.xs4all. nl...
Eric <ep******@tampabay.rr.com> schreef in berichtnieuws
uZ*******************@twister.tampabay.rr.com...
It seems that I get "Read the help" instead of answers
which is totally useless to me.
Are you going to appologize to me here too ?

For anyone who want's to know what Eric is (or I am) talking about, take a
look in "comp.lang.basic.visual" , at the thread "intAge = Val(strAge) ???
Say what"
( OS*******************@twister.tampabay.rr.com... )
By the way : What's the problem ? With your code I mean.

I can *guess* what it is, but why didn't you just *tell* us ?
It "does not work" does not really qualify as a problem-description ...
By the way : the answer is that the problem is your Do-until loop Remove
it.

Regards,
Rudy Wieser

P.s.
Maybe you should try to obtain a VB Help-file, so you can check for

yourself what the commands mean & do ...

Jul 17 '05 #5
Eric <ep******@tampabay.rr.com> schreef in berichtnieuws
5E*******************@twister.tampabay.rr.com...

Hello Eric,
Now that was uncalled for,
Really ? You're bad-mouthing me, but I'm not permitted to respond to it ?
No I will not appologize to you for that reason.
You where not going to in the first place, and now you've found a reason to
your refusal. Nicely done. But also quite childish ...
I will keep posting and hope not to hear from you again.


And that's why you posted another message (to me), about 5 hours later ?
You're *funny* !

Regards,
Rudy Wieser

P.s.
Did my suggestion (removing the Do-Until -loop work) ? Or didn't you see
that piece of my message either ?

Jul 17 '05 #6
Eric <ep******@tampabay.rr.com> schreef in berichtnieuws
WT*******************@twister.tampabay.rr.com...

Hello Eric,
Rudy, you are so intent at me looking at the help file that my working model visual basic does not have.
Why should I be so intent upon it ? It doesn't bring me fame or fortune if
you do, and doesn't cost me anything if you don't.

The only thing that would actually happen, is that *you* would benefit from
it ... And ofcourse I would be left with a happy feeling that I could,
again, help someone.
May I ask that you pass your copy of help along to me.
Yes, you may. And you get the same answer you gave me, and several others
when you where pointed to your mistake (of me, in my first response, not
helping you) : Dead silence.

Don't you think you're quite arrogant, when you behaved the way you did, and
afterwards think you can ask a favour ?
If I had the help file for visual Basic 6 then I who have
less need to ask for help.


Yes, I think you're right there. Now if only you would have thought of
that earlier ...

Regards,
Rudy Wieser

Jul 17 '05 #7


R.Wieser wrote:
Yes, you may. And you get the same answer you gave me, and several others
when you where pointed to your mistake (of me, in my first response, not
helping you) : Dead silence.


I think we would all be pleased if you would do as you say and give dead
silence instead of your continued whining.

Jul 17 '05 #8
Although it is somewhat cumbersome to use, you can view the entire MSDN Help
Files online at this link...

http://msdn.microsoft.com/library/default.asp

Specifically, open the "tree" to this...

Visual Tools and Languages
Visual Studio 6.0
Visual Basic 6.0
Product Documentation
Reference
Language Reference
Rick - MVP

"Eric" <ep******@tampabay.rr.com> wrote in message
news:WT*******************@twister.tampabay.rr.com ...
Rudy, you are so intent at me looking at the help file that my working model visual basic does not have. May I ask that you pass your copy of help along to me. If I had the help file for visual Basic 6 then I who have less need to ask for help.

Thank you
Eric in Tampa
"R.Wieser" <rw***************@xs4all.nl> wrote in message
news:3f*********************@dreader5.news.xs4all. nl...
Eric <ep******@tampabay.rr.com> schreef in berichtnieuws
uZ*******************@twister.tampabay.rr.com...
It seems that I get "Read the help" instead of answers
which is totally useless to me.


Are you going to appologize to me here too ?

For anyone who want's to know what Eric is (or I am) talking about, take a look in "comp.lang.basic.visual" , at the thread "intAge = Val(strAge) ??? Say what"
( OS*******************@twister.tampabay.rr.com... )
By the way : What's the problem ? With your code I mean.

I can *guess* what it is, but why didn't you just *tell* us ?
It "does not work" does not really qualify as a problem-description ...
By the way : the answer is that the problem is your Do-until loop Remove it.

Regards,
Rudy Wieser

P.s.
Maybe you should try to obtain a VB Help-file, so you can check for

yourself
what the commands mean & do ...


Jul 17 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

36 posts views Thread by Remi Villatel | last post: by
4 posts views Thread by .Net Sports | last post: by
4 posts views Thread by Madhavi | last post: by
7 posts views Thread by Thomas Nelson | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.