Programming is a bit of Accumulation

Source: Internet
Author: User
Today, we mainly fix these days of writing. Code In this process, we find that the accumulation of bit by bit is very important, and it is a big problem to steal a bit of laziness. It is hard to find it when it is repaired. I found some problems only when processing data at the data layer. I have never been familiar with the difference between record and recordset. I think it is good today. It turns out that this is a good thing. When I listened to the broadcast in the morning, I said that many white-haired old people could not make new ID cards. In the past, when taking photos, the background must be white, and many people's hair should be blue, it seems that the software has finished developing functions, but when it comes to the application environment, the problem is big.

Continuous improvement is the best programming process.

A piece of code Excerpted from the Internet is saved first

1 Sub openrecord () Sub Openrecord ()
2 Dim Record As   New ADODB. Record
3
4 Call Record. Open ( "" , " Url = http: // localhost/ " , Adopenifexists Or Adcreatecollection)
5
6 Dim Recordset As   New ADODB. recordset
7 Set Recordset = Record. getchildren
8
9 While   Not Recordset. EOF
10 Debug. Print Recordset ( 0 )
11 Recordset. movenext
12 Wend
13 End sub
14
15 Sub openstream () Sub Openstream ()
16
17 Dim Record As   New ADODB. Record
18 Call Record. Open ( " Text.txt " , " Url = http: // localhost/access/ " , Admoderead)
19
20 Dim Stream As   New ADODB. Stream
21 Call Stream. Open (record, admoderead, adopenstreamfromrecord)
22
23 Dim Text As   String
24 Stream. charset =   " ASCII"
25 Text = Stream. readtext (adreadall)
26
27 Debug. Print
28
29 End sub
30

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.