Skip to main content
OCLC Support

GetFixedField

Find the syntax, use, parameters, return values, and an example for the GetFixedField macro command in Connexion client.
Syntax BOOL = CS.GetFixedField (sFieldName, sField)
Use to Get the data for a specific fixed-field element.
Parameters
  • For sFieldName, enter the name of the fixed-field element you want, enclosed in quotation marks (“).

     Note: For Dates 2, enter a comma (,) for the fixed-field element name enclosed in quotation marks.

    Example: CS.GetFixedField ",", sField
     
  • Enter the parameter sField to store the value from the fixed field element you specify.
Comments This command works only when the setting for displaying the fixed field (View > OCLC Fixed Field) is set to Top or Bottom.

The command does not work when the fixed field display is set to Variable Field.

See FixedFieldPosition, the command for determining or specifying how the fixed field displays.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

     Dim CS As Object
     Dim sField as String

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

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

     CS.Search “WC”, “#1”

     CS.GetFixedField “Type”, sField

     MsgBox “Type = “ & sField

     If CS.GetFixedField(“Lang”, sField) = True Then
          MsgBox “Lang = “ & sField
     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.
  • Gets the value of fixed-field element Type and returns the message: Type = [value].
  • Gets the value of fixed-field element Lang and returns the message: Lang = [value].