Doorgaan naar de website
OCLC Support

GetFieldUnicode

Find the syntax, use, parameters, return values, and an example for the GetFieldUnicode macro command in Connexion client.
Syntax BOOL = CS.GetFieldUnicode (sFieldTag, nFieldInst, sFieldData)
Use to This command works like GetField, but also returns Unicode data in Numeric Character Reference (NCR) form.
Parameters
  • For sFieldTag, enter the field number you want to work with.
  • For nFieldInst, enter a number to specify which instance of a repeatable field you want. For example, enter 2 to get the second instance of the field.
  • Enter the parameter sFieldData to store the returned field data.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()
 

     Dim CS As Object Dim nLen As Integer
     Dim sFieldData as String

     Set CS = GetObject(“Connex.Client”)

     CS.GetFieldUnicode 245, 1, sFieldData

     MsgBox sFieldData

     sFieldData) = Mid$(sFieldData, 6, Len(sFieldData))
     sFieldData = "500 " + sFieldData

     CS.AddFieldLine1, sFieldData
End Sub

What this example does
  • Gets field 245 in the displayed record as Unicode.
  • Displays the data in a message box.
  • Constructs a 500 field from the data.
  • Adds the new field to the record.