terminate current list

David McFarlane mcfarla9 at msu.edu
Tue Nov 5 15:53:38 UTC 2013


Also covered at https://groups.google.com/d/topic/e-prime/D1Zdx9DVB6M 
, where this gets reduced to the single line

     CList( Rte.GetObject( c.GetAttrib("Running") ) ).Terminate

-- David McFarlane


At 11/5/2013 10:19 AM Tuesday, Paul Groot wrote:
>I think I grabbed this from the E_Basic manual some time ago:
>
>Dim theList As List
>Set theList = CList(Rte.GetObject(c.GetAttrib("Running")))
>If Not theList Is Nothing Then
>theList.Terminate
>End If
>
>Paul
>
>
>On 4 November 2013 22:32, 
><mailto:Eric at ericwalden.net>Eric at ericwalden.net 
><<mailto:Eric at ericwalden.net>Eric at ericwalden.net> wrote:
>I am trying to figure out how to terminate the currently running 
>list on a certain key press.  I can get the currently running list 
>with c.GetAttribute("Running").  I can use the list name as a 
>variable in the list as [Running].  What I need is code that 
>basically does this:
>
>if DsiplayProductInfoSlide.ACC = 1 then c.GetAttribute("Running").terminate
>
>however, c.GetAttribute("Running") is the string name of the running 
>list not the running list itself.
>
>If I run if DsiplayProductInfoSlide.ACC = 1 then List1.terminates
>
>then it works fine.  However, I have many lists and I need it to 
>automatically terminate the current one.

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52791485.0286320a.2f9c.3363SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/groups/opt_out.



More information about the Eprime mailing list