IsDate Error

  • Thread starter Thread starter EP
  • Start date Start date
E

EP

I just upgraded a V 6.0 app. to .Net. I keep getting an
error from a simple IsDate statement. Basically checking
to see if the value of a variable(vValue = "A2957") is a
date example - If IsDate(vValue)=False then The error
message is

"A first chance exception of type 'System.FormatException'
occurred in mscorlib.dll

Additional information: The string was not recognized as a
valid DateTime. There is a unknown word starting at index
0."

Anyone seen this and know a way around it.
 
EP said:
I just upgraded a V 6.0 app. to .Net. I keep getting an
error from a simple IsDate statement. Basically checking
to see if the value of a variable(vValue = "A2957") is a
date example - If IsDate(vValue)=False then The error
message is

"A first chance exception of type 'System.FormatException'
occurred in mscorlib.dll

Additional information: The string was not recognized as a
valid DateTime. There is a unknown word starting at index
0."

The code 'MsgBox(IsDate("A2957"))' returns 'False' on a .NET 1.1 machine.
 
Hi EP, Herfried.

The code 'MsgBox(IsDate("A2957"))' returns 'False'

on <Herfried's> .NET 1.1 machine.

and also on my .NET Framework 1.0.

I suspect that something foul is afoot but have not a clue.

Regards,
Fergus
 
Back
Top