AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Errores / Errores WLanguage
  • Reason
  • Correction
  • Example
  • Extracting the first character of the string
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 531: The negative or null subscripts are not allowed
Reason
You are using the operators for string extraction ([[ or ]]). The extraction subscript for a WLanguage string always starts from 1: the subscript of the fist character is set to 1.
Correction
Modify the value specified for the extraction subscript.
Example

Extracting the first character of the string

Code triggering the error
sString is string = "WEBDEV is great"
Trace(sString[[0]])
Possible correction
Replace 0 by 1 (first character of the string).
sString is string = "WEBDEV is great"
Trace(sString[[1]])
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 03/07/2023

Señalar un error o enviar una sugerencia | Ayuda local