cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JohnStraumannPA
Helper I
Helper I

String Length in PAD

Hello all:

 

Is there a Len(%varname%) function or something similar in PAD to get the length of a string variable?

 

John.

1 ACCEPTED SOLUTION

Accepted Solutions

What is the property type of TabName?  You should be able to find it by going to your Variable Pane (on the right) and right-click -> View.  Need to know what is says here:

MichaelAnnis_0-1634833512364.png

 

View solution in original post

6 REPLIES 6
MichaelAnnis
Super User
Super User

If it is a TEXT variable type, you can use the property .Length to get the length.

MichaelAnnis_0-1634827775058.png

 

So, in variable form it would be %TEXTVARIABLE.Length%

 

Best of Luck!

Pstork1
Dual Super User
Dual Super User

Variables have properties that can be accessed.  You can access the length property of a variable using either the dialogue or the % notation in the following example.

image.png

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thanks for the response, I get an error: Variable 'TabName' doesn't have  a property 'Length'. I also tried %TabName%.Length, but the if fails.tabname.PNGv

What is the property type of TabName?  You should be able to find it by going to your Variable Pane (on the right) and right-click -> View.  Need to know what is says here:

MichaelAnnis_0-1634833512364.png

 

Datarow

tabname.PNG

Thanks for the guidance, got it! CurrentItem[0].Length

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Top Kudoed Authors
Users online (5,043)