Skip to main content
OCLC Support

IsHeadingControlled

Find the syntax, use, parameters, return values, and an example for the IsHeadingControlled macro command in Connexion client.
Syntax BOOL = CS.IsHeadingControlled (nLineNumber)
Use to Determine whether a heading in a specified line of the current record is controlled.
Parameters For nLineNumber, enter the line number of the heading field for which you want to check the control status. Each field represents one line.
Comment You must be logged on to run this macro.
Return values TRUE if the heading is controlled, or FALSE if not.
Example Sub Main()
 

     Dim CS As Object
     Set CS = GetObject(,“Connex.Client”)

     If CS.IsOnline = False Then
          CS.Logon ““, ““, ““
     End If

     CS.Search “WC”, “#1”

     If CS.IsHeadingControlled (16) = True Then

     CS.CursorRow = 16
     CS.UncontrolHeading
     End If
End Sub

What this example does
  • Logs on to Connexion if not already logged on, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches WorldCat for record number 1.
  • Places the cursor in the sixth column of the eighth row.
  • Uncontrols the heading in line 16 (sixteenth field) if the heading is controlled.