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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Converting Lowercase text to Upper case..

ptc-2161629
1-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
RichardJ
19-Tanzanite
(To:ptc-2161629)

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

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
RichardJ
19-Tanzanite
(To:ptc-2161629)

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

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
RichardJ
19-Tanzanite
(To:ptc-2161629)

"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.

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

Thanks Richard!!!

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.

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

ttokoro
19-Tanzanite
(To:ptc-4127974)
LucMeekes
23-Emerald III
(To:ptc-2161629)

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

Announcements