cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Lowercase text to Upper case..

ptc-2161629
Newbie

Converting Lowercase text to Upper case..

Hi, I am wondering if there is a feature in MathCAD that would allow a user to change the lowercase text to higher case text. regards
11 REPLIES 11

RE: Converting Lowercase text to Upper case..

Do you mean text in a text region, or do you mean a string held in a variable? Richard

RE: Converting Lowercase text to Upper case..

For example if there is a text "the shear capacity of beam" needs to be converted to "THE SHEAR CAPACITY OF BEAM" ie, converting text from lowercase to uppercase.. thanks

RE: Converting Lowercase text to Upper case..

That doesn't answer my question. If the text is a sting in a variable then it would be possible to write a function to convert it to upper case: a:"the shear capacity of beam" b:ToUpper(a) b="THE SHEAR CAPACITY OF BEAM" There is no such built-in function, but it could be written without too much trouble. If you posted the question to the main forum ( http://collab.mathsoft.com/~mathcad2000 ) you might even find that someone has already done so. If the text is part of a text region, then the answer is "no". At least, not in any simple way. In principle you could write a function based on a scripted component that would modify the XML in the Mathcad file, but it would be a lot of work. Richard

RE: Converting Lowercase text to Upper case..

Hi, Many thanks for your prompt response. I was actually looking for a feature similar to what you have in MS Word. In Word, you can select a string and then click on a button on the menu to change the string to uppercase. coming to the solution that you have given, I have tried "ToUpper(a) function as suggested by you; but the function doesn't seem to be available in MathCAD 14.0 that I am using. regards

RE: Converting Lowercase text to Upper case..

"surya prakash" wrote:

I was actually looking for a feature similar to what you have in MS Word. In Word, you can select a string and then click on a button on the menu to change the string to uppercase.

RE: Converting Lowercase text to Upper case..

Hi Richard, Many many thanks for your feedback.. regards surya

Re: RE: Converting Lowercase text to Upper case..

Thanks Richard!!!

Re: Converting Lowercase text to Upper case..

I was looking for the same function but ended up creating my own function.  Hopefully the functions I created will help someone in the future.

 

The example attached is in Mathcad Prime 6.

Re: Converting Lowercase text to Upper case..

Here is a variant which also deals with a few special characters used in my language.

"isIn()" normally would be a standalone function along with others placed in a collapsed region at the top of the sheet. I made it a local function to the conversion functions to make them self-contained.

Werner_E_0-1613733222433.png

P6 sheet attached

Re: Converting Lowercase text to Upper case..

Tags (1)

Re: Converting Lowercase text to Upper case..

Here's the same functionality that also works in Prime Express (4 and up).

Announcements