Array Question

2009-08-09 Thread Len Morgan
Can you use a variable name as the index of an array?  It doesn't appear 
so or I'm doing something wrong.  Here's what I'm trying:


put 1 into tasks[Search]
put 2 into tasks[Reports]

then in a menuPick handler:

on menuPick pChoice
   goto cd tasks[pChoice]
end menuPick

I need to do this because I have more cards than I have menu choices and 
they are intermixed with the real ones and I don't want the user to go 
directly to these hidden cards.


Am I going to have to resort to a do command?  I tried that quickly 
but it just gave me an error.


len morgan
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array Question

2009-08-09 Thread Phil Davis

Len Morgan wrote:
Can you use a variable name as the index of an array?  It doesn't 
appear so or I'm doing something wrong.  Here's what I'm trying:


put 1 into tasks[Search]
put 2 into tasks[Reports]

then in a menuPick handler:

on menuPick pChoice
   goto cd tasks[pChoice]
end menuPick


Hi Len,
If your actual script contains goto and not go to, that could be 
your problem.


--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array Question

2009-08-09 Thread J. Landman Gay

Len Morgan wrote:
Can you use a variable name as the index of an array?  It doesn't appear 
so or I'm doing something wrong.  Here's what I'm trying:


put 1 into tasks[Search]
put 2 into tasks[Reports]

then in a menuPick handler:

on menuPick pChoice
   goto cd tasks[pChoice]
end menuPick

I need to do this because I have more cards than I have menu choices and 
they are intermixed with the real ones and I don't want the user to go 
directly to these hidden cards.


Variables will work. Besides the goto issue, where are you filling the 
array? If it's in the same script as the menupick handler then it needs 
to be declared as a script local variable at the top of the script:


  local tasks -- allows all handlers in this script to access it

  on fillArray
put 1 into tasks[Search]
put 2 into tasks[Reports]
  end fillArray

  on menuPick pChoice
if the keys of tasks =  then fillArray
go to cd tasks[pChoice]
  end menuPick

Otherwise it won't be shared among the script handlers. If you are 
filling the tasks array in a different script, then you either need to 
make it a global variable or store it in a custom property (or property 
set) which you load into the tasks variable when you need it. In other 
words, there must be some way for all handlers to get access to the 
tasks variable. When it is only referenced within a handler, the 
variable will be set to empty when the handler begins and deleted when 
the handler ends.


If your stack design allows it, it's often easier to just name cards the 
same as the menu items. Since card names aren't visible to the user, you 
can call them anything, and then all you need to do is:


on menuPick pChoice
  go cd pChoice
end menuPick

It's a good idea to set the navigationArrows property to false if you 
don't want users paging through cards via the keyboard.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Array Question

2006-10-02 Thread John Miller

Good Morning All,

I am feeling rather dense this today.  I have never worked with  
arrays, and I don't seem to be able to understand how to set them up.


I have two card fields with many lines and multiple items.  I want to  
use the intersect command to find which lines have a particular item  
in common, but I can't figure out how to put each field into an array.


Can anyone offer me some guidance?

Thanks,
John Miller
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array Question

2006-10-02 Thread Eric Chatonet

Hi John,

These two functions might get you started.
They return common or uncommon LINES in two lists: you will adapt  
them ;-)


function CommonList plist1,plist2
  local tArray1,tArray2,tCommonList
  --
  put empty into tArray1
  put empty into tArray2
  -
  repeat for each line tLine in plist1
put 1 into tArray1[tLine]
  end repeat
  repeat for each line tLine in plist2
put 1 into tArray2[tLine]
  end repeat
  -
  get the keys of tArray1
  repeat for each line tLine in it
if tArray2[tLine] = 1 then
  put tLine  cr after tCommonList
end if
  end repeat
  -
  delete char -1 of tCommonList
  return tCommonList
end CommonList
---
function UnCommonList plist1,plist2
  local tArray1,tArray2,tUncommonList
  --
  put empty into tArray1
  put empty into tArray2
  -
  repeat for each line tLine in plist1
