Click here to Skip to main content
16,005,389 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: startup form Pin
Xmen Real 12-Oct-06 20:57
professional Xmen Real 12-Oct-06 20:57 
AnswerRe: startup form Pin
shriveni13-Oct-06 0:02
shriveni13-Oct-06 0:02 
GeneralRe: startup form Pin
Xmen Real 13-Oct-06 4:03
professional Xmen Real 13-Oct-06 4:03 
Questionreloading a datagrid from a dataset. [modified] Pin
steve_rm11-Oct-06 22:06
steve_rm11-Oct-06 22:06 
QuestionExport Data to Excel Sheet(Please..urgent) Pin
ravimorampudi11-Oct-06 20:28
ravimorampudi11-Oct-06 20:28 
Questionlogin form concept Pin
deepakkp11-Oct-06 19:42
deepakkp11-Oct-06 19:42 
AnswerRe: login form concept Pin
Dave Sexton11-Oct-06 21:18
Dave Sexton11-Oct-06 21:18 
QuestionQuestion about CSV file [modified] Pin
TeiUKei11-Oct-06 18:22
TeiUKei11-Oct-06 18:22 
I gt a line of data which i intend to display in CSV file as below,
"A12435625" "b" "b2" "c44566"
"A12435625" "b" "b2" "c44566"

however with my coding, it only displayed as

"A12435625" "b" "b2" "c44566" "A12435625" "b" "b2" "c44566"

What is my mistake and how to display my desire answer? Below is my coding, pls kindly help!

FileOpen(2, sFilename, OpenMode.Output)

For b = 0 To CreatePP.Counter - 1

For a = 0 To 4
c = CStr(CreatePP.Data(a))

If c.Length <= 1 Then
c = c.PadRight(2, CChar(" "))
ElseIf c.Length <= 2 Then
c = c.PadRight(3, CChar(" "))
ElseIf c.Length > 2 And c.Length <= 4 Then
c = c.PadRight(5, CChar(" "))
ElseIf c.Length > 4 And c.Length <= 6 Then
c = c.PadRight(7, CChar(" "))
ElseIf c.Length > 6 And c.Length <= 11 Then
c = c.PadRight(12, CChar(" "))
End If

Write(2, c)

Next a

Next b

FileClose(2)


-- modified at 0:27 Thursday 12th October, 2006
AnswerRe: Question about CSV file Pin
Dave Sexton11-Oct-06 21:01
Dave Sexton11-Oct-06 21:01 
GeneralRe: Question about CSV file Pin
TeiUKei11-Oct-06 21:51
TeiUKei11-Oct-06 21:51 
GeneralRe: Question about CSV file Pin
Dave Kreskowiak12-Oct-06 3:07
mveDave Kreskowiak12-Oct-06 3:07 
GeneralRe: Question about CSV file Pin
TeiUKei12-Oct-06 14:17
TeiUKei12-Oct-06 14:17 
GeneralRe: Question about CSV file Pin
Dave Kreskowiak12-Oct-06 16:04
mveDave Kreskowiak12-Oct-06 16:04 
GeneralRe: Question about CSV file Pin
TeiUKei12-Oct-06 16:35
TeiUKei12-Oct-06 16:35 
GeneralRe: Question about CSV file Pin
Dave Kreskowiak13-Oct-06 1:54
mveDave Kreskowiak13-Oct-06 1:54 
GeneralRe: Question about CSV file Pin
TeiUKei14-Oct-06 14:47
TeiUKei14-Oct-06 14:47 
GeneralRe: Question about CSV file Pin
Dave Kreskowiak15-Oct-06 3:39
mveDave Kreskowiak15-Oct-06 3:39 
Questioncystal reports deployment using typed datasets Pin
steve_rm11-Oct-06 18:04
steve_rm11-Oct-06 18:04 
AnswerRe: error on store procedure link to vb Pin
Dave Kreskowiak12-Oct-06 3:06
mveDave Kreskowiak12-Oct-06 3:06 
QuestionWhich is better? Pin
UltraCoder11-Oct-06 14:06
UltraCoder11-Oct-06 14:06 
AnswerRe: Which is better? Pin
Ray Cassick11-Oct-06 18:22
Ray Cassick11-Oct-06 18:22 
GeneralRe: Which is better? Pin
UltraCoder11-Oct-06 18:51
UltraCoder11-Oct-06 18:51 
QuestionChanging The Screensaver Through The Registry Pin
UltraCoder11-Oct-06 14:01
UltraCoder11-Oct-06 14:01 
AnswerRe: Changing The Screensaver Through The Registry Pin
Dave Kreskowiak12-Oct-06 1:50
mveDave Kreskowiak12-Oct-06 1:50 
GeneralRe: Changing The Screensaver Through The Registry Pin
UltraCoder12-Oct-06 7:51
UltraCoder12-Oct-06 7:51 

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.