Jump to content

How to test for printable text?


K1200

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

Recommended Posts

Would anyone happen to know of a simple way to test that a field actually has some printable characters in it -- and not just blanks, tabs, carriage returns and the like. I'd like to be able to set a Yes/No indicator when the field is "occupied".

Thanks for any help.

Link to comment
Share on other sites

I believe I understand what you mean. So the check would be:

If (Length (Table::TextField) > Length (Filter(Table::TextField ; Char(9) & Char(13) & Char(32)))

And then I would need to expand the character list to include any other non-printing codes that I encounter.

Thanks for the response.

Link to comment
Share on other sites

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