Jump to content

Formatting a Variable


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

Recommended Posts

Hello All,

Thanks for any suggestions you may have for my current problem.

I have two global fields that I'd like the user able to enter words in with or without capitalizing and then be able to specify a variable calculation using those global fields, but (and here's the catch) make the variable output Title Case.

Here's my attempt to set the variable's calculation using TextStyleAdd -

TextStyleAdd ( GlobalBlank1 & " " & GlobalBlank2 ; Titlecase )

With this calculation, I still get lower case words as a result if that's what's entered in the global field. Any suggestions?

Thanks again for any help,

Five Fingers

Link to comment
Share on other sites

Yes, it does. A custom dialog does not display styled text. But if you set a field to the variable, it WILL be styled.

Note that styling does NOT modify the text - it's merely attached to the text, and it will be removed where there is no support for styled text, e.g. during export to a text file or in a custom dialog. If you want a permanent modification of the text itself, use the Proper() function instead.

Link to comment
Share on other sites

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