Skip to main content
OCLC Support

SetFixedField

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

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

    Example: CS.SetFixedField(",", "uuuu")
     
  • For sData, enter the value you want to insert in the specified fixed-field element, enclosed in quotation marks (“)

     Note: Enter a space instead of data in the quotation marks to clear the specified fixed- field element.

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. Also returns FALSE if you set a fixed field element as a space to clear it.
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”

     CS.SetFixedField “Type”, “t”

     If CS.SetFixedField(“Lang”, “Esp”) = True Then
          MsgBox “Lang changed to Esp”
     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.
  • Inserts value t in fixed-field element Type. No confirmation message.
  • Inserts value Esp in fixed-field element Lang. If the action is successful, returns the message: Lang changed to Esp.