Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello together,
My problem: I want to take just a part of the filename and want to do a little change on it.
For example:
The filename is: PR_E1440_G_FJH.cs
But I need only the part E1440
The little change should be a (.) point after the E. So what I want is to make is/get E.1440
I tried this function:
subfield (RIGHT(LEFT(FileName(), 8), 5), 'E ', 1)&'.'& subfield (RIGHT(LEFT(FileName(), 8), 5), 'E', 2)
but the outcome is .1440 --> So the E is missing at the beginning.
Can someone help me? I would be very glad for any help.
BR
Try something like this.
mid(Subfield(FileBaseName(),'_',2),1,1) &'.'& mid(Subfield(FileBaseName(),'_',2),2)
Try something like this.
mid(Subfield(FileBaseName(),'_',2),1,1) &'.'& mid(Subfield(FileBaseName(),'_',2),2)
Thanks it works.