bert,
<br/><br/>thanks. &nbsp;I heard something ding when I dragged it, but nothing happened. &nbsp;I couldn’t find the item on the menus.
<br/><br/>Sincerely,
<br/><br/>Joe.
<br/><br/><div class='shrinkable-quote'><br/>&gt; On Apr 20, 2016, at 10:53 AM, Bert Freudenberg [via Smalltalk] &lt;<a href="/user/SendEmail.jtp?type=node&node=4891050&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br/>&gt; 
<br/>&gt; 
<br/>&gt; &gt; On 20.04.2016, at 17:19, Joseph Alotta &lt;[hidden email]&gt; wrote: 
<br/>&gt; &gt; 
<br/>&gt; &gt; Greetings, 
<br/>&gt; &gt; 
<br/>&gt; &gt; My code has some complex parts and I think it would be good to pull parts of it out and practice with it in a workspace window. 
<br/>&gt; &gt; 
<br/>&gt; &gt; For example, I have an Array of Transaction objects, that is a instance variable. &nbsp;It is mostly populated from reading a file. 
<br/>&gt; &gt; 
<br/>&gt; &gt; What would be the best method to extract this array? 
<br/>&gt; &gt; 
<br/>&gt; &gt; Assign it to a global variable?
<br/>&gt; That’s one way to do it. 
<br/>&gt; 
<br/>&gt; You can also drag that instance variable from the inspector to the workspace, which will create a variable reference. 
<br/>&gt; 
<br/>&gt; In the latest trunk image this should work seamlessly: If you drop an Array, the workspace variable will be named something like “array12345” and be bound to that Array. 
<br/>&gt; 
<br/>&gt; In the stable release image, you have to first enable the workspace’s “accept dropped morphs” flag from its menu button. It will create a variable named “transfer12345” and put the morph in it. You will have to refer to the Array as “transfer12345 passenger”. 
<br/>&gt; 
<br/>&gt; - Bert - 
<br/>&gt; 
<br/>&gt; 
<br/>&gt; 
<br/>&gt; 
<br/>&gt; _______________________________________________ 
<br/>&gt; Beginners mailing list 
<br/>&gt; [hidden email] 
<br/>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>&gt; 
<br/>&gt; &nbsp;smime.p7s (5K) Download Attachment
<br/>&gt; 
<br/>&gt; 
<br/>&gt; If you reply to this email, your message will be added to the discussion below:
<br/>&gt; <a href="http://forum.world.st/debugging-by-using-a-global-variable-tp4891014p4891032.html" target="_top" rel="nofollow" link="external">http://forum.world.st/debugging-by-using-a-global-variable-tp4891014p4891032.html</a><br/>&gt; To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&node=4891050&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> 
<br/>&gt; To unsubscribe from Squeak - Beginners, click here.
<br/>&gt; NAML
</div><br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/debugging-by-using-a-global-variable-tp4891014p4891050.html">Re: debugging by using a global variable?</a><br/>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at Nabble.com.<br/>