Im having a problem with instr Its simply put, returning an unexpected value. I search for the position of 2 characters "(" and ")".
String Im using instr on
now the "(" returns the correct position of 23.Code:INSERT INTO Drop_Data (dropperid, itemid, minimum_quantity, maximum_quantity, questid, chance) VALUES
However when instr looks for ")" it finds it incorrectly at position 94
thats the code im using right now I need ttext to be equal to the data inside the "(" and ")". Anyone got any ideas why instr isnt working?Code:If fline = 1 Then TextOutPut(0) = ttext & vbCrLf a = InStr(1, TextOutPut(0), "(") b = InStr(1, TextOutPut(0), ")") Debug.Print ttext ttext = Mid(TextOutPut(0), a, b) Debug.Print ttext End If


Reply With Quote
