Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
<HEAD>
<hta:application id="hta"></hta:application>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=x-sjis">
<TITLE>CsvView.HTA</TITLE>
<OBJECT ID="TDC" WIDTH=0 HEIGHT=0 CLASSID="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83">
<PARAM NAME="UseHeader" VALUE="true">
<PARAM NAME="Charset" VALUE="shift_jis">
<PARAM NAME="CaseSensitive" VALUE="false">
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
' CsvView.HTA V1.01 (C) [email protected] 2006-07-17
' CsvView.HTA shows table from CSV file by TDC.
' Usage: Start CsvView.HTA csvfile
Option Explicit
Dim arg
arg=htaArguments(hta.commandline)
arg=Trim(Replace(arg,Chr(34),Empty))
If arg="" Then
alert "CSV file name missing."
close
End If
TDC.DataURL=arg
Function htaArguments(ByVal CommandLine)
Dim fQuoting
Dim k
fQuoting=False
For k=1 To Len(CommandLine)
Select Case Mid(CommandLine,k,1)
Case Chr(34) fQuoting=Not fQuoting
Case Chr(32) If Not fQuoting Then Exit For
End Select
Next
htaArguments=Mid(CommandLine,k+1)
End Function
Sub window_onload()
Dim RS
Dim HTML
Dim Field
document.title=document.title & " - " & TDC.DataURL
Set RS=TDC.recordset
HTML="<" & "TABLE DATASRC=""#TDC"" BORDER><" & "THEAD><" & "TR>"
For Each Field In RS.Fields
HTML=HTML & "<" & "TD id=""th"" onclick=""filter2(me)"">" & Field.Name & "<" & "/TD>"
Next
HTML=HTML & "<" & "/TR><" & "/THEAD><" & "TBODY><" & "TR>"
For Each Field In RS.Fields
HTML=HTML & "<" & "TD><" & "SPAN DATAFLD=""" & Field.Name & """><" & "/SPAN><" & "/TD>"
Next
HTML=HTML & "<" & "/TR><" & "/TBODY><" & "/TABLE>"
TR.innerHTML=HTML
End Sub
Sub sort1(select_head)
Const lightblue="#add8e6"
Const lightpink="#ffb6c1"
Dim head
Select Case LCase(select_head.bgColor)
Case lightpink
TDC.Sort="-" & select_head.innerText
select_head.bgColor=lightblue
Case lightblue
TDC.Sort=""
select_head.bgColor=""
Case Else
For Each head In th
If head.innerText=Mid(TDC.Sort,2) Then head.bgColor=""
Next
TDC.Sort="+" & select_head.innerText
select_head.bgColor=lightpink
End Select
TDC.Reset
End Sub
Sub filter()
TDC.Filter = filtercondition.value
TDC.Reset
End Sub
Sub filter2(select_head)
If window.event.ctrlKey Then
filtercondition.value=filtercondition.value & select_head.innerText
Else
Call sort1(select_head)
End If
End Sub
Sub keypress()
If window.event.keyCode=13 Then Call filter()
End Sub
</SCRIPT>
</HEAD>
<BODY >
絞り込み条件:<input type="textbox" id="filtercondition" onkeypress="keypress" size=100>
<input type="button" value="絞り込み" onclick="filter">
<BR>
= >= > < <= <> ( & | ) * 例) 名前=*.txt<br>
カラム名をCTRLキー+クリックすると、カラム名を絞り込み条件に挿入します。<br>
カラム名をクリックすると、そのカラムの<span style='background:lightpink;'>昇順</span>、<span style='background:lightblue;'>降順</span>でソートします。<br>
<DIV ID="TR"></DIV>
</BODY>
</HTML>
![]() |
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team