Reply to post: Re: Ah, VB ... "variants"

Good thing this dev quit. I'd have fired him. Out of a cannon. Into the sun

I'm Brian and so's my wife

Re: Ah, VB ... "variants"

No - never, never use CDate() since it'll happily wave through Yank dates.

Also, IsNumeric() will allow through 123,,445,,6,5,4

I ended up writing helper functions that employed regex to ensure that the values matched.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon