Shop OBEX P1 Docs P2 Docs Learn Events
Question about N&V 97 — Parallax Forums

Question about N&V 97

basicstampedebasicstampede Posts: 214
edited 2004-10-12 19:41 in BASIC Stamp
I have a question about article 97 of Nuts and Volts.

In the Get_Number subroutine, there is a statement

IF (inDigits < maxDigits) THEN

However, I don't see anywhere maxDigits was initialized to a value.

It was declared as Nib, so the initial value upon creation is 0.

Can anyone please clarify how the above IF THEN statement will ever be true?

Thanks.

Comments

  • dandreaedandreae Posts: 1,375
    edited 2004-10-12 19:37
    Hello,

    I believe that the maxDigits = 4 on page 74 of the Nuts and Volts volume 4.· It's listed under the "Get_Passcode:" label.

    Dave
  • basicstampedebasicstampede Posts: 214
    edited 2004-10-12 19:41
    Thanks for the quick response. ·I found it.

    Since maxDigits does not change throughout the code, I was expecting it to find under Initialization section.
Sign In or Register to comment.