¦p¦ó¥i¥H§ì¨ìÀɮתº³Ì«á¤@µ§¸ê®Æ?
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
¦p¦ó¥i¥H§ì¨ìÀɮתº³Ì«á¤@µ§¸ê®Æ?
§Ú·Q¨ú±o³Ì«á¤@µ§¸ê®Æªº Record Number, §ä¹M¤FMSDN ¤Wªº¦³Ãö BOTTOM ªº¸ê°T,¦ý¬O没§ä¨ì,²{¦b¥u¦n¥Î¤gªkÁå¿ûªº¤èªk¦p¤U©Ò¥Ü:
Dim tmp As String
Dim inx As Integer
Dim inf_sr As StreamReader = New StreamReader(inf)
Do While inf_sr.Peek() >= 0
inx += 1
tmp = inf_sr.ReadLine()
Loop
inf_sr.Close()
§Únª¾¹D inx ªºÈ,¦U¦ì¤j¤j¦³没¦³¤Hª¾¹D§ó¶i¨Bªº¤èªk?
|
|
V98
|
|
|
|
|
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
ÁÂÁ¦³¥Î,¤]Åý§Ú§ä¨ì¤F¤@ÓCrystal Report ªº½×¾Â. |
|
V98
|
|
|
|
|
- ©«¤l
- 62
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 253
- ÂI¦W
- 0
- §@·~¨t²Î
- xp , win7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¤H¤ß
- µù¥U®É¶¡
- 2010-5-21
- ³Ì«áµn¿ý
- 2012-8-3
|
¥»©«³Ì«á¥Ñ ·t¶Â ©ó 2011-1-6 17:10 ½s¿è
datatable ¬O¸ê®Æªí... »¡¬ï¤F ¤]¬O¤@Ó°}¦C
dtattable ªº¦n³B¬O ¦³«Ü¦hªº«ü¥O... ¯ÊÂI..¦û°O»õÊ^¸û¤j , ¥B txt ¸ê®Æ¨Ã«D¬O ¼Ð·Ç¸ê®Æ®w®æ¦¡¡A»ÝÂà¸ê®Æ
txt ÀÉ®×Âন datatable ¤è¦¡¦p¤U
¥H¤U¬O¤Í¯¸´£¨Ñªº¸ê®Æ¤ù¬q- Dim ansFile As FileInfo
- For Each ansFile In New DirectoryInfo(answerPath).GetFiles("*.txt")
- Dim dr As DataRow = dtAnswer.NewRow
- dr("no") = ansFile.Name
- dr("ans") = ReadCount(ansFile.FullName)
- dtAnswer.Rows.Add(dr)
- Next
-
- '¾Ç¥Í¦¨ÁZ
- Dim dt As DataTable = New DataTable
- dt.Columns.Add(New DataColumn("no", Type.GetType("System.String"))) '¾Ç¸¹
- dt.Columns.Add(New DataColumn("right", Type.GetType("System.Int32"))) 'µª¹ï
- dt.Columns.Add(New DataColumn("wrong", Type.GetType("System.Int32"))) 'µª¿ù
- dt.Columns.Add(New DataColumn("score", Type.GetType("System.Int32"))) '±o¤À
½Æ»s¥N½X http://www.blueshop.com.tw/board/FUM20050124191756KKC/BRD200612150034214VL.html |
|
¬O¾Çµ{¦¡¦Ó¤£¬Onµ{¦¡¡A¬O¶i¨Bªº°ò¦
|
|
|
|
|
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
¥»©«³Ì«á¥Ñ linshin1999 ©ó 2011-1-6 16:44 ½s¿è
¥i¬Oªºì©l¸ê®Æ¬O".txt"ÀÉ,¥Ø«eÁÙ¤£ª¾¹D¦pÂà´«¦¨datatable, ©Ò¥H´Nª½±µ©ñ¶i°}¦C¨Ó³B²z, ·t¶Â¥S¦p§Aª¾¹D¥i±Ð§Ú©I,·|«Ü·PÁ§A? |
|
V98
|
|
|
|
|
- ©«¤l
- 62
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 253
- ÂI¦W
- 0
- §@·~¨t²Î
- xp , win7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¤H¤ß
- µù¥U®É¶¡
- 2010-5-21
- ³Ì«áµn¿ý
- 2012-8-3
|
¨º§A³]©w¤@Ó datatable §a |
|
¬O¾Çµ{¦¡¦Ó¤£¬Onµ{¦¡¡A¬O¶i¨Bªº°ò¦
|
|
|
|
|
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
·t¶Â¥S:³o¼Ë¬O¿z¿ï¤£¬Oª½±µÅª¨ú,¥i¯àªº¤è¦¡¬O,±NÀɮשñ¶i°}¤¤©yª½±µ¯Á¤Þ«ü©w,¤Ï¥¿²{¦bªº°O¾ÐÅé³£«Ü¤j. |
|
V98
|
|
|
|
|
- ©«¤l
- 62
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 253
- ÂI¦W
- 0
- §@·~¨t²Î
- xp , win7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¤H¤ß
- µù¥U®É¶¡
- 2010-5-21
- ³Ì«áµn¿ý
- 2012-8-3
|
¥ô¤@µ§³á..
dim XoX as long = 99 '¥ô¤@µ§
SELECT CASE IA
CASE XoX
Dim ¤é´Á As String = Mid(Data, 1, 8)
Dim ®É¶¡ As String = Mid(Data, 9, 6)
CASE ELSE
Dim ¤é´Á As String = Mid(Data, 1, 8)
Dim ®É¶¡ As String = Mid(Data, 9, 6)
END SELECT |
|
¬O¾Çµ{¦¡¦Ó¤£¬Onµ{¦¡¡A¬O¶i¨Bªº°ò¦
|
|
|
|
|
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
·t¶Â¤j¤j,³o¹Lµ{·|¤@µ§¤@µ§ªºÅª,¦pªG§ÚªºÀɮצ³1000µ§,µM«ánÀH¾÷Ū¨ú1000µ§¤ºªº¥ô¤@µ§¸ê®Æ,n¦p¦ó¼g? |
|
V98
|
|
|
|
|
- ©«¤l
- 62
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 253
- ÂI¦W
- 0
- §@·~¨t²Î
- xp , win7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¤H¤ß
- µù¥U®É¶¡
- 2010-5-21
- ³Ì«áµn¿ý
- 2012-8-3
|
Dim TextStr As New System.IO.StreamReader(FileTxt, System.Text.Encoding.Default)
Dim Ia As Long = 0
Do While TextStr.Peek > -1
Dim Data As String = TextStr.ReadLine
Ia +=1
SELECT CASE IA
CASE 1
Dim ¤é´Á As String = Mid(Data, 1, 8)
Dim ®É¶¡ As String = Mid(Data, 9, 6)
CASE ELSE
Dim ¤é´Á As String = Mid(Data, 1, 8)
Dim ®É¶¡ As String = Mid(Data, 9, 6)
END SELECT
Loop
§Úªº¥Îªk ... §A°Ñ¦Ò¬Ý¬Ý.. |
|
¬O¾Çµ{¦¡¦Ó¤£¬Onµ{¦¡¡A¬O¶i¨Bªº°ò¦
|
|
|
|
|
- ©«¤l
- 199
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 252
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7 (X64)
- ³nÅ骩¥»
- office 2010 (x64)
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2010-12-24
- ³Ì«áµn¿ý
- 2020-3-31
|
¨º´N¬O³o¼Ë¤l¤F,·t¶Â¤j¤j¦b VB ªº¯Á¤ÞÀɦp¦ó¾Þ§@? ¥H«e§Ú¬O³o¼Ë¼gªº:
OPEN FILENAME FOR RANDOM AS #8 LEN = 15
CLOSE #8 |
|
V98
|
|
|
|
|