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
Resident Rockstar
Resident Rockstar

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
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Users online (2,313)