Click here to Skip to main content
16,020,253 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: File Not Found Exception Pin
Luc Pattyn8-Sep-10 11:41
sitebuilderLuc Pattyn8-Sep-10 11:41 
GeneralRe: File Not Found Exception Pin
eddieangel8-Sep-10 14:21
eddieangel8-Sep-10 14:21 
GeneralRe: File Not Found Exception Pin
Luc Pattyn8-Sep-10 14:47
sitebuilderLuc Pattyn8-Sep-10 14:47 
GeneralRe: File Not Found Exception Pin
eddieangel9-Sep-10 8:09
eddieangel9-Sep-10 8:09 
GeneralRe: File Not Found Exception Pin
Luc Pattyn9-Sep-10 10:46
sitebuilderLuc Pattyn9-Sep-10 10:46 
GeneralRe: File Not Found Exception Pin
Dave Kreskowiak8-Sep-10 18:07
mveDave Kreskowiak8-Sep-10 18:07 
GeneralRe: File Not Found Exception Pin
eddieangel9-Sep-10 7:18
eddieangel9-Sep-10 7:18 
QuestionHow to align decimal value while writing to text file in vb.net Pin
Andraw Tang8-Sep-10 3:15
Andraw Tang8-Sep-10 3:15 
Hi, dear all

I need to create a text file with each control at a line, in this line, it include control value, control name and description, the output should be as the following:

False Print - XXXXXXXXXXXXXXXXXXXXXXXXXX
2 Contrl 1 - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
3.6 Control 2 - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
23.8 Control 3 - XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0.005 Control 4 - XXXXXXXXXXXXXXXXXXXXXX

The problem is align the column 1, how can I align the decimal point at same position at each line, and prefix the heading as space? and the heading space number is changed according the value?

For example, for contrl 1 and control 2, the heading space is 3, but for control 3, it's 2.

I use something like:
value = Format(Contrl1, " 0")
Writer.WriteLine(value.PadRight(ValueFieldLen) & _
"Contrl 1".PadRight(ContrlFieldLen) & _
"- XXXXXXXXXXXXXXXXXXXXXXXXXX")
value = Format(Contrl3, " 0.0")
Writer.WriteLine(value.PadRight(ValueFieldLen) & _
"Control 3".PadRight(ContrlFieldLen) & _
"- XXXXXXXXXXXXXXXXXXXXXXXXXX")

In this way, the prefix spacing is fixed, this isnot I want.

Thanks!
AnswerRe: How to align decimal value while writing to text file in vb.net Pin
Dave Kreskowiak8-Sep-10 3:43
mveDave Kreskowiak8-Sep-10 3:43 
AnswerRe: How to align decimal value while writing to text file in vb.net Pin
Eddy Vluggen8-Sep-10 7:10
professionalEddy Vluggen8-Sep-10 7:10 
GeneralRe: How to align decimal value while writing to text file in vb.net Pin
Andraw Tang9-Sep-10 3:04
Andraw Tang9-Sep-10 3:04 
Questionevent of timer in VB6 Pin
jainiraj8-Sep-10 1:53
jainiraj8-Sep-10 1:53 
AnswerRe: event of timer in VB6 Pin
Dave Kreskowiak8-Sep-10 3:31
mveDave Kreskowiak8-Sep-10 3:31 
JokeRe: event of timer in VB6 Pin
Tom Deketelaere8-Sep-10 4:24
professionalTom Deketelaere8-Sep-10 4:24 
GeneralRe: event of timer in VB6 Pin
dan!sh 8-Sep-10 7:33
professional dan!sh 8-Sep-10 7:33 
GeneralRe: event of timer in VB6 Pin
Dave Kreskowiak8-Sep-10 10:04
mveDave Kreskowiak8-Sep-10 10:04 
Questionthreading in VB6.. Pin
jainiraj7-Sep-10 22:57
jainiraj7-Sep-10 22:57 
AnswerRe: threading in VB6.. Pin
Dave Kreskowiak8-Sep-10 3:25
mveDave Kreskowiak8-Sep-10 3:25 
AnswerRe: threading in VB6.. Pin
Eddy Vluggen8-Sep-10 7:05
professionalEddy Vluggen8-Sep-10 7:05 
Questionhow to pass a two dimensional dynamic array in a function Pin
jainiraj7-Sep-10 4:36
jainiraj7-Sep-10 4:36 
AnswerRe: how to pass a two dimensional dynamic array in a function Pin
DaveAuld7-Sep-10 4:41
professionalDaveAuld7-Sep-10 4:41 
GeneralRe: how to pass a two dimensional dynamic array in a function Pin
jainiraj7-Sep-10 4:46
jainiraj7-Sep-10 4:46 
GeneralRe: how to pass a two dimensional dynamic array in a function Pin
DaveAuld7-Sep-10 5:11
professionalDaveAuld7-Sep-10 5:11 
GeneralRe: how to pass a two dimensional dynamic array in a function Pin
jainiraj7-Sep-10 22:53
jainiraj7-Sep-10 22:53 
QuestionHOW TO SET Crystal Sub report Paper source Pin
Anoop Brijmohun7-Sep-10 0:50
Anoop Brijmohun7-Sep-10 0:50 

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.