put 1 into tArray1[tLine]
  end repeat
  repeat for each line tLine in plist2
put 1 into tArray2[tLine]
  end repeat
  -
  get the keys of tArray1
  repeat for each line tLine in it
if tArray2[tLine] = 0 then
  put tLine  cr after tUncommonList
end if
  end repeat
  -
  get the keys of tArray2
  repeat for each line tLine in it
if tArray1[tLine] = 0 then
  put tLine  cr after tUncommonList
end if
  end repeat
  -
  delete char -1 of tUncommonList
  return tUncommonList
end UnCommonList

Le 2 oct. 06 à 11:30, John Miller a écrit :


Good Morning All,

I am feeling rather dense this today.  I have never worked with  
arrays, and I don't seem to be able to understand how to set them up.


I have two card fields with many lines and multiple items.  I want  
to use the intersect command to find which lines have a particular  
item in common, but I can't figure out how to put each field into  
an array.


Can anyone offer me some guidance?

Thanks,
John Miller



Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array question

2005-06-15 Thread Phil Davis

Hi Charles -

A simple way, yielding approximate distances:

You could first develop a grid that represents the entire geographic 
area containing the schools. For simplicity, maybe each block in the 
grid would represent a 1-by-1-mile area. Each school has a position 
represented by a horizontal  vertical offset from some origin point - 
like the topLeft of the grid, or???  When two schools are selected, you 
could find the differences between their locations within the grid and 
that should give you approximate mileage, but only as the crow flies.



A more complex way, yielding actual distances:

This way requires that you have real info about the distances between 
all possible pairs of schools. I think you'd have about 6400 pairs, but 
my math may be off. If you do have this info, your array might be 
organized like so, with 1 element for each pair of schools:


- Schools are numbered 1 - 80

- Each key has 2 comma-separated parts, organized like this:
[fromSchoolNumber,toSchoolNumber]

- The loaded 'tDistance' array would have elements that look
  something like this:
tDistance[1,1] = 0
tDistance[1,2] = 3.5
tDistance[1,3] = 5.1
...
tDistance[80,78] = 12.9
tDistance[80,79] = 2.2
tDistance[80,80] = 0

Looking up a value could then be a simple matter. If each school's 
number corresponds to its line number in the popup lists, it could work 
like this:

  put btn 1 into tList -- all school names
  put lineOffset(label of btn 1,tList) into tSchool1Num
  put lineOffset(label of btn 2,tList) into tSchoo21Num
  put tDistance[tSchool1Num,tSchool2Num] into fld distance

Hope this helps.
Phil Davis


CHARLES W SZASZ wrote:
I am working on a stack that will have a mainstack and a substack for data. The mainstack will 
will have two popup buttons, representing schools. I want to set it up so that the can get the 
mileage going from one school (user selects a school that he is traveling from and selects 
another school that he going to) and presses the Return key or presses the default button. How 
do I code an array to give the mileage between two schools? There are about 80 schools.



Charles Szasz
Lead School Psychologist and Section 504 Coordinator
Kanawha County Schools
(304) 348-7770, Ext. 347


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array question

2005-06-15 Thread Alex Tweedly

CHARLES W SZASZ wrote:

I am working on a stack that will have a mainstack and a substack for data. The mainstack will 
will have two popup buttons, representing schools. I want to set it up so that the can get the 
mileage going from one school (user selects a school that he is traveling from and selects 
another school that he going to) and presses the Return key or presses the default button. How 
do I code an array to give the mileage between two schools? There are about 80 schools.
 

Not sure if I'm answering precisely the right question here or not - but 
here's a couple of answers.


I'm assuming that you will build the data from somewhere external (i.e. 
you aren't trying to calculate it based on ZIP code or from an address 
database). If you start with the distance info in a simple list, as in


Stanford, Harvard, 5000
Stanford, Berkeley, 50
Berkeley, Harvard, 4960
etc.


you could build an array, as in

