FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WEBDEV 2024
→
Switch syntax error
Switch syntax error
Iniciado por Rafa, 02,may. 2016 10:42 - 3 respuestas
Conéctese…
Rafa
#1
Publicado el 02,mayo 2016 - 10:42
Hi to all.
Webdev 19 throws this "Error:Syntax error in description of CASE", I think it has to be a very simple error but I see nothing...
SWITCH
TypeVar
(
x
Par
)
CASE
wlDate
,
wlDateTime
:
...
CASE
wlBoolean
:
...
CASE
wlInt
:
...
CASE
wlString
:
...
OTHER
CASE
:
...
END
Informar
0
0
Diego Sanchez
#2
Publicado el 02,mayo 2016 - 13:49
I guess the syntax goes like this
Switch variable
Case 1: valuex
Case 2: valuey
Case 3: valuez
end
Informar
0
0
Mike Peterson
#3
Publicado el 02,mayo 2016 - 15:46
It would be helpful for you to post the actual code and the error message you are receiving.
http://help.windev.com/en-US/…
Mike Peterson
T7Group.com
Informar
0
0
Rafa
#4
Publicado el 03,mayo 2016 - 12:29
I have found the error, its not from the switch syntax... In one of the cases, my code was an IF like this:
IF
[
CONDITION
]
THEN
[
CODE
]
ELSE
[
CODE
]
END
It seems that Windev dont want an IF in one line of code, I turned it to this and all worked:
IF
[
CONDITION
]
THEN
[
CODE
]
ELSE
[
CODE
]
END
Thanks to you guys.
Informar
0
0
→ Volver a WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto