IsElement
This method checks if an element is contained in a given delimited string.
Syntax:
oBiz.IsElement(<cElement>, <cString>, [<cParseChar>])
Parameter |
Description |
cElement |
Element to look for. |
cString |
String in which to look for the element cElement. |
cParseChar |
Delimiter. This parameter is optional. If the parameter is omitted the comma is used as a delimiter by default. |
Example:
*/ Instantiate end set the database location.
oBiz = createobject("bizinfo.application")
oBiz.cDatabasePath = "C:\WinBIZ Data"
oBiz.nCompany = 1000
oBiz.nYear = 2017
*/ Check if red is contained in the list of elements separated by semi-columns.
messagebox(oBiz.IsElement("red", "blue ; red ; green ; white ; black", ";"))