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
Memorable Member
Memorable Member

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 III
Dual Super User III

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

 

View solution in original post

Datarow

tabname.PNG

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,738)