ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Example
  • Assigning a member of the current class
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 4: A space is required after the ':' character
Reason
This line of code is used, for example, to assign or to access a member of a class in a SWITCH loop. The ':' character is successively used to:
  • specify the condition (CASE: ),
  • specify the member of the class.
Correction
Add a space character between the two "colons".
Example

Assigning a member of the current class

Code triggering the error
SWITCH NbDir
CASE 1: i=1
CASE 2: i=2
CASE 5::b=4
END
Possible correction
Insert a space between the characters ::.
SWITCH NbDir
CASE 1: i=1
CASE 2: i=2
CASE 5:: b=4
END
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help