ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Examples
  • Using an IF statement on a line
  • Using an IF statement on several lines
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
Error 25: No THEN statement is associated with this IF
Reason
You are using a conditional statement (IF). This statement must include the THEN keyword.
Correction
Check the code of your conditional statement and add the THEN statement if necessary.
Examples

Using an IF statement on a line

Code triggering the error
IF TABLE_Lesson..Empty
IMG_Draw..State = Grayed
Possible correction
Add the THEN keyword between the condition and the action to perform if the condition is OK.
IF TABLE_Lesson..Empty THEN IMG_Draw..State = Grayed

Using an IF statement on several lines

Code triggering the error
IF TABLE_Lesson..Empty
IMG_Draw..State = Grayed
END
Possible correction
Add the THEN keyword between the condition and the action to perform if the condition is OK.
IF TABLE_Lesson..Empty THEN
IMG_Draw..State = Grayed
END
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help