-- for ease of use make the array twice as big as it needs to be, by 
storing both Stanford,Harvard  and also  Harvard,Stanford


 -- assuming all distances are same in both directions
  repeat for each line L in distanceList
 put item 3 of L into distArray[item 1 of L, item 2 of L] 
 put item 3 of L into distArray[item 2 of L, item 1 of L]

  end repeat

and the you could look up distances simply as, e.g.
   put distArray[choiceA, choiceB] into myVar

For only 6400 entries that would be fine - if you grew to storing large 
number of schools, you might want to encode the names (to save space), 
and you might want to store only half the array (to save space and 
marginally save look-up time)


 -- number all the schools, and store that number in array 
schoolNumber  (assumed to be done already)


 repeat for each line L in distanceList
   put schoolNumber[item 1 of L], schoolNumber[item 2 of L] into temp
   put item 3 of L into tDistance
   sort items of temp numeric
   put tDistance into distArray[temp]
end repeat

and then look up by
 put choiceA, choiceB into temp   -- or put schoolNumber[choiceA], 
schoolNumber[choiceB] into temp

 sort items of temp
 put distArray[temp] into myVar

--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.7.3/15 - Release Date: 14/06/2005

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Array question

2005-06-14 Thread CHARLES W SZASZ
I am working on a stack that will have a mainstack and a substack for data. The 
mainstack will 
will have two popup buttons, representing schools. I want to set it up so that 
the can get the 
mileage going from one school (user selects a school that he is traveling from 
and selects 
another school that he going to) and presses the Return key or presses the 
default button. How 
do I code an array to give the mileage between two schools? There are about 80 
schools.


Charles Szasz
Lead School Psychologist and Section 504 Coordinator
Kanawha County Schools
(304) 348-7770, Ext. 347


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-10-01 Thread Martin Baxter
Alex Tweedly wrote:

At 20:25 30/09/2004 -0700, Mark Brownell wrote:

What do you get for this? I'm not sure I did this right. [untested]

  repeat for each element i in x
   put i  return after tResults
   end repeat
   put tResults into field 2

I don't see anything in the documentation of element or for each
element that assures me they will be taken in the correct order.

You shouldn't rely on it. The order may be correct in some circumstances
(eg immediately after a split command and before you have modified the
array), but mostly the ordering of elements will not be numeric.

For example:

put a,b,c,d,e,f,g,h,i into tvar
split tvar by comma

Then the resulting array is like this:

[1]a
[2]b
[3]c
[4]d
[5]e
[6]f
[7]g
[8]h
[9]i

But as soon as you do:

put j into tvar[10]

The element order would then be:

[1]a
[10]j
[2]b
[3]c
[4]d
[5]e
[6]f
[7]g
[8]h
[9]i

HTH

Martin Baxter


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-10-01 Thread Mark Brownell
On Friday, October 1, 2004, at 02:48 AM, Alex Tweedly wrote:
[...]
Of course, if the problem initially posed had been slightly different, 
then these methods might have been required.   And similarly, the 
scripts from both Mark and me used cr rather than the 
lineDelimiter; an assumption NOT justified by the initial problem 
statement - but it makes no detectable difference to the time.

-- Alex.
Well said professor Alex.
Thanks for all those speed tests.
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-10-01 Thread Mark Brownell
On Friday, October 1, 2004, at 03:41 AM, Martin Baxter wrote:
But as soon as you do:
put j into tvar[10]
The element order would then be:
[1]a
[10]j
[2]b
[3]c
[4]d
[5]e
[6]f
[7]g
[8]h
[9]i
HTH
Martin Baxter
Thanks for the heads up on this.
 I've never tried using the for each element x except after having used 
the split function.

Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-10-01 Thread Jim Hurley
Thanks to all who replied.
And specifically to Alex Tweedly. In the past, I've always used this 
form. Don't know why I didn't on this occasion.

Moving on gently into dementia.
Jim
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Simple array question

2004-09-30 Thread Jim Hurley
I have an array
x[1]
x[2]
x[3]
...
etc.
I combine x by return and put into a field. But the elements of the 
array are not ordered 1, 2,3 etc.

I don't want to sort the list in the field by the values but by the 
numerical order of the keys.

