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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

structkeyexists with nested objects

Status
Not open for further replies.

ice78991

Programmer
Nov 20, 2006
216
I want to test session.mystruct.var1

I have been using isDefined('session.mystruct.var1') which works fine

I was wondering though can this work with structKeyExists

I have found that structKeyExists(session.mystruct,'var1') is not accurately assessing the existence of this variable. So is it a genereal rule, isDefined(..) should be used with nested objects?
 
Thanks for the link, however I'm still a little unsure as to what I should be using in this case
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top