FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
String manupilation
String manupilation
Débuté par ahmad abbas, 06 fév. 2018 16:23 - 2 réponses
Connectez-vous…
ahmad abbas
#1
Posté le 06 février 2018 - 16:23
sMes_fr is string
nPosValue_fr is int
example SMes = E:\shareIP\speech\wav files\wav files\505.wav
sMes_fr=ExtractString(EDT_FILE_fr, 1, ".wav")
Then I get E:\shareIP\speech\wav files\wav files\505
and use nPosValue_fr = Position(sMes_fr,"\",0,FromEnd)
Now i know the position of the last "\"
How can i get only the value betwee the "\" and the ".wav" as the Value "501" can be also "4444" not always 3 characters
Any help pls
Signaler
0
0
Fabrice Harari
#2
Posté le 06 février 2018 - 18:50
Hi Ahmad,
with 2 extractstring...
the first one to get 505.wav (everything after the last "\")
the second to get what's before the .
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)
More information on
http://www.fabriceharari.com
Le 2/6/2018 à 10:23 AM, ahmad abbas a écrit :
sMes_fr is string
nPosValue_fr is int
example SMes = E:\shareIP\speech\wav files\wav files\505.wav
sMes_fr=ExtractString(EDT_FILE_fr, 1, ".wav") Then I get
E:\shareIP\speech\wav files\wav files\505
and use nPosValue_fr = Position(sMes_fr,"\",0,FromEnd)
Now i know the position of the last "\"
How can i get only the value betwee the "\" and the ".wav" as the Value
"501" can be also "4444" not always 3 characters
Any help pls
Signaler
0
0
ahmad abbas
#3
Posté le 20 février 2018 - 19:46
Fabrice
Thanks for your response I finally did it as such
EDT_Message_id_fr= ExtractString(ExtractString(EDT_FILE_fr,1,"\",FromEnd),1,".")
and now i get only my 501.wav or 4444.wav and it works
thank you
ahmad
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