TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Edwin Groothuis
from: Geert Bosch
date: 1994-07-26 22:00:04
subject: Code has no effect-warning

following up a message from Mark Kimes to Edwin Groothuis:

 EG>48: for (i=0;i Argh!  Get that system call out of that loop!  :-)

 MK>   count = WinQueryLboxCount(hwndLb);
 MK>   for(i = 0; i < count; i++)

Or, shorter and more efficient:
       i = max(0, WinQueryLboxCount(hwndLb));

Try to keep in mind what's the effect of your code. The for loop doesn't
serve any purpose here.

Groetjes, Geert 
--- timEd/2 1.00+


* Origin: OS/2: Outselling NT, all Unixes & System 7 combined! (2:283/307.40)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 283/307 7 35 512 280/801 24/24 396/1 3615/50 229/2
@PATH: 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.