Description Returns the node number of an existing keyword with a given name. If no keyword exists with the name provided, the function returns a -1.
Syntax kw = KeywordFind( kwName )
Parameters kw (Long) Returned node number of the keyword being searched for. Value is -1 if no keyword match is found.
kwName As String String name of the keyword being searched for.
Example The following script checks for the existence of a keyword with a given name and either retrieves the node number of the existing keyword or creates a new keyword node.
Sub Main
Dim kw As Long Dim kwName As String, kwDesc As String kwName = "Painted" kwDesc = "" kw = KeywordFind( kwName ) If kw < 0 Then kw = KeywordAdd( kwName, kwDesc ) End If
End Sub
See Also
|