Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

??Forcing the argument had to be a Date object or string Object

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to write a function, with a parameter 'd' for example, however, I want to check this entry must be Date object or string object "only" - other ones are all wrong.
 
I really don't get what you mean. But for interests sake, if you have created an object using the new operator, and a constructor - you can find out the name of the condstructor used from the object.constructor property.

But really - you are athe one using the function, and sending the arguments - so you make sure you have the right objects don't you? As I said, I don't quite understand ;)
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top