FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
fDir does not always find a file (WD75)
fDir does not always find a file (WD75)
Débuté par Albert Buitenhuis, 09 sep. 2005 17:20 - 1 réponse
Connectez-vous…
Albert Buitenhuis
#1
Posté le 09 septembre 2005 - 17:20
Probably this has something to do with case-sensitivity in a 2K3 environment: fDir SOMETIMES results an empty string (""), even when the file (on the indicated location) does exist, EVEN when the case is correctly entered. For instance:
File X:\Pictures\1234567.jpg:
fDir(X:\Pictures\1234567.JPG) results "" ; (ok)
fDir(X:\Pictures\1234567.jpg) results "1234567.jpg" ; (ok)
File X:\Pictures\1234568.jpg:
fDir(X:\Pictures\1234568.JPG) results "" ; (ok)
fDir(X:\Pictures\1234568.jpg) results "" ; (Incorrect)
I solved this problem using a fListFile-procedure, but is takes a LOT more time. Does anybody have had the same experience; or (more interesting) does anybody have an idea how to overcome this problem?
MSG-i Netherlands NV
Signaler
0
0
robert zhong
#2
Posté le 11 septembre 2005 - 19:37
Hi, Albert,
I don't know in Windev75, but Windev9 seems to work OK, maybe you should try
Fdir(xxxx.xxx, frfile) and see if it works. The dafsult is to find directory.
robert zhong
Probably this has something to do with case-sensitivity in a 2K3 environment: fDir SOMETIMES results an empty string (""), even when the file (on the indicated location) does exist, EVEN when the case is correctly entered. For instance:
File X:\Pictures\1234567.jpg:
fDir(X:\Pictures\1234567.JPG) results "" ; (ok)
fDir(X:\Pictures\1234567.jpg) results "1234567.jpg" ; (ok)
File X:\Pictures\1234568.jpg:
fDir(X:\Pictures\1234568.JPG) results "" ; (ok)
fDir(X:\Pictures\1234568.jpg) results "" ; (Incorrect)
I solved this problem using a fListFile-procedure, but is takes a LOT more time. Does anybody have had the same experience; or (more interesting) does anybody have an idea how to overcome this problem?
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