Some of the criteria I have to count is in a string. I.E.:
'RECIEVING STOLEN PROP. 25-50 (AUTO PARTS)' and I need to count based on the word = AUTO
I tried INSTR to do a boolean
NumberVar Count1;
If instr({Query.CHARGES_DESC},"AUTO" > 1
then Count1 := Count1 +1
but this didn't work, then I tried STRCMP
NumberVar Count1;
If strcmp({Query.CHARGES_DESC},"AUTO" => 4
then Count1 := Count1 +1
and it didn't work.
I am probably focusing on the right idea with the wrong syntax...any suggestions?
TIA...DBAFrog
'RECIEVING STOLEN PROP. 25-50 (AUTO PARTS)' and I need to count based on the word = AUTO
I tried INSTR to do a boolean
NumberVar Count1;
If instr({Query.CHARGES_DESC},"AUTO" > 1
then Count1 := Count1 +1
but this didn't work, then I tried STRCMP
NumberVar Count1;
If strcmp({Query.CHARGES_DESC},"AUTO" => 4
then Count1 := Count1 +1
and it didn't work.
I am probably focusing on the right idea with the wrong syntax...any suggestions?
TIA...DBAFrog