Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Using Fields Object with GetChunk

Question:
What is the fields object of the GetChunk method? I am trying to access a large (several meg) flat fixed record (160 ascii bytes per record) database and I thought the only way is the GetChunk method but I don't know what the fields object is or how to specify it.

Answer:
Typically, the GetChunk method is used on the Fields object like this:

String = Fields(1).GetChunk

The Fields object is just all the different fields on a particular table. If the table you opened was named Customer, you would do like this:

String = Customer.Fields(1).GetChunk

The 1 (one) is the field number. You can also specify fields by name.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date