PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Error 4: A space is required after the ':' character
Reason
This code line 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
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment