PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Reason
  • Correction
  • Examples
  • Using an IF statement on a line
  • Using an IF statement on several lines
Products
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWINDEV MobileReports and Queries
Platforms
WindowsLinuxWindows MobileUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadApple Watch
Languages
JavaPHPAjaxUser code (UMC)External language
Databases
HFSQLHFSQL Client/ServerStored proceduresOLE DBODBCNative Accesses
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 version required
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment