Jump to content

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

Recommended Posts

Posted

Hi there!

Can give me an help about a problem that i'm having? I hope so. I need to make a comparison between values of text type (for example 13" ). When I'm writing the code in the script, and try to insert the value to make the comparison, an error is generated. For example:

IF (<FieldName> = "13"")

The values are: 13", 14", ... (a proprety of a Monitor)

Can anyone explain me how to solve this problem?

Thanks a lot...

FileMaker Version: 6

Platform: Mac OS X Jaguar

Posted

When using a quote mark in a text string, you have to add another quote mark. Not very intuitive, and in fact this has changed in FileMaker 7. Anyway, your statement would look like this:

IF (<FieldName> = "13""")

Another option would be to use TextToNum(fieldname) = 13 so you could just ignore the quote mark.

Personally, I probably would just make that field a number field in the first place, and not include the inch/quote mark as part of the data -- it's the number that matters here.

Posted

I just realized this was a cross-posted question. Please don't do that, it wastes everyone's time.

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