FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
How to find an empty string in code?
How to find an empty string in code?
Débuté par Xavier Schauwvlieghe, 11 aoû. 2017 13:15 - 6 réponses
Connectez-vous…
Xavier Schauwvlieghe
#1
Posté le 11 août 2017 - 13:15
Hi,
maybe a silly question,
but how to find empty strings [""] in code?
best regards,
Xavier
Signaler
0
0
Peter Holemans
#2
Posté le 11 août 2017 - 14:31
Hi Xavier,
Not sure I get your question completely but here's what I used to do:
IF SomeString ~= "" THEN ...
or
FOR ALL String SubStr OF MainStr SEPARATED BY CR
IF Substr ~= "" THEN ...
Cheers,
Peter Holemans
Signaler
0
0
Xavier Schauwvlieghe
#3
Posté le 11 août 2017 - 14:38
Hi Peter,
I want to find in the code editor all the [""] like EDT_Name = "",
so do a Ctrl-F in the code editor and try to find all the double double quotes in the code.
Cheers, Xavier
Signaler
0
0
Peter Holemans
#4
Posté le 11 août 2017 - 14:46
Ah, OK.
Not working in WX at the moment...
But by heart: You need to quote your search again in that case if I recall correctly.
Something like "=""" or maybe like in code where you have to quadruple your quotes.
Something like """""""" maybe.
Do some tests, I have used it that way quite a while ago.
Cheers,
Peter Holemans
Signaler
0
0
Xavier Schauwvlieghe
#5
Posté le 11 août 2017 - 14:53
Hi Peter,
I've tried "", """, """" => nothing found
just tried """"" (5 double quotes) and now WD finds them...
thnx and cheers,
Xavier
Signaler
0
0
Peter Holemans
#6
Posté le 11 août 2017 - 14:55
The inner dungeons of WX remain as mysterious as ever :rp:
Glad you got it !
Cheers,
P.
Signaler
0
0
Art Bonds
#7
Posté le 11 août 2017 - 15:50
Quote
Peter Holemans
The inner dungeons of WX remain as mysterious as ever :rp:
Glad you got it !
Cheers,
P.
I would have though quad double quotes would have got it, but how in the ach e double el does 5 double quotes make any sense???:confused:
Signaler
0
0
→ Revenir à WINDEV 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