Transcript questions
Ken Ray
kray at sonsothunder.com
Fri Feb 8 15:27:01 EST 2002
Devin,
The "getProp" control stucture is tremendously useful; it allows you to trap
whenever a custom property has been set, and take action based on that.
Suppse you wanted to take action based on the value of essentialData? For
example, you wanted to run a handler called "DoIt" whenever essentialData
was set with a value of "Hello". This is where 'getProp' is very useful:
getProp essentialData pPropValue
if pPropValue = "Hello" then
DoIt
end if
pass essentialData -- so the value of essentialData can be updated
end essentialData
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
----- Original Message -----
From: "Devin Asay" <devin_asay at byu.edu>
To: <use-revolution at lists.runrev.com>
Sent: Friday, February 08, 2002 12:39 PM
Subject: Transcript questions
> 1. getProp control structure - Other than for implementing virtual
> properties, why would this structure ever be used? I don't need to
> use it to access custom properties; I only have to refer to the
> custom property in a statement:
>
> put the essentialData of group "myGroup" into mydata
>
> Using a getProp structure seems like an unnecessary complication.
>
> 2. The open file command has an optional _for_ form (open file for
> update | read | write | append.) I think I understand what each
> form does, but what is the default? If I simply use "open file
> <filename>" does it open "for update" by default?
> --
> Devin Asay
> Humanities Research Center
> Brigham Young University
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list