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

Text Fields - RemoveFormat option?


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

Recommended Posts

Posted

I've inherited some databases where text fields have all sorts of different formatting in them that need regularizing, so I was happy to discover the strategy of using the TextFormatRemove(Self) as an auto-entry option, so that when I build a database I can control the formatting of various fields that wind up getting put ontto reports etc.

I'm tempted to just make this a standard practice for all my text fields -- would anyone anticipate any downside to this practice? Of course, it prevents the user from doing something he or she might like to do, but aside from that -- any consequences I'm not foreseeing?

wickerman

Posted

Just about all fields in my databases have the auto-enter calculation Trim4( TextFormatRemove( fieldname ) ) to clean up data entry. This is on all fields like names, addresses etc, but NOT fields that may need to have formatted text entered (which are very few, like letter text fields).

Particularly with names and addresses, it solves a lot of formatting problems like surnames not appearing because there is a return after the first name.

Fields that have pop-up menus or radio buttons have a calculation that removes all except the rightmost (last) value. Fields that cannot be empty enter a default value.

  • 2 months later...
Posted

Just about all fields in my databases have the auto-enter calculation Trim4( TextFormatRemove( fieldname ) ) to clean up data entry . . . .

Is the '4' in that cal a typo -- if not, what does it do? My understanding is that Trim(Text) removes leading and trailing space characters . . . is the '4' part something special?

Albert

Posted

Sorry Albert, my bad. What Lee said. :P

I use Trim4() so often now that I've built it into my development template. I forget it's a custom function.

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