| 发表于:2007-06-07 09:04:35 楼主 |
#region "詳細表示 " '詳細表示ヘッダ表示 private sub logdetaildisp_header(byval l_strlog as string) dim l_strkind as string dim l_displog as string dim l_icnt1, l_ilen as integer try 'ログヘッダ情報の削除 m_strsecnetlog = l_strlog l_displog = l_strlog 'ポートの削除 if g_blportdel then mid(m_strsecnetlog, 1, 1) = "0 " end if 'countの削除 mid(m_strsecnetlog, count, 4) = "0000 " with l_displog m_aycheadtext(0).text = .substring(0, 1) for l_icnt1 = 1 to m_aycheadtext.length - 1 m_aycheadtext(l_icnt1).text = .substring((l_icnt1 * 2) - 1, 2) next end with 'インデックスの算出 l_ilen = cint( "&h " & m_strsecnetlog.substring(leng - 1, 4)) hscrollbar1.minimum = 29 hscrollbar1.maximum = (((l_ilen * 2) + 2) - (m_aycdatatext.length * 2)) - 1 if menuitemkeepidx.checked = true then 'インデックスを保持する場合 if hscrollbar1.value > hscrollbar1.maximum then hscrollbar1.value = hscrollbar1.maximum if hscrollbar1.value mod 2 = 0 then hscrollbar1.value = hscrollbar1.value + 1 end if else hscrollbar1.value = hscrollbar1.value if hscrollbar1.value mod 2 = 0 then hscrollbar1.value = hscrollbar1.value + 1 end if end if else 'インデックスを保持しない場合 hscrollbar1.value = 29 end if catch err as exception logwrite(en_logkind.en_error, "file :fmlog.vb method :logdetaildisp_header() message : " & err.message) end try end sub |
|
|
|
|