Home > Language Reference > Classes > StreamRecord

ResType Property

Resource type.

Syntax

Public Property Get ResType() As String

Remarks

For ResourceDB databases, the ResType property indicates the type of resource stored in the record. The resource type is a string of 4 characters. You can read and write the resource using the Resource property. The ResType 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