17881.html

来自「VB技巧问答10000例 VB技巧问答10000例」· HTML 代码 · 共 23 行

HTML
23
字号
<html>  <head>    <title>Re: 请问如何把文字档的资料存入资料库中呢???</title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>Re: 请问如何把文字档的资料存入资料库中呢???</h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:weisili@mailcity.com">weisili</a> on August 25, 1999 at 19:03:32:<p>In Reply to: <a href="17810.html">Re: 请问如何把文字档的资料存入资料库中呢???</a> posted by sharon on August 24, 1999 at 21:29:48:<p>sorry have to type in english. It depends on how the data was stored in text file. Normally, some reserved spaces were assigned to each field, u can then asked ur prog to read the text within a certain range. Let's say in the first line (the first record), the length (0 - 10) is the index, length 11 - 50 is name field, and so on. So, write a do loop to ask ur program to read from the first line (input #Filenum, fields(0), fields(1), fields(2),....) until the end of the text file. This is only one of the ways. Perhaps, there's better solution. Good luck.<p><br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 17881--></ul><!--end: 17881--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?