Jump to content

Space in a field is not a null return?


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

Recommended Posts

I have a script that looks for a number of values in a field. I one of the values is detected a certain counter is set, depending on that value. If no value is detected, still another counter is set. In one record I found this problem: somehow the field being tested had gotten a space entered...the script could not find an action for this and skipped the record, not setting a counter for the null field.

My question is, is there a way to script this test so that a space (or any number of spaces) will still be considered a null?

 

Thanks,

Link to comment
Share on other sites

My question is, is there a way to script this test so that a space (or any number of spaces) will still be considered a null?

It's not a very clear question, since we know practically nothing about "this test". I think you said it looks for some specific values. If so, it should return a negative result if none of these values are found - regardless of any other values present, including spaces.

In any case,

IsEmpty ( Trim ( YourField ) )

will return true if the field is empty or contains only spaces.

---
P.S. There is no such thing as "null" in Filemaker.

Link to comment
Share on other sites

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