Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How to withdraw the last caracters of a variable (http://forums.winamp.com/showthread.php?t=254790)

Bertrand_M23 4th September 2006 16:11

How to withdraw the last caracters of a variable
 
Hello,

i'm still working on my XML files. Here is my issue :
I would like to withdraw the 4 last caracters of a name.
I've got a variable $R1 equal to "try1.xml" which is the name of my XML file but i would like to use the name "try1" without the 4 last caracters ".xml" so as to have a new variable called $R2 (for example) equal to "try1"
Does anybody can help me ...

Thanks

Bertrand

Afrow UK 4th September 2006 16:54

StrCpy $R0 $R0 -4

-Stu

Bertrand_M23 5th September 2006 07:54

Thanks
 
Thank you !!

Bertrand


All times are GMT. The time now is 06:00.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.