J.D.
|
| Posted: 07/08/2002, 1:38 PM |
|
Hello All,
I am trying to read in a value from the database. Doing an if check on the value to see if it has rtr_ or swt_ in the name of the node. I am using asp and need assistance on the code to do this, Do I use an array? Since I only need to check if part of the value.
Thanks,
J.D.
|
|
|
 |
Chris K.
|
| Posted: 07/09/2002, 1:10 AM |
|
I'm not sure if I understood you right...
You can use Dlookup/CCDlookup function to retrieve database value and then check if it contains some substring using InStr function.
CC:
value = DLookup("tablename", "fieldname", "where condition")
if InStr(value, "rtr_") > 0 then
' if rtr_ found within value
end if
CCS:
value = CCDLookup("fieldname", "tablename", "where condition")
if InStr(value, "rtr_") > 0 then
' if rtr_ found within value
end if
|
|
|
 |
|