Skip to main content
OCLC Support

GetFieldLine

Find the syntax, use, parameters, return values, and an example for the GetFieldLine macro command in Connexion client.
Syntax BOOL = CS.GetFieldLine (nLineNumber, sData)
Use to Get the data for a field in a field position specified by line number, with each field representing one line.
Parameters
  • For nLineNumber, enter the field position (line number) of the field you want.
  • Enter the parameter sData to store the data from the field you specify.
Comments Retrieving data that contains non-Latin script characters using this macro command returns a message: Data contains non-Latin script. Use the GetFieldLineUnicode command instead for retrieving data with non-Latin scripts.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()
 

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

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

     CS.Search “WC”, “#1”

     CS.GetFieldLine 4, sData

     MsgBox sData

     If CS.GetFieldLine(10, sData) = True, Then
          MsgBox sData
     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 data in the fourth variable field of the record (line number 4) and returns a message giving the data.
  • Gets the data in the tenth variable field of the record (line number 10) and returns a message giving the data.