Hi,
I am re-writing a general program (coded in dBase for DOS)& would appreciate explanation of following two code segments please.
First segment .......
381 DO WHILE NUMB6 <= GEARQTY + 10
382 GEARNUM2 = "G" + STR(NUM6,2)
383 DN3 = &GEARNUM2
384 NUM6 = NUM6 + 1
Q. What does &GEARNUM2 signify, GEARNUM2 being an integer?
Second segment .......
386 * xxxxxxxxxx checks if already used xxxxxxxxxxxxx
387 *
388 IF GEARNUM2 <> USED1 .AND. GEARNUM2 <> USED2 .AND. ; GEARNUM2 <> USED3
389 *
390 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Q. What does line 388 achieve? I can't identify the result of this bit of (Boolean?) code
Any help gratefully received.
Kind Regards, Barry
I am re-writing a general program (coded in dBase for DOS)& would appreciate explanation of following two code segments please.
First segment .......
381 DO WHILE NUMB6 <= GEARQTY + 10
382 GEARNUM2 = "G" + STR(NUM6,2)
383 DN3 = &GEARNUM2
384 NUM6 = NUM6 + 1
Q. What does &GEARNUM2 signify, GEARNUM2 being an integer?
Second segment .......
386 * xxxxxxxxxx checks if already used xxxxxxxxxxxxx
387 *
388 IF GEARNUM2 <> USED1 .AND. GEARNUM2 <> USED2 .AND. ; GEARNUM2 <> USED3
389 *
390 * xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Q. What does line 388 achieve? I can't identify the result of this bit of (Boolean?) code
Any help gratefully received.
Kind Regards, Barry