PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment