Arrays was Documentation and Books
Marian Petrides
mpetrides at earthlink.net
Wed Jul 7 17:46:15 EDT 2004
Mark
Is the str a necessary part of the variable name, or am I correct in
thinking that even if you don't specifically say it is a string, Rev
will assume it is?
I.e. can I just as easily
put "Sunday" into dayOfWeek[1] etc
or
> put "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday" into
> dayOfWeek
>
> split dayOfWeek by comma
>
> answer dayOfWeek[3] && dayOfWeek[7]
Thanks.
M
On Jul 7, 2004, at 5:33 PM, Mark Brownell wrote:
>> put "Sunday" into strDayOfWeek[1]
>> put "Monday" into strDayOfWeek[2]
>> put "Tuesday" into strDayOfWeek[3]
>> put "Wednesday" into strDayOfWeek[4]
>> put "Thursday" into strDayOfWeek[5]
>> put "Friday" into strDayOfWeek[6]
>> put "Saturday" into strDayOfWeek[7]
>
> or:
>
> put "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday" into
> strDayOfWeek
>
> split strDayOfWeek by comma
>
> answer strDayOfWeek[3] && strDayOfWeek[7]
More information about the use-livecode
mailing list