According to comments, you were looking for a way how to write a statement to determine if a certain text starts with a specified string. For this you can use e.g. the StartsText
function (System.StrUtils
). The following statement will evaluate to True if the current cell text starts with 007
:
if StartsText('007', VarToStr(ARecord.Values[AColumn.Index])) then