FaceSpan Popups
FaceSpan Popups
- Subject: FaceSpan Popups
- From: Roderick Scott Corporation <email@hidden>
- Date: Mon, 30 Apr 2001 15:26:39 -0600
I'm trying to get popup menus to work properly within FaceSpan and
figure I may have come across a bug or at the very least an
ideosyncracy. I want to store the textual value of the popup into a
storage item. Unfortunately, there is no direct way so I first tried
to capture the selection index and got nasty results.
set intTemp to item 1 (of selection of popup "popThePopup")
This gives an error even if I rewrite it to "copy" syntax. It does
work if I split this into two lines.
Once I get the index, I can get the list of values then select the
item and finally get the text. Something like the following.
set lstSelection to selection of popup "popPageSize"
set intIndex to item 1 of lstSelection
set lstPopValues to contents of popup "popPageSize"
set storage item "strPageDimensions" to (item intIndex of lstPopValues)
I also found some other problems with regards to FaceSpan's storage
items. With the list of integers supplied by the selection i.e. {3}.
I cannot directly access the storage item as a list, I must first
assign it to a temporary variable then access the list.
Am I missing something or is this just a wart and live with it?
Thanks
S.
PS. Thanks to all that answered my previous question regarding
telling applications using a variable! The information was most
helpful.
________________________________________
Scott Sandeman-Allen
Roderick Scott Corporation
Edmonton, Alberta. Canada