Click here to Skip to main content
15,918,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionUser based Tabs Format..., Pin
Member 387988121-Oct-07 18:57
Member 387988121-Oct-07 18:57 
AnswerRe: User based Tabs Format..., Pin
Tom Deketelaere21-Oct-07 22:20
professionalTom Deketelaere21-Oct-07 22:20 
GeneralRe: User based Tabs Format..., Pin
Member 387988122-Oct-07 17:40
Member 387988122-Oct-07 17:40 
GeneralRe: User based Tabs Format..., Pin
Tom Deketelaere22-Oct-07 22:24
professionalTom Deketelaere22-Oct-07 22:24 
Questionbeginner here. Pin
bjk8821-Oct-07 13:11
bjk8821-Oct-07 13:11 
AnswerRe: beginner here. Pin
Colin Angus Mackay21-Oct-07 13:23
Colin Angus Mackay21-Oct-07 13:23 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 13:28
bjk8821-Oct-07 13:28 
GeneralRe: beginner here. Pin
Colin Angus Mackay21-Oct-07 13:33
Colin Angus Mackay21-Oct-07 13:33 
bjk88 wrote:
Dim fmtStr As String = "{0, -15}{1, 10:N0}{2, 8:N1}{3, 8:N2}{4, 8:N3}{5, 8:N4}{6, 20:N5}(7, 20:C}{8, 8:P0}"
Dim team As String
Dim played, won, drawn, lost, points, aveA, aveI, perc As Integer

lstbox.Items.Add(String.Format(fmtStr, "Team", "Played", "Won", "Drawn", "Lost", "Points", "AveAttendance", "AveIncome", "%Won"))


If I'm interpreting the format strings correctly, then it is expecting that some of the arguments being passed to the Format method to be numeric. All the arguments are strings. Did you mean to pass strings? Or did you mean to pass the variables with similar (capitalisation differences) names?


Upcoming FREE developer events:
* Glasgow: SQL Server Managed Objects AND Reporting Services ...

My website

GeneralRe: beginner here. Pin
bjk8821-Oct-07 13:42
bjk8821-Oct-07 13:42 
GeneralRe: beginner here. Pin
Colin Angus Mackay21-Oct-07 13:50
Colin Angus Mackay21-Oct-07 13:50 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 13:58
bjk8821-Oct-07 13:58 
AnswerRe: beginner here. Pin
Guffa21-Oct-07 22:35
Guffa21-Oct-07 22:35 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 22:48
bjk8821-Oct-07 22:48 
GeneralRe: beginner here. Pin
Guffa21-Oct-07 23:01
Guffa21-Oct-07 23:01 
GeneralRe: beginner here. Pin
bjk8821-Oct-07 23:12
bjk8821-Oct-07 23:12 
GeneralRe: beginner here. Pin
Guffa21-Oct-07 23:48
Guffa21-Oct-07 23:48 
GeneralRe: beginner here. Pin
bjk8822-Oct-07 0:04
bjk8822-Oct-07 0:04 
AnswerRe: beginner here. Pin
Guffa22-Oct-07 0:11
Guffa22-Oct-07 0:11 
GeneralRe: beginner here. Pin
bjk8822-Oct-07 0:22
bjk8822-Oct-07 0:22 
GeneralRe: beginner here. Pin
bjk8822-Oct-07 0:44
bjk8822-Oct-07 0:44 
AnswerRe: beginner here. Pin
Guffa22-Oct-07 1:59
Guffa22-Oct-07 1:59 
Questionqube rotation Pin
bapu288921-Oct-07 7:43
bapu288921-Oct-07 7:43 
AnswerRe: qube rotation Pin
Guffa21-Oct-07 10:00
Guffa21-Oct-07 10:00 
AnswerRe: qube rotation Pin
Christian Graus21-Oct-07 12:05
protectorChristian Graus21-Oct-07 12:05 
QuestionVB Text to WAV, Text to Speech, Voice recognition Pin
Robert from Florida21-Oct-07 3:42
Robert from Florida21-Oct-07 3:42 

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.