PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Reason
  • Correction
  • Example
  • Using the -- operator on a character string
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 530: The -- operator is not allowed
Reason
You are trying to use the -- operator on a variable that does not support this operator.
Correction
Modify your code and use the appropriate operator or function.
Example

Using the -- operator on a character string

Code triggering the error
MyString is string = "ABCD"
MyString--
Possible correction
Use the Left function to remove the letter D from the MyString variable.
MyString is string = "ABCD"
MyString=Left(MyString, 3)
This page is also available for…
Comments
Click [Add] to post a comment