help on string comparisons
Posted: Fri Oct 18, 2019 8:02 am
Hi
I have this field in recordset: oRs:Fields("CODICE"):value
Field CODICE in table is CHAR(15) but in oRs object it lost right blanks.
inside table I have due article:
1st article "5224366010"
2nd article "5224366010V10"
when field oRs:Fields("CODICE"):value is "5224366010V10"
the IF istruction is false but articles are diferrent.
how can I to solve it? have I to use SET EXACT ON?
I have this field in recordset: oRs:Fields("CODICE"):value
Field CODICE in table is CHAR(15) but in oRs object it lost right blanks.
inside table I have due article:
1st article "5224366010"
2nd article "5224366010V10"
when field oRs:Fields("CODICE"):value is "5224366010V10"
Code: Select all
cCdpar = "45224366010"
IF oRs:Fields("CODICE"):value <> cCdpar
cCdpar = oLgoft:Fields("LGCDPA"):value
endif
how can I to solve it? have I to use SET EXACT ON?