Truncating strings

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Truncating strings

Postby lkastel » Sat Sep 11, 2010 11:13 pm

I want to create a new version of the "Player" statistic which will show only the first 10 characters of the player name. Is it possible using the Format expression?
lkastel
 
Posts: 19
Joined: Tue Sep 07, 2010 11:21 pm

Re: Truncating strings

Postby WhiteRider » Sun Sep 12, 2010 3:37 am

In v3.07.4 Beta there is a mechansim which will allow this.
I have uploaded "Player Short" stats for each game type to the "Get More" section. You can download these and use them - they are set to show 5 characters but you can change that on the Format tab.

Tutorial: Custom Reports and Statistics
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests