B
Brown Delivers
Can a varible not be used to indicate the "length" when
string indexing? This is what I observe:
Set Total=********************
Set X=10
Set Progress=%Total:~0,10%
C:\>ECHO %Progress%
**********
Now, say I try to use variable X to indicate the length:
Set Progress=%Total:~0,%X%%
C:\>ECHO %Progress%
X%%
What am I doing wrong?
string indexing? This is what I observe:
Set Total=********************
Set X=10
Set Progress=%Total:~0,10%
C:\>ECHO %Progress%
**********
Now, say I try to use variable X to indicate the length:
Set Progress=%Total:~0,%X%%
C:\>ECHO %Progress%
X%%
What am I doing wrong?