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

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,135)