Imports SystemIO Dim txtwriter As StreamWriter
txtwriter = FileCreateText(ServerMapPathstrpath (\menuonetxt))
txtwriterWriteLine(<TREENODES>)
Dim objConn As OleDbConnection
Dim objCmd As OleDbCommand
Dim objRead As OleDbDataReader
Dim strSQL strDSN As String
Dim strid strname strid strname As String
Dim strand As String
strand = &
Dim i j k m As Integer
i =
j =
k =
m =
strSQL = select * from class order by classid
objConn = New OleDbConnection(ConfigurationSettingsAppSettings(connString))
objCmd = New OleDbCommand(strSQL objConn)
objCmdConnectionOpen()
objRead = objCmdExecuteReader()
While objReadRead()
If j = Then
j = Len(Trim(objReadItem(classid)))
Else
strid = strid
strname = strname
i = Len(Trim(objReadItem(classid)))
k = i j
Select Case k
Case Is >
txtwriterWriteLine(<treenode text= & strname & NavigateUrl=xxcb_addaspx?classname= & strname & & strand & classid= & strid & Target=main>)
Case Is =
txtwriterWriteLine(<treenode text= & strname & NavigateUrl=xxcb_addaspx?classname= & strname & & strand & classid= & strid & Target=main/>)
Case Is <
txtwriterWriteLine(<treenode text= & strname & NavigateUrl=xxcb_addaspx?classname= & strname & & strand & classid= & strid & Target=main/>)
txtwriterWriteLine(</treenode>)
m = k
While m <
txtwriterWriteLine(</treenode>)
m = m +
End While
End Select
j = Len(Trim(objReadItem(classid)))
End If
strid = Trim(objReadItem(classid))
strname = Trim(objReadItem(classname))
End While
strid = strid
strname = strname
i = Len(strid)
k = j i
strid = strid
strname = strname
Select Case k
Case Is >
txtwriterWriteLine(<treenode text= & strname & NavigateUrl=xxcb_addaspx?classname= & strname & & strand & classid= & strid & Target=main/>)
txtwriterWriteLine(</treenode>)
m = Len(strid) /
While m >
txtwriterWriteLine(</treenode>)
m = m
End While
Case Is =
txtwriterWriteLine(<treenode text= & strname & NavigateUrl=xxcb_addaspx?classname= & strname & & strand & classid= & strid & Target=main/>)
txtwriterWriteLine(</treenode>)
m = Len(strid) /
While m >
txtwriterWriteLine(</treenode>)
m = m
End While
Case Is <=
txtwriterWriteLine(<treenode text= & strname & NavigateUrl=xxcb_addaspx?classname= & strname & & strand & classid= & strid & Target=main/>)
txtwriterWriteLine(</treenode>)
m = Len(strid) /
While m >
txtwriterWriteLine(</treenode>)
m = m
End While
End Select
txtwriterWriteLine(</TREENODES>)
txtwriterClose()