Click here to Skip to main content
15,885,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: system date format Pin
pathak785-Apr-08 2:42
pathak785-Apr-08 2:42 
GeneralRe: system date format Pin
darkelv5-Apr-08 6:29
darkelv5-Apr-08 6:29 
GeneralRe: system date format Pin
Mycroft Holmes5-Apr-08 17:35
professionalMycroft Holmes5-Apr-08 17:35 
GeneralUsing csv files Pin
Haim Nachum5-Apr-08 2:07
Haim Nachum5-Apr-08 2:07 
GeneralRe: Using csv files Pin
Rajesh Anuhya5-Apr-08 2:19
professionalRajesh Anuhya5-Apr-08 2:19 
GeneralRe: Using csv files Pin
Haim Nachum5-Apr-08 6:18
Haim Nachum5-Apr-08 6:18 
GeneralRe: Using csv files Pin
Dave Kreskowiak5-Apr-08 13:56
mveDave Kreskowiak5-Apr-08 13:56 
GeneralRe: Using csv files Pin
Luc Pattyn5-Apr-08 14:25
sitebuilderLuc Pattyn5-Apr-08 14:25 
Hi,

1.
open the file and see if you can read it; you might use File.ReadAllLines for this.
most formats (e.g. UTF8) have some byte codes in front to indicate what encoding they are
using (look with a hex editor for 0xFF 0xFE or 0xFE 0xFF), so the system has a good chance
of reading them correctly by default.

2.
if you expect no comma's in fields and you find a comma, then comma is the delimiter.
same for tabs.
if you expect both to be possible, then you need two passes:
in the first pass, count comma's and tabs; the most popular will be the delimiter.
in the second pass, process the data.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralSending ascii extended characters via serial port [modified] Pin
keninfo5-Apr-08 0:06
keninfo5-Apr-08 0:06 
AnswerRe: Sending ascii extended characters via serial port Pin
Rajesh Anuhya5-Apr-08 1:01
professionalRajesh Anuhya5-Apr-08 1:01 
GeneralRe: Sending ascii extended characters via serial port Pin
keninfo5-Apr-08 1:12
keninfo5-Apr-08 1:12 
GeneralRe: Sending ascii extended characters via serial port Pin
Rajesh Anuhya5-Apr-08 1:15
professionalRajesh Anuhya5-Apr-08 1:15 
GeneralRe: Sending ascii extended characters via serial port Pin
keninfo5-Apr-08 1:20
keninfo5-Apr-08 1:20 
GeneralRe: Sending ascii extended characters via serial port Pin
Rajesh Anuhya5-Apr-08 1:28
professionalRajesh Anuhya5-Apr-08 1:28 
GeneralRe: Sending ascii extended characters via serial port Pin
keninfo5-Apr-08 1:34
keninfo5-Apr-08 1:34 
GeneralRe: Sending ascii extended characters via serial port Pin
Rajesh Anuhya5-Apr-08 1:36
professionalRajesh Anuhya5-Apr-08 1:36 
GeneralRe: Sending ascii extended characters via serial port Pin
Dave Kreskowiak5-Apr-08 13:46
mveDave Kreskowiak5-Apr-08 13:46 
GeneralRe: Sending ascii extended characters via serial port Pin
Luc Pattyn5-Apr-08 14:28
sitebuilderLuc Pattyn5-Apr-08 14:28 
GeneralCreate Folder Pin
Socheat.Net4-Apr-08 23:48
Socheat.Net4-Apr-08 23:48 
QuestionRe: Create Folder Pin
Rajesh Anuhya5-Apr-08 1:03
professionalRajesh Anuhya5-Apr-08 1:03 
GeneralRe: Create Folder Pin
Dave Kreskowiak5-Apr-08 13:45
mveDave Kreskowiak5-Apr-08 13:45 
QuestionMicrosoft.DirectX.Direct3DX Pin
Joy Anne4-Apr-08 21:54
Joy Anne4-Apr-08 21:54 
GeneralRe: Microsoft.DirectX.Direct3DX Pin
Dave Kreskowiak5-Apr-08 13:43
mveDave Kreskowiak5-Apr-08 13:43 
GeneralUnable to show data in datagridview Pin
hisuman1004-Apr-08 20:21
hisuman1004-Apr-08 20:21 
GeneralRe: Unable to show data in datagridview Pin
Rupesh Kumar Swami4-Apr-08 20:53
Rupesh Kumar Swami4-Apr-08 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.