last 8 characters o...
 
Notifications
Clear all

last 8 characters of field value

3 Posts
2 Users
0 Reactions
782 Views
(@patsollom)
Active Member
Joined: 3 years ago
Posts: 4
Topic starter  

Hi,

 

I'd like to make a warning symbol visible that flashes on my dash if I am using a qualify setup in a race. I always name my sto files with _qual on the end so i would like to look at the last 8 characters of the DataCorePlugin.GameRawData.SessionData.DriverInfo.DriverSetupName value.

For example, the file is called VRS_baseline_WatkinsGlen_MX5_Qual.sto and i want to return just the "Qual.sto" value which is the last 8 characters.


   
Quote
(@romainrob)
Honorable Member
Joined: 5 years ago
Posts: 530
 

Hi,
The NCalc "right" function can help you there.
Try:
right([DataCorePlugin.GameRawData.SessionData.DriverInfo.DriverSetupName] , 0, 8)


   
ReplyQuote
(@patsollom)
Active Member
Joined: 3 years ago
Posts: 4
Topic starter  
Posted by: @romainrob

Hi,
The NCalc "right" function can help you there.
Try:
right([DataCorePlugin.GameRawData.SessionData.DriverInfo.DriverSetupName] , 0, 8)

thanks man!! That works great!


   
ReplyQuote
Share: