String.SameText

Top  Previous  Next

 

Syntax

function String.SameText(Txt1, Txt2: string): boolean

 

Description

Returns TRUE if both strings are the same with a case insensitive compare.

 

See Also

String.SameStr

 

Example

execute udsblock

as

begin

  /* both same values */

  if String.SameStr('Value', 'Value') 

  then GUI.ShowMessage('Same strings');

  else GUI.ShowMessage('Not same strings');

 

  /* not same value because of case sensivity */

  if String.SameStr('VALUE', 'value')

  then GUI.ShowMessage('Same strings');

  else GUI.ShowMessage('Not same strings');

 

  /* same because this compares case sensitive */

  if String.SameText('Value', 'VALUE')

  then GUI.ShowMessage('Same text');

  else GUI.ShowMessage('Not same text');

end