Click here to Skip to main content
15,899,023 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCrystal Report: Load Multiple Report Pin
C#Coudou19-Oct-09 20:17
C#Coudou19-Oct-09 20:17 
AnswerRe: Crystal Report: Load Multiple Report Pin
_Damian S_19-Oct-09 20:32
professional_Damian S_19-Oct-09 20:32 
GeneralRe: Crystal Report: Load Multiple Report Pin
C#Coudou19-Oct-09 20:58
C#Coudou19-Oct-09 20:58 
GeneralRe: Crystal Report: Load Multiple Report Pin
C#Coudou20-Oct-09 16:32
C#Coudou20-Oct-09 16:32 
Question[Solved] Extract Data From A Webpage [modified] Pin
quadrilateral19-Oct-09 17:43
quadrilateral19-Oct-09 17:43 
AnswerRe: Extract Data From A Webpage Pin
Eddy Vluggen20-Oct-09 7:04
professionalEddy Vluggen20-Oct-09 7:04 
GeneralRe: Extract Data From A Webpage Pin
quadrilateral20-Oct-09 8:13
quadrilateral20-Oct-09 8:13 
QuestionmyDataColumn.Expression="Convert(total, 'System.Int32')" does not work Pin
Curtbroo19-Oct-09 9:32
Curtbroo19-Oct-09 9:32 
Hi Everyone,

Here is an interesting problem. I am trying to add an expression column to a dataset that already contains data. The expression involves coverting the string data in a specific column into numeric data.

The MS help system says I should use the following example to perform this operation: myDataColumn.Expression="Convert(total, 'System.Int32')"

In having incorporated this into my code, I get the following error:
"Input string was not in a correct format."

Here is the actual code:

Dim tmpCol As New DataColumn<br />
            tmpCol.DataType = System.Type.GetType("System.Single")<br />
            tmpCol.AllowDBNull = False<br />
            tmpCol.Caption = "nResult"<br />
            tmpCol.ColumnName = "nResult"<br />
            tmpCol.DefaultValue = 0.0<br />
            tmpCol.Expression = "Convert(Item01, 'System.Single')"<br />
<br />
            tmpDS.Tables(0).Columns.Add(tmpCol)


I have tried several different ways of using the Convert function, but nothing I've tried works.

Has anyone else had experiences with using the Convert function that might help???

Thanks,

cb

Additional Info:
1. The column, Item01, in the tmpDS dataset is a varchar field that contains only numeric data.
2. The tmpDS dataset is obtained from an XML data file.
AnswerRe: myDataColumn.Expression="Convert(total, 'System.Int32')" does not work Pin
Christian Graus19-Oct-09 10:20
protectorChristian Graus19-Oct-09 10:20 
GeneralRe: myDataColumn.Expression="Convert(total, 'System.Int32')" does not work Pin
Curtbroo19-Oct-09 13:59
Curtbroo19-Oct-09 13:59 
GeneralRe: myDataColumn.Expression="Convert(total, 'System.Int32')" does not work Pin
Christian Graus19-Oct-09 14:17
protectorChristian Graus19-Oct-09 14:17 
GeneralRe: myDataColumn.Expression="Convert(total, 'System.Int32')" does not work Pin
Curtbroo20-Oct-09 5:31
Curtbroo20-Oct-09 5:31 
QuestionVS crashes when accessing the solution property screens. Sigh! Pin
Jon_Boy19-Oct-09 8:10
Jon_Boy19-Oct-09 8:10 
AnswerRe: VS crashes when accessing the solution property screens. Sigh! Pin
Dave Kreskowiak19-Oct-09 8:22
mveDave Kreskowiak19-Oct-09 8:22 
GeneralRe: VS crashes when accessing the solution property screens. Sigh! Pin
Jon_Boy19-Oct-09 8:53
Jon_Boy19-Oct-09 8:53 
QuestionGAC Pin
RyJaBy19-Oct-09 7:56
RyJaBy19-Oct-09 7:56 
AnswerRe: GAC Pin
Luc Pattyn19-Oct-09 8:06
sitebuilderLuc Pattyn19-Oct-09 8:06 
GeneralRe: GAC Pin
RyJaBy20-Oct-09 4:09
RyJaBy20-Oct-09 4:09 
QuestionAttach/Detach SQL Server database ! Pin
jeshra27919-Oct-09 4:31
jeshra27919-Oct-09 4:31 
AnswerRe: Attach/Detach SQL Server database ! Pin
Russ-T19-Oct-09 4:42
Russ-T19-Oct-09 4:42 
GeneralRe: Attach/Detach SQL Server database ! Pin
jeshra27919-Oct-09 5:19
jeshra27919-Oct-09 5:19 
GeneralRe: Attach/Detach SQL Server database ! Pin
Russ-T19-Oct-09 13:46
Russ-T19-Oct-09 13:46 
QuestionProblem in ConnectionString Pin
vijay248219-Oct-09 3:14
vijay248219-Oct-09 3:14 
AnswerRe: Problem in ConnectionString Pin
Kschuler19-Oct-09 4:32
Kschuler19-Oct-09 4:32 
GeneralRe: Problem in ConnectionString Pin
vijay248219-Oct-09 4:39
vijay248219-Oct-09 4:39 

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.