Browse Groups

• ## Re: [Chipmunk Basic Forum] Error message

(1)
• NextPrevious
• Look like line 110 is , which needs to be , there appears to be a space in between less then, greater than characters. ... error.... Good Luck -Rick
Message 1 of 1 , Oct 4, 2005
View Source
Look like line 110 is < > , which needs to be <>, there
appears to be a space in between less then, greater than
characters.

>
> From: "bglotzbach2" <bglotzbach2@...>
> Date: 2005/09/29 Thu PM 01:39:36 EDT
> To: chipmunkbasicforum@yahoogroups.com
> Subject: [Chipmunk Basic Forum] Error message
>
> I am trying to type the following program for my students at school using
> Chipmunk Basic. When I try to run the program I get a line error in 110 and I took the space out, don't get the
error.... Good Luck -Rick
> can't figure out why. Any clues?????
>
> 10 DIM A\$(26), B\$(35)
> 20 LET A\$ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
> 30 PRINT "WHAT IS THE MESSAGE?"
> 40 INPUT B\$
> 50 LET L = LEN(B\$)
> 60 PRINT "SHIFT ALPHABET BY HOW MANY LETTERS";
> 70 INPUT N
> 80 PRINT
> 90 FOR I = 1 TO L
> 100 FOR J = 1 TO 26
> 110 IF MID\$(B\$, I, 1) < > MID\$(A\$, J, 1) THEN 150
> 120 LET K = J + N - 26 * INT((J + N - 1)/26)
> 130 LET B\$ = MID\$(B\$, 1, I - 1) + MID\$(A\$, K, 1) + MID\$(B\$, I + 1, L - I)
> 140 GOTO 160
> 150 NEXT J
> 160 NEXT I
> 170 PRINT "THE MESSAGE BECOMES:"
> 180 PRINT B\$
> 190 END
>
>
>
>
>
>
>
>
>