Rama Tito
asked on
What the meaning of "if (MaterialID.IndexOf("%")>-1)"
Please do elaborate the meaning of "if (MaterialID.IndexOf("%")>- 1)". What means of indication of "%" and -1 as well.
if (MaterialID.IndexOf("%")>-1)
{
strCommand ="select top 2000 ID,OrderNumber,PartNumber,Weight,DONumber,MaterialType,Receiveddate,MaterialNumber as MaterialCode,supplier,VesselName,StorageLocation,Status,ReceivedBy,ApprovedBy,Remarks from rawMaterial where " + dateCondition + " and ID like '" + MaterialID +"'and materialtype not like '%sheet%' order by " + sortType;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER