Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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

 

Posted

Not exactly sure what you're asking. If you just want to trim out the text:

GetAsNumber

Posted
29 minutes ago, comment said:

How about =


MEDIASIZE * If ( PatternCount ( MEDIASIZE ; "GB" ) ; 1024 ; 1 )

 

Works perfectly thanks

  • 1 month later...
Posted

It works perfectly in case the pattern is either KB or GB

Hower it doenst work in case the pattern is MB

This topic is 2561 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.