Without trying to sound patronising, it sounds like the field has had
editable set to false, can you see the text cursor in the field when you
click on it? Can you select the text by any other method, e.g. by using
shift with the cursors?
-Original Message-
From: Michael von Aichberger
Hi list
A minor conundrum is at hand. I'm building a simple form and one question
consists of a number of checkboxes, each one with its own unique numeric
value. They are checkboxes because the user can select any number of them.
When the form is submitted I want to total up the values returned
I use a simpler, sloppier technique:
global someglobal
someglobal = 0
sendallsprites #GetCheckboxValues, myCheckboxGroupID
and in the sprites:
on GetCheckboxValues me, groupID
global someglobal
if groupID = pThisGroupID and someglobal then someglobal =
someglobal + pMyValue
end
[To
Hey all -- trying to do the old school 'see quitscreen before exiting' thing
in 2004. I've got exitlock to true, and am only showing the closebutton on
the titlebar; I've got a main movie handler of 'on closewindow' but it
doesn't seem to be getting called; when exitlock is true the closebutton
Try the old pass a list reference trick
-- calling routine
resultList = [ 0 ]
sendAllSprites(#GetCheckboxValues, myCheckboxGroupID, resultList)
put resultList[1]
-- inside the checkbox behaviour
property pThisGroupID -- unique ID for this checkbox group
property pSelected -- boolean for checked
The problem is though is that the return value for, say, checkbox #2 will
overwrite the value of checkbox #1 before i can collate all results to total
them up, and given my post-injury fatigue my brain has gone dead on how to
get around it lol.
You could try passing a list around:
-- calling
You can use a list (untested, but the idea is right):
someList = []
sendallsprites(#GetCheckboxValues, myCheckboxGroupID, someList)
nItems = count(someList)
and in the sprites:
on GetCheckboxValues me, groupID, aList
if groupID = pThisGroupID and someglobal then
append(aList,
Cheers Rob and Cole
Just after sending the e-mail the thought of using a list did pop into my
head, although I wasn't sure in what capacity. Thanks a bunch - you saved me
a job lol
Cheers!
Ross
[To remove yourself from this list, or to change to digest mode, go to
I use a simpler, sloppier technique:
global someglobal
someGlobal?! Time for bath, you! ;)
But if you're collaborating with another programmer who happens to be
fond of the name someGlobal you could play it safe by preserving
and restoring it's contents before and after using it.
--
Cole
[To
At 1:08 PM -0400 8/24/04, Cole Tierney wrote:
I use a simpler, sloppier technique:
global someglobal
someGlobal?! Time for bath, you! ;)
But if you're collaborating with another programmer who happens to
be fond of the name someGlobal you could play it safe by
preserving and restoring it's
Is there a built-in way to do time arithmetic like you do date
arithmetic?
I can get the number of days between two dates with something like
date(, mm, dd) - date (, mm, dd) (thanks to those who provided
that info last week). Now I'm looking for a way to get the number of
minutes,
Why not subtract the second and the day, then add the seconds to the days *
86400?
-Chuck
--
Chuck Neal
CEO, MediaMacros, Inc.
[EMAIL PROTECTED]
http://www.mediamacros.com
--
Check out the Developers Mall
Your one stop shop for all your Director
MOD is your friend
At 2:05 PM -0400 8/24/04, you wrote:
Is there a built-in way to do time arithmetic like you do date
arithmetic?
I can get the number of days between two dates with something like
date(, mm, dd) - date (, mm, dd) (thanks to those who provided
that info last week).
At 04:35 a.m. 25/08/2004, you wrote:
Hey all -- trying to do the old school 'see quitscreen before exiting' thing
in 2004. I've got exitlock to true, and am only showing the closebutton on
the titlebar; I've got a main movie handler of 'on closewindow' but it
doesn't seem to be getting called;
MOD is your friend
And so is dateObject.seconds and framesToHMS()
At 2:05 PM -0400 8/24/04, you wrote:
Is there a built-in way to do time arithmetic like you do date
arithmetic?
I can get the number of days between two dates with something like
date(, mm, dd) - date (, mm, dd)
15 matches
Mail list logo