FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Switch syntax error
Switch syntax error
Débuté par Rafa, 02 mai 2016 10:42 - 3 réponses
Connectez-vous…
Rafa
#1
Posté le 02 mai 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
Signaler
0
0
Diego Sanchez
#2
Posté le 02 mai 2016 - 13:49
I guess the syntax goes like this
Switch variable
Case 1: valuex
Case 2: valuey
Case 3: valuez
end
Signaler
0
0
Mike Peterson
#3
Posté le 02 mai 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
Signaler
0
0
Rafa
#4
Posté le 03 mai 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.
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte