Sorry I didn't get back to you yesterday, life you know...Anyways, to answer your question about what that line is doing...it's switching the numbers inputed by the user ONLY if the number to the left of it is greater than it. And, I kow I didn't answer the Do Loop question, but just thought...
When I did this a few weeks ago in my Beginning VB class, I first used 3 If statements...
Private Sub Ascend_Click()
Form2.N1 = N1
Form2.N2 = N2
Form2.N3 = N3
Form2.N4 = N4
For X = 1 To 3
If Val(N1) > (N2) Then
temp = N2
N2 = N1
N1 =...
That's exactly what I intend to do! But the other problem is this...I think I know how to change the format the Calendar value(but would like reassurance), but how would I get the text box to correspond with the 1/1/yyyy format of the calendar?
I am trying to make a calendar that when you input a 4 digit year (yyyy) into a text box, that a calendar will come up showing January of that year...Now, I have thrown in MS Calendar Control 8.0 onto Form2, and when you hit a command button it goes from form1 to form2, showing the Calendar. Now...
As much as 'cheating' is tempting...I really do need to know how to do this..See, here's the problem...whatever needs to be done, it is something that hasn't been taught in the class before, and we (students) were supposed to "figure it out". It's not in our book that we were supposed...
Okay, here's my problem...my teacher came in to my Beginning VB class last week and drew a form on the board with 25 text boxes arranged 5x5. Then he wrote numbers in the text boxes like so:
1 2 3 4 5
skip 1 2 3 4
skip skip 1 2 3
skip skip skip 1 2
skip skip skip skip 1
Each number and skip...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.