Click here to Skip to main content
15,896,201 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: dynamically populate the hashtable Pin
Dave Kreskowiak17-Jul-07 13:58
mveDave Kreskowiak17-Jul-07 13:58 
QuestionLabel Control Text Drifts Pin
T-Tops16-Jul-07 6:49
T-Tops16-Jul-07 6:49 
AnswerRe: Label Control Text Drifts Pin
Dave Kreskowiak16-Jul-07 7:06
mveDave Kreskowiak16-Jul-07 7:06 
AnswerRe: Label Control Text Drifts Pin
Luc Pattyn16-Jul-07 7:07
sitebuilderLuc Pattyn16-Jul-07 7:07 
QuestionMaking datetime field null, SQL Pin
aqzman_16-Jul-07 6:44
aqzman_16-Jul-07 6:44 
AnswerRe: Making datetime field null, SQL Pin
Dave Kreskowiak16-Jul-07 7:03
mveDave Kreskowiak16-Jul-07 7:03 
GeneralRe: Making datetime field null, SQL Pin
aqzman_16-Jul-07 7:31
aqzman_16-Jul-07 7:31 
GeneralRe: Making datetime field null, SQL [modified] Pin
Dave Kreskowiak16-Jul-07 7:39
mveDave Kreskowiak16-Jul-07 7:39 
aqzman_ wrote:
I've actually tried the As New Nullable(Of DateTime) code before, but there's a problem with that in other parts of my code. One part is where I use a '+' symbol it says "Operator '+' is not defined for types 'System.Nullable(Of Date)'" and it also causes an error on my SQL insert statement which is "Operator '&' is not defined for types 'String' and 'System.Nullable(Of Date)'."


That's because you have to get the value out of the Nullable type before you can use it.
Dim myDate As Nullable(Of DateTime)
myDate = New Date(2007, 7, 7)

' myDate.Value returns a Date object, IF there is a value...
If myDate.HasValue Then
    Debug.WriteLine("DATE: " & myDate.Value.ToShortDateString())
Else
    Debug.WriteLine("DATE: Nothing")
End If




-- modified at 13:46 Monday 16th July, 2007

A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Making datetime field null, SQL Pin
aqzman_16-Jul-07 7:58
aqzman_16-Jul-07 7:58 
QuestionHard time finding good articles, need help Pin
Cory Kimble16-Jul-07 6:01
Cory Kimble16-Jul-07 6:01 
AnswerRe: Hard time finding good articles, need help Pin
Paul Conrad16-Jul-07 8:23
professionalPaul Conrad16-Jul-07 8:23 
GeneralRe: Hard time finding good articles, need help Pin
Cory Kimble16-Jul-07 9:56
Cory Kimble16-Jul-07 9:56 
GeneralRe: Hard time finding good articles, need help Pin
Paul Conrad16-Jul-07 10:09
professionalPaul Conrad16-Jul-07 10:09 
QuestionHow to get info from a file when it is being used by another process? Pin
Vivek Narayanan16-Jul-07 5:47
Vivek Narayanan16-Jul-07 5:47 
AnswerRe: How to get info from a file when it is being used by another process? Pin
Luc Pattyn16-Jul-07 6:49
sitebuilderLuc Pattyn16-Jul-07 6:49 
GeneralRe: How to get info from a file when it is being used by another process? Pin
Vivek Narayanan17-Jul-07 0:14
Vivek Narayanan17-Jul-07 0:14 
AnswerRe: How to get info from a file when it is being used by another process? Pin
Dave Kreskowiak16-Jul-07 6:55
mveDave Kreskowiak16-Jul-07 6:55 
QuestionIterate through child treenodes Pin
penguin500016-Jul-07 5:45
penguin500016-Jul-07 5:45 
AnswerRe: Iterate through child treenodes Pin
MidwestLimey16-Jul-07 7:21
professionalMidwestLimey16-Jul-07 7:21 
QuestionPDF/CHM Conversion Pin
phyrrix16-Jul-07 5:33
phyrrix16-Jul-07 5:33 
AnswerRe: PDF/CHM Conversion Pin
Nick Rioux16-Jul-07 6:15
Nick Rioux16-Jul-07 6:15 
Questione.graphics.fillpath Pin
Tom Deketelaere16-Jul-07 5:00
professionalTom Deketelaere16-Jul-07 5:00 
AnswerRe: e.graphics.fillpath Pin
Luc Pattyn16-Jul-07 5:17
sitebuilderLuc Pattyn16-Jul-07 5:17 
GeneralRe: e.graphics.fillpath Pin
Tom Deketelaere16-Jul-07 5:27
professionalTom Deketelaere16-Jul-07 5:27 
GeneralRe: e.graphics.fillpath Pin
Luc Pattyn16-Jul-07 5:31
sitebuilderLuc Pattyn16-Jul-07 5:31 

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.