dkey Posted October 2, 2017 Posted October 2, 2017 Hello I am using FMP13 and I have a MEDIASIZE field where all the data is something like this: 64.3 MB or 3.96 GB How to write a script which will convert to a regular number this information? As it si I can't sort the various records while converting them as an even number it will be possible Thanks a lot
Fitch Posted October 2, 2017 Posted October 2, 2017 Not exactly sure what you're asking. If you just want to trim out the text: GetAsNumber
comment Posted October 2, 2017 Posted October 2, 2017 How about = MEDIASIZE * If ( PatternCount ( MEDIASIZE ; "GB" ) ; 1024 ; 1 ) 1
dkey Posted October 2, 2017 Author Posted October 2, 2017 29 minutes ago, comment said: How about = MEDIASIZE * If ( PatternCount ( MEDIASIZE ; "GB" ) ; 1024 ; 1 ) Works perfectly thanks
dkey Posted November 17, 2017 Author Posted November 17, 2017 It works perfectly in case the pattern is either KB or GB Hower it doenst work in case the pattern is MB
Recommended Posts
This topic is 2898 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 accountSign in
Already have an account? Sign in here.
Sign In Now