Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 2644 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

in a field called p1::tn1 i want first letter of the word with font1 and characters after 1st should be font2 i wrote script but no success where am i wrong kindly someone help me plz

 Upper(TextSize(TextFont(TextColor(Left ( P1::TN1 ; 1 ); RGB( 0 ; 0 ;0  )); "font1" ) ; 12))  &  Upper(TextSize(TextFont(TextColor(Middle ( P1::TN1 ; 2 ; P1::TN1 ); RGB( 0 ; 0 ;0  )); "font2" ) ; 12))

Posted

Try

 Upper(TextSize(TextFont(TextColor(Left ( P1::TN1 ; 1 ); RGB( 0 ; 0 ;0  )); "font1" ) ; 12))  &  Upper(TextSize(TextFont(TextColor(Middle ( P1::TN1 ; 2 ; Length(P1::TN1 )-1); RGB( 0 ; 0 ;0  )); "font2" ) ; 12))

  • Thanks 1
Posted

Wouldn't it be sufficient to do =

Upper (
TextFont ( Left ( TN1 ; 1 ) ; "Font1" )
&
TextFont ( Right ( TN1 ; Length ( TN1 ) - 1 )  ; "Font2" )
)

and apply the rest of the formatting (size and color) at layout level?

 

In any case, there's no point in writing the same thing twice - so if you really need it, do: =

TextSize ( TextColor ( Upper (
TextFont ( Left ( TN1 ; 1 ) ; "Font1" )
&
TextFont ( Right ( TN1 ; Length ( TN1 ) - 1 )  ; "Font2" )
) ; 0 ) ; 12 )

Note that RGB ( 0 ; 0 ; 0 ) is 0.

---
P.S. This is a calculation, not a script.

This topic is 2644 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.