I need to check the incomming source data string of a column, for words like ELEC, GAS, & CONS.
The data is comming as ABC ELECTRICALS, Cooper GAS works, etc.
currently i am using
Code: Select all
VarIndex = index('ABC ELECTRICALS','ELEC',1)
If VarIndex <> 0 then Ans = 1 else Ans = 0.
can anyone please tell me that is there any function like substring or something else to do it in a single line