I have this connection string.
String := Eventstatus='Calculated' and ErrorCode='0000'
This string will always have this format but can differ the number of the fields and the operator (it can be 'AND' or 'OR')
How I can parse this string in order to get those fields and values and then to filter a specific record accordingly ?
I should take all the table fields and compare with the spllitted strings ?
In the end I have to filter the record with those values. For example in this case:
Rec.SETRANGE(EventStatus,'Calculated');
Rec.SETRANGE(ErrorCode,'0000');
Thank you
String := Eventstatus='Calculated' and ErrorCode='0000'
This string will always have this format but can differ the number of the fields and the operator (it can be 'AND' or 'OR')
How I can parse this string in order to get those fields and values and then to filter a specific record accordingly ?
I should take all the table fields and compare with the spllitted strings ?
In the end I have to filter the record with those values. For example in this case:
Rec.SETRANGE(EventStatus,'Calculated');
Rec.SETRANGE(ErrorCode,'0000');
Thank you