<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial FAMILY=SANSSERIF><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Natalie,</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I would expect that the error you get
should show you the script line that contains the variable that is not defined.  
The variable will likely exist in either an Inline object you created or in the
‘User Script’ area.   It is common to get this error if
you have either not declared a variable, or perhaps misspelled one instance of
a variable that you did declare.   For example</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Dim myVariable As String</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>myVariable = “Hello”</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>mVariable = “Hello”  ‘
mVariable is undeclared</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>If it is the case that you need to declare
a variable then you need to use the Dim statement as shown above.  
If you only need the variable’s value to exist within one invocation of a
procedure you can declare the variable within an Inline object that you drop on
the procedure.   If you need to variable to maintain it’s value
over multiple procedure calls or over the life of the entire experiment then
you need to declare it ‘globally’ by putting your Dim statement for
the variable on the User tab of the Script window (i.e. which is there specifically
to allow you to define global variables, constants and entire
subroutines/functions that can be accessed from anywhere else in your
experiment).</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>To show the Script window choose
View|Script from the E-Studio menubar.   Once the window is shown
click on the User tab at the bottom and you can type directly into the
window.   Note that the other tab is labeled ‘Full’ and
it allows you to see the full/complete script that E-Studio generated from your
graphical specification of the experiment when you hit the Generate or Run
button (the ‘Full’ script tab is read-only since E-Studio rewrites
the full script every time you generate or run the experiment).</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hope that helps.</span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Tony</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> </span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>*** DISCLAIMER: ALL VIEWS
EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF PSYCHOLOGY
SOFTWARE TOOLS *** </span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Anthony P. Zuccolotto</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Vice President</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Psychology Software Tools,
Inc.</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
  style='font-size:10.0pt;font-family:"Courier New"'>2050 Ardmore Boulevard</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
  style='font-size:10.0pt;font-family:"Courier New"'>Suite</span></font><font
 size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>
 200</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
  style='font-size:10.0pt;font-family:"Courier New"'>Pittsburgh</span></font><font
 size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,
 </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;
  font-family:"Courier New"'>PA</span></font><font size=2 face="Courier New"><span
 style='font-size:10.0pt;font-family:"Courier New"'> </span></font><font
  size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>15221-4610</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Phone    
412-271-5040</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>FAX      
412-271-7077</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Email    
anthony.zuccolotto@pstnet.com</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Internet  <a
href="http://www.pstnet.com/">http://www.pstnet.com</a></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Drtweets19@cs.com
[mailto:Drtweets19@cs.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Friday, August
 01, 2003</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span
 style='font-size:10.0pt;font-family:Tahoma'>11:33 AM</span></font><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> eprime@mail.talkbank.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> variable definition help</span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hey everyone, First i would like to thank all of you for
your help thus far.  <br>
<br>
We have one question.<br>
<br>
We constantly get the error that states "Variable not defined"<br>
Basic question, how do u define variables.  We've tried every compilation
we could think of and we get the same result; Variable not defined.<br>
<br>
Please help<br>
<br>
Thanx,<br>
<br>
Natalie</span></font></p>

</div>

</div>

</body>

</html>