Home > Language Reference > Classes > StreamRecord

ResID Property

Resource identifier

Syntax

Public Property Get ResID() As Long

Remarks

For ResourceDB databases, the ResID property indicates the identifier of the resource stored in the record. The resource identifier is a Long and distinguishes records of the same ResType. You can read and write the resource using the Resource property. The ResID property is read only.

In the following example, all the records from the Launcher database are browsed and their ResType property and ResID are listed.

Private Sub Button1_Click()
dim db as new ResourceDB
dim rec as new StreamRecord
Dim i as Integer

  db.OpenByName "Launcher",hbModeOpenExisting+hbModeReadOnly
  For i=0 to db.RecordCount-1
    Set rec=db.Record(i)
    If not rec Is Nothing then
      List1.AddItem "Record " & i & " ResType:'" & rec.ResType & "' ResId:" & rec.ResId 
    End If
  Next i
  db.Close
End Sub

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A