Welcome Guest Search | Active Topics | Sign In | Register

Dim [date] as String, syntax explanation please Options
PhilK
Posted: Monday, August 5, 2013 6:46:04 AM
Rank: Member
Groups: Member

Joined: 8/9/2012
Posts: 11
Hi

I have just started to use the Calendar Schedule object and am mystified by the syntax use for a date string.

I see in the example code several uses of a variable between square braces.
Eg.
Dim [date] as String
or
Notes(EO.Web.Calendar.StringToDate([date])) = note

Can any one help with an explanation of the reason for, or effect of enclosing an identifier between square braces ?

Regards Phil K
eo_support
Posted: Monday, August 5, 2013 9:23:57 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

That tells the compiler to interpret it as a variable, even though it has the same spelling as a keyword.

Thanks!
PhilK
Posted: Monday, August 5, 2013 9:27:27 AM
Rank: Member
Groups: Member

Joined: 8/9/2012
Posts: 11
Thank you.Applause

I failed to find that anywhere via Google search.

Phil


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.