I do that now by brute force:
 repeat with i = 1 to m
put x[i] into line i of tResults
 end repeat
 put tResults into field 2
But is there any quick way to get the list sorted by the keys? I have 
11,000 elements in the array.

Jim
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-09-30 Thread Mark Brownell
On Thursday, September 30, 2004, at 02:48 PM, Jim Hurley wrote:
 repeat with i = 1 to m
put x[i] into line i of tResults
 end repeat
 put tResults into field 2
But is there any quick way to get the list sorted by the keys? I have 
11,000 elements in the array.

Jim
Maybe by using a faster repeat loop and a simpler append technique.
put  into tResults
put 1 into i
repeat
put x[i]  return after tResults
if x[i] = empty then exit repeat
add 1 to i
 end repeat
 put tResults into field 2
This is not sorting, I guess.
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-09-30 Thread Frank D. Engel, Jr.
Untested, but this might work:
put the keys of x into y
sort lines of y
put empty into z
repeat with i = 1 to the number of lines in y
  put x[i]  the lineDelimiter after z
end repeat
delete the last char of z
put z into field 2
On Sep 30, 2004, at 6:50 PM, Mark Brownell wrote:
On Thursday, September 30, 2004, at 02:48 PM, Jim Hurley wrote:
 repeat with i = 1 to m
put x[i] into line i of tResults
 end repeat
 put tResults into field 2
But is there any quick way to get the list sorted by the keys? I have 
11,000 elements in the array.

Jim
Maybe by using a faster repeat loop and a simpler append technique.
put  into tResults
put 1 into i
repeat
put x[i]  return after tResults
if x[i] = empty then exit repeat
add 1 to i
 end repeat
 put tResults into field 2
This is not sorting, I guess.
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$


___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-09-30 Thread Alex Tweedly
At 15:50 30/09/2004 -0700, Mark Brownell wrote:
On Thursday, September 30, 2004, at 02:48 PM, Jim Hurley wrote:
 repeat with i = 1 to m
put x[i] into line i of tResults
 end repeat
 put tResults into field 2
takes 170 ticks for 11,000 elements on my slow machine
But is there any quick way to get the list sorted by the keys? I have 
11,000 elements in the array.

Maybe by using a faster repeat loop and a simpler append technique.
put  into tResults
put 1 into i
repeat
put x[i]  return after tResults
if x[i] = empty then exit repeat
add 1 to i
 end repeat
 put tResults into field 2
This is not sorting, I guess.
Takes 25 ticks - much better.
But there's no reason not to use a loop counter - that should be faster 
than an explicit increment and test for empty.
  repeat with i = 1 to m
put x[i]  return after tResults
  end repeat
  put tResults into field 2

takes only 15 ticks for 11,000 elements.
-- Alex.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-09-30 Thread Robert Brenstein
Untested, but this might work:
put the keys of x into y
sort lines of y
-- sort lines of y numeric
put empty into z
repeat with i = 1 to the number of lines in y
-- repeat for each line i in y
  put x[i]  the lineDelimiter after z
end repeat
delete the last char of z
put z into field 2
Robert Brenstein
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Simple array question

2004-09-30 Thread Mark Brownell
On Thursday, September 30, 2004, at 05:48 PM, Alex Tweedly wrote:
At 15:50 30/09/2004 -0700, Mark Brownell wrote:
Maybe by using a faster repeat loop and a simpler append technique.
put  into tResults
put 1 into i
repeat
put x[i]  return after tResults
if x[i] = empty then exit repeat
add 1 to i
 end repeat
 put tResults into field 2
This is not sorting, I guess.
Takes 25 ticks - much better.
But there's no reason not to use a loop counter - that should be 
faster than an explicit increment and test for empty.
  repeat with i = 1 to m
put x[i]  return after tResults
  end repeat
  put tResults into field 2

takes only 15 ticks for 11,000 elements.
-- Alex.

What do you get for this? I'm not sure I did this right. [untested]
 repeat for each element i in x
  put i  return after tResults
  end repeat
  put tResults into field 2
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Array question

