CasewareDocs

ReadValue

Gets a certain value.

Compatibility

Available as of IDEA version 9.0

Syntax

ReadValue(rowNumber as Long, fieldName as String)

Parameters

rowNumber

The row number of the value.

fieldName

The name of the field which contains the value.

Example

Sub Main 
Set CreateDatabase = SmartContext.MacroCommands.CreateDatabase

'Open existing database and append records to it.
CreateDatabase.Open("My Database.IMD")
CreateDatabase.AppendValue("1111;Create Database Test1#2222;Create Database Test2#3333;Create Database Test3")
CreateDatabase.PerformTask

'Close the database.
CreateDatabase.Close

'Open the database.
CreateDatabase.Open("My Database.IMD")

'Get a certain value.
fieldValue = CreateDatabase.ReadValue (1,"CHAR_FIELD")

'Close the database.
CreateDatabase.Close

'Release objects.
Set CreateDatabase = Nothing
End Sub