SELECTSTR

iqbalmadiqbalmad Member Posts: 179
edited 2014-02-11 in Navision Attain
Hi all,

we use the SELECTSTR to retrieves a substring from a comma-separated string.

NewString := SELECTSTR(Number, CommaString)

Is there a function to retrieve a string from a tab-separated string?

Thanks

Comments

  • einsTeIn.NETeinsTeIn.NET BochumMember Posts: 1,041
    No, afaik there isn't. You have to convert the tab into comma by CONVERTSTR, if possible. Otherwise you need to use COPYSTR, STRPOS, etc. to seperate your string on your own.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • MBergerMBerger Member Posts: 413
    You could convert the tabs to commas first, using Convertstr, then use SelectSTR as normal :

    TabChar is a text variable, length 1
    TabChar[1] := 9 ;
    TextWithCommas := ConvertStr(TextWithTabs,TabChar,',') ;
    
Sign In or Register to comment.