home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 February
/
PCWK0297.iso
/
envelop
/
envelop.3
/
Program
/
evhelp.eto
< prev
next >
Wrap
Text File
|
1996-07-08
|
1KB
|
46 lines
Type EnvelopHelpTable From HashDictionary
' METHODS for object: EnvelopHelpTable
Sub InitContextKeys(path As String)
Dim dir As New Directory
dir.Path = IIf(path = "", dir.CurrentDir, path)
dir.EnumContents(Me, "ReadHHFile", "*.hh", True)
End Sub
Sub ReadHHFile(ByVal filename As String, attr As Long)
Dim f as New TextFile
f.FileName = filename
If Not f.Exists Then Throw ErrorReadingHHFile
f.OpenReadOnly()
If (f.IsOpen) Then
dim s as string
Do
s = f.Readln()
Loop While (f.Position < f.Size) && Instr(1, s, "#define") <> 1
While Instr(1, s, "#define")
dim lastchar as long
lastchar = Instr(9, s, " ")
InsertKeyAndValue(Mid(s, 9, lastchar - 9), Val(Mid(s, lastchar + 1)))
s = f.Readln()
Wend
f.Close
End If
End Sub
Sub TextPreLoad()
BucketCount = 100
InitContextKeys("")
Persistent = True
End Sub
End Type
Begin Code
' Reconstruction commands for object: EnvelopHelpTable
'
With EnvelopHelpTable
.TextPreLoad()
End With 'EnvelopHelpTable
End Code