|
| Iniciado por ahmad, 06,feb. 2018 16:23 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 06,febrero 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 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,febrero 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 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,febrero 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 |
| |
| |
| | | |
|
| | | | |
| | |
|