Copy Last character of the String

sameer_79sameer_79 Member Posts: 39
Hi,

Does anyone know how to copy last 4 character of the string????

Regards
Sam

Comments

  • kapamaroukapamarou Member Posts: 1,152
    Take a look at COPYSTR, STRLEN, MAXSTRLEN...
  • sameer_79sameer_79 Member Posts: 39
    But how to do this
  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Go to Design Mode of your object, press F5, choose SYSTEM -> String -> COPYSTR, STRLEN, MAXSTRLEN... what ever and press F1. It should become your best friend. :wink:
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    txtString := 'Copy Last character of the String';
    MESSAGE(COPYSTR(txtString,STRLEN(txtString) - 3,4));
    
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.