Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » API

Post new topic   Reply to topic
Is there API?
View previous topic :: View next topic  
Author Message
kic3r
Newbie


Joined: 08 Nov 2005
Posts: 16

PostPosted: Nov 11th, 2005 04:10 AM    Post subject: Is there API? Reply with quote

Is there an API function that atuomatically determines if a text file is delimited or not Question mark
Back to top
View user's profile Send private message Yahoo Messenger
P.T.A.M.
Administrator


Joined: 08 Oct 2003
Posts: 752
Location: Greece

PostPosted: Nov 12th, 2005 05:12 AM    Post subject: Reply with quote

What is a delimited text file? Blush
_________________
No one is completely useless. They can at least be an example of what to avoid.
Back to top
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
kic3r
Newbie


Joined: 08 Nov 2005
Posts: 16

PostPosted: Nov 14th, 2005 07:42 PM    Post subject: Reply with quote

it's used mainly for importing/linking text files for database or excel files. a delimited text file is a text file wherein the data or fields is separated from each other by a common character which is called the delimiting character. the other type is the fixed-width wherein the fields are arranged in exaclty the same width just like what you would see in a typical table. there is a text import wizard in access and excel. just try and import an external data and search for a text file and you'll see what I mean... Smile
Back to top
View user's profile Send private message Yahoo Messenger
DoobieKeebler
Moderator


Joined: 17 Jun 2005
Posts: 254
Location: 181°15'2.003"W, 93°5'16.956"N

PostPosted: Nov 15th, 2005 11:23 AM    Post subject: Reply with quote

In short, no, but then, really, is this reply, well, comma delimited, or isn't it? To the best of my knowledge you just have to import and hope for the best. You can see if the expected delimiting character is there, or see if the file is evenly divisible by {record size}, but those aren't foolproof. Too many fools out there.
_________________
Always take into account what a user would never ever in a million years do, because someone will.

"In theory, there's no difference between theory and practice. In practice, there is." -- Yogi Berra
Back to top
View user's profile Send private message
kic3r
Newbie


Joined: 08 Nov 2005
Posts: 16

PostPosted: Nov 15th, 2005 07:26 PM    Post subject: Reply with quote

yup, it's comma delimited alright... Too many fools indeed... well, what i did was search for the character in the first line of the text file, if it's there then it is delimited and not if not found...i was really hoping there was an api for this, but thanx anyway...
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » API All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic