ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Example
  • Using a 2-byte Integer counter
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Information 37: Optimize your FOR loop
Reason
The code of your FOR loop use a counter whose type is:
  • 2-byte int
  • 4-byte real
Correction
Use an Integer counter or a Real counter.
Example

Using a 2-byte Integer counter

Code triggering the information message
I is 2-byte int
FOR I = 1 TO 5
ListAdd(LIST_List1,"Element "+I)
END
Possible correction
Use an Integer counter.
I is int
FOR I = 1 TO 5
ListAdd(LIST_List1,"Element "+I)
END
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help