Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.
Users reporting for no reason may be locked out.
using System;
using ATVO.ThemesSDK;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;
namespace Scripts
{
public class Initialen_Fahrer : IScript
{
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
// Get databinding value as string:
string frist_name = value.ToString();
string last_name = value.ToString();
// Take char 1 - 3
string fristpart = frist_name.Substring(0, 1);
string secondpart = last_name.Substring(0, 2);
// Return that to display
return fristpart + secondpart.ToUpper();
}
}
}