Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with read

Status
Not open for further replies.

FoxStudent

Technical User
Feb 24, 2000
85
GB
I am incounting problmes with a read in my do while loop of a current project. I am receiving the messaage 'variable not found' and when suspended the read is highlighted. I have never had this problem before in fox pro csn you assist. The offensive command read is highlighted in red.<br>Thank you from<br>Fox Student<br>e-mail: <A HREF="mailto:ge@pctechnology.fsnet.co.uk">ge@pctechnology.fsnet.co.uk</A><br><br>do while m-&gt;spartcod &lt;&gt; 9999<br> use parts<br> *Prompt + enter the part code<br> store 0 to m-&gt;spartcod<br> @m-&gt;row,11 get m-&gt;spartcod picture &quot;9999&quot;<br> <font color=red>read</font><br> wait window 'This is after the read'<br> store &quot;&quot; to m-&gt;response<br> *Repeat the following loop until the user enters a valid part code or<br> *selects a part from a complex part search<br> do while m-&gt;spartcod = 0<br> *Ask the user if they want to perform a complex part search<br> define window concomp from 20,16 to 23,63 title 'Would you like to perform a complex search?'<br> activate window concomp<br> @1,7 get m-&gt;response picture '@*h Yes;No'<br> read<br> release window concomp<br> close data<br> if m-&gt;response = &quot;Yes&quot;<br> set directory to (progpath)<br> do compsear &&Execute perform complex part search<br> *The part code of the record that was selected in the<br> *complex part search is displayed on the form<br> @m-&gt;row,11 get m-&gt;spartcod picture &quot;9999&quot;<br> clear gets<br> else<br> *Prompt + enter the part code again<br> @m-&gt;row,11 get m-&gt;spartcod picture &quot;9999&quot;<br> endif<br> enddo<br><br>
 
If the program starts as you have shown here, you havent defined m-&gt;row. That must be the variable not found.
 
Based on the first 5 lines of your program, the variable <FONT FACE=monospace>row</font> is not defined. <p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top