Advertisement

02.05.2008 at 09:22AM PST, ID: 23138661 | Points: 500
[x]
Attachment Details

Question about passing data from cursor to data environment

Asked by bradbritton in FoxPro Database, ERP Software

Tags: microsoft, Visual Fox Pro, 9

I use the following code below to try and pass data from a cursor in the VFP Data Environment to be used in a report. When I do this, no data shows in the cursor named item_desc. item_desc1 is the cursor in the .prg file that I use to hold the data for the report. I have done a BROWSE on this cursor before trying to pass data to item_desc, and the data that I need sits in there. Also, I am trying to do this in the Made2Manage ERP system. The M2MSelect statement is used to query data from the SQL server and Foxpro tables contained in the report. Any help would be great!

Thanks,

BradStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
*** USED TO FILL CURSOR item_desc WITH PART DESCRIPTIONS ***
M2MSelect('SELECT RPJOTS.fpartno, inmast.fdescript ' + ;
	'FROM RPJOTS, M2MDATA!INMAST ' + ;
	'WHERE rpjots.fpartno = inmast.fpartno ' + ;
	'INTO CURSOR item_desc1',SET('DATASESSION'),,'')
	
	SELECT item_desc1
 
INDEX ON (fpartno) TAG ALL
Browse
 
INSERT INTO ITEM_DESC VALUES ;
SELCT * FROM ITEM_DESC1
[+][-]02.05.2008 at 09:48AM PST, ID: 20825109

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 10:10AM PST, ID: 20825260

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.05.2008 at 10:46AM PST, ID: 20825568

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.22.2008 at 03:43PM PST, ID: 20962786

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628