2004-03-22 Thread Glen Bojsza
Hi everyone,

I have an array that uses sequential numeric keys (1, 2, 3, 4, 5, 6, 7, 
8, 9, 10 etc) and I want to create an array based on the first array 
but on a linear range that is user defined.

Example, the user wants the array from 3 through 7.

This can be done using repeat loops but can it be done using a single 
line command?

thanks,

Glen

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array question

2004-03-22 Thread Mark Brownell
On Monday, March 22, 2004, at 02:04  PM, Glen Bojsza wrote:

Example, the user wants the array from 3 through 7.

This can be done using repeat loops but can it be done using a single 
line command?

thanks,

Glen
You could create a function that does it for you, that could get the 
data in 3 through 7 of your larger array and package it just the way 
you need it when the function returns it.

Warning: untested handler

Example:
put getSpotAtoSpotB(myArray, 3, 7) into rackOfData1
function getSpotAtoSpotB tArray startSpot endSpot
   put  into zap
   repeat with i = startSpot to endSpot
  put tArray[i]  , after zap
   end repeat
   return zap
end getSpotAtoSpotB
So this way you can add the functionality you need to your own code. 
You can have one line return four items of a middle section of an array.

I can't remember if you have to use the actual array as a global 
instead of passing it as a property of the function. If that is the 
case then just declare the array a global and use it instead of tArray 
with function getSpotAtoSpotB startSpot endSpot.

Mark

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array question again.

2004-02-11 Thread Ray Bennett
Hi Kevin,
Delayed because of lack of time and jetlag.  In Santiago, Chile just 
now.  Will return on Friday.

I'd recommend you test it to see.  I don't know what else to advise.  
My gut tells me that it'll work as you suspect without you having to 
garbage collect yourself, but I can imagine scenarios in which it 
wouldn't.

Sorry.
Ray
On Tuesday, February 10, 2004, at 10:33 AM, Kevin wrote:



My question is regarding the underpinnings more than anything else.  
If I put empty into a[0] is a[0,1] a[0,2] ... also garb rage collected 
or must I set each individual element equal to empty to ensure 
collection?



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Array question again.

2004-02-10 Thread Kevin


My question is regarding the underpinnings more than anything else.  If I put empty 
into a[0] is a[0,1] a[0,2] ... also garb rage collected or must I set each individual 
element equal to empty to ensure collection?



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array question again.

2004-02-10 Thread Jan Schenkel
--- Kevin [EMAIL PROTECTED] wrote:
 
 
 My question is regarding the underpinnings more than
 anything else.  If I put empty into a[0] is a[0,1]
 a[0,2] ... also garb rage collected or must I set
 each individual element equal to empty to ensure
 collection?
 

Hi Kevin,

You'll have to clear out the individual elements ; if
you want to ensure garbage collection, use the
'delete' command instead of 'put empty into'
Example :
--
  delete local tLocalArray[0,1]
  global gGlobalArray
  delete global gGlobalArray[5,6]
--

Hope this helped,

Jan Schenkel.

=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array question again.

2004-02-10 Thread Jan Schenkel
--- Kevin [EMAIL PROTECTED] wrote:
 
 
 Can anyone point me to a document discussing the
 underpinnings of the Transcript interpreter?  Maybe
 it is just me but I am unable to locate this
 information in the help included with the product. 
 In fact many advanced topics are missing.
 
 Topics I am looking for: 
 
 Memory Management
 Force garbage collection 
 Marking for collection 
 Collection algorithms
 
 What threading type is used
 token
 indirect
 direct
 
 API's related to multithreading and/or
 multiprocessing
 mutex
 semaphores
 etc.
 
 Kevin
 

Kevin,

With Revolution you don't have to worry about garbage
collection ; temporary variables are released at the
end of the handler in which you use them,
script-locals and global variables stay until you
'delete' them or quit.

Revolution doesn't have a multi-threading architecture
in the traditional sense : you can 'send message to
object in time' and those messages are then
scheduled into a queue and handled at idle time as
soon as possible after their trigger time.

