stilldiary.blogg.se

Method 365 for business
Method 365 for business




  • If Where is empty, then String is returned unchanged.
  • If Where contains any other character, then an error is returned.
  • If Where contains, then all the spaces at the end of String are deleted.
  • If Where contains =, then all the spaces are deleted from String.
  • If you omit the Which parameter, then the method deletes spaces from String based on the contents of the Where parameter as follows: The message window displays the following:Įxample06: The method removes all spaces. NewString := Text.DelChr(String: String )Įxample01: The method deletes every W and s that is either the first or last character in String.Įxample02: The method deletes every s and x from String.Įxample03: If T, e, l, or y is the last character in String, the method deletes them.Įxample04: If T, h, s, i, or space is the first character in String, the method deletes them.Įxample05: The method removes any spaces from the start of String. The which parameter is to be considered as an array of chars to delete where the order does not matter. If the where parameter or the which parameter is empty, the source is returned unmodified. If the where parameter contains any other char, an exception is thrown. If the where parameter contains a greater-than, then the characters are only deleted when they are the last in the string. If the where parameter contains a less-than, then the characters are only deleted when they are first in the string. If the where parameter contains an equal-sign, then all occurrences of characters in which is deleted from the current value. DelChr MethodĭelChr Method: Deletes chars contained in the which parameter in a string based on the contents on the where parameter. If Position combined with Length exceeds the length of the string, all the characters from Position to the end of the string are returned. NewString := Text.CopyStr(String: String, Position: Integer ) CopyStr MethodĬopyStr Method: Copies a substring of any length from a specific position in a string (text or code) to a new string. If either the FromCharacters or the ToCharacters strings are empty, then the source is returned unchanged. If the lengths of the FromCharacters and ToCharacters strings are not equal, then a run-time error occurs. The characters in the FromCharacters parameter are replaced by the characters in the ToCharacters parameter.

    method 365 for business

    The message window displays the following text: NewString := Text.ConvertStr(String: String, FromCharacters: String, ToCharacters: String) Each element in source is only converted ONCE a double-replacement cannot happen.

    method 365 for business

    If the parameter FromCharacters or the parameter ToChars is empty, the source is returned unmodified. If the length of the FromCharacters parameter and the ToChars parameter are different, an exception is thrown. ConvertStr Method: Replaces all chars in source found in FromCharacters with the corresponding char in ToCharacters and returns the converted string.






    Method 365 for business