G
Guest
Hi all
I’ve written a function which has Date arguments. The function is not
working as it should. My best guess here is that this is because the function
is fed its arguments from unbound text boxes. I assume that VB is not
interpreting the text boxes as Dates, even though they are being fed into
Date type arguments. With all due respect, it seems that VB is a bit dense
when it comes to implicit casting.
How do I explicitly cast the text box values to the Date type? I have tried
Date([Text Box]), however VB seems to find this expression a little
confusing. The Help index does not know the word ‘cast’.
Any help, as ever, most gratefully received.
Oh, out of interest, what is the data type of text typed into a text box? I
assume ‘String’?
Thanks again
David
I’ve written a function which has Date arguments. The function is not
working as it should. My best guess here is that this is because the function
is fed its arguments from unbound text boxes. I assume that VB is not
interpreting the text boxes as Dates, even though they are being fed into
Date type arguments. With all due respect, it seems that VB is a bit dense
when it comes to implicit casting.
How do I explicitly cast the text box values to the Date type? I have tried
Date([Text Box]), however VB seems to find this expression a little
confusing. The Help index does not know the word ‘cast’.
Any help, as ever, most gratefully received.
Oh, out of interest, what is the data type of text typed into a text box? I
assume ‘String’?
Thanks again
David