Some commands (the socket commands in particular) can
be used with a 'callback' parameter, allowing your
application to handle other events while you're
waiting for the command to complete ; once completed,
the engine will call your callback handler so you can
act consequently.

For more information regarding 'send', I recommend Dar
Scott's excellent primer on message mechanics, which
you can find at the following location :
http://www.swcp.com/dsc/revstacks.html

Hope this helped,

Jan Schenkel.

=
As we grow older, we grow both wiser and more foolish at the same time.  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Array question again.

2004-02-10 Thread Geoff Canyon
delete variable a

That clears the entire variable.

regards,

Geoff Canyon
[EMAIL PROTECTED]
On Feb 10, 2004, at 7:33 AM, Kevin wrote:



My question is regarding the underpinnings more than anything else.  
If I put empty into a[0] is a[0,1] a[0,2] ... also garb rage collected 
or must I set each individual element equal to empty to ensure 
collection?



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Silly Array Question

2003-03-07 Thread Feasey, Nicholas
My..my.  It just as simple as that?
All the other elements in the array will adjust their position in the array?

N

-Original Message-
From: Monte Goulding [mailto:[EMAIL PROTECTED] 
Sent: 6-Mar-03 6:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Silly Array Question


delete variable myArray[whatever]

Cheers

Monte

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Feasey,
 Nicholas
 Sent: Friday, 7 March 2003 9:31 AM
 To: '[EMAIL PROTECTED]'
 Subject: Silly Array Question
 
 
 Ok, I admit it, I'm not getting it.
 
 I have no problem deleting an item (line) from a list but now I'm 
 trying to
 delete an item from an array.
 
 I have looked through the online documentation and, for some 
 reason, I'm not
 grasping which the command used to delete an array element?
 
 Any assistance, as per usual, is greatly appreciated.
 
 N
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Silly Array Question

2003-03-07 Thread Alex Rice
On Friday, March 7, 2003, at 10:56  AM, Feasey, Nicholas wrote:

My..my.  It just as simple as that?
All the other elements in the array will adjust their position in the 
array?
I probably shouldn't answer this since I'm somewhat of a newbie, but I 
think arrays in Rev are really hashes or shelves. So when you do delete 
variable something[x] you are telling the array to drop the key named x 
and it's value.

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Silly Array Question

2003-03-07 Thread Feasey, Nicholas
Yeah, that's what I thought as well.
I'm only trying to delete an element in an array.
In text fields it is a snap to delete a line.

N

-Original Message-
From: Alex Rice [mailto:[EMAIL PROTECTED] 
Sent: 7-Mar-03 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Silly Array Question



On Friday, March 7, 2003, at 10:56  AM, Feasey, Nicholas wrote:

 My..my.  It just as simple as that?
 All the other elements in the array will adjust their position in the 
 array?

I probably shouldn't answer this since I'm somewhat of a newbie, but I 
think arrays in Rev are really hashes or shelves. So when you do delete 
variable something[x] you are telling the array to drop the key named x 
and it's value.

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Silly Array Question

2003-03-06 Thread Feasey, Nicholas
Ok, I admit it, I'm not getting it.

I have no problem deleting an item (line) from a list but now I'm trying to
delete an item from an array.

I have looked through the online documentation and, for some reason, I'm not
grasping which the command used to delete an array element?

Any assistance, as per usual, is greatly appreciated.

N

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Silly Array Question

2003-03-06 Thread Monte Goulding
delete variable myArray[whatever]

Cheers

Monte

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Feasey,
 Nicholas
 Sent: Friday, 7 March 2003 9:31 AM
 To: '[EMAIL PROTECTED]'
 Subject: Silly Array Question
 
 
 Ok, I admit it, I'm not getting it.
 
 I have no problem deleting an item (line) from a list but now I'm 
 trying to
 delete an item from an array.
 
 I have looked through the online documentation and, for some 
 reason, I'm not
 grasping which the command used to delete an array element?
 
 Any assistance, as per usual, is greatly appreciated.
 
 N
 
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution