Jump to content
Server Maintenance This Week. ×
Message added by Ocean West,

Split topic to new thread.

This topic is 652 days old. Please don't post here. Open a new topic instead.

Recommended Posts

one other question, I have a file name say 40.10.pdf or 40A.10.pdf

How can I pad and show the value to the left of the decimal?

The result I am looking for is:

00040

and

0040A

Tried functions right and left and but can't figure it out

Link to comment
Share on other sites

First, extract the value to the left of the first period. Then, since that value is not always a number, you cannot use the SerialIncrement() function to pad it; you need to revert to the old method:

Let (
value = Left ( fileName ; Position ( fileName ; "." , 1 ; 1 ) - 1 )
;
Right ( "000000" & value ; 5 )
)

 

--
P.S.  This has nothing to do with your original question. Please post such questions separately.

 

 

Link to comment
Share on other sites

This topic is 652 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.