Aaron247
Technical User
- Apr 28, 2015
- 1
Hi i am relativly new to this,
However i am trying to find the best way to export a certain piece of data from my program.
I have managed to get the code to show me the total of what i would need. However i now need to try and pull this to screen as an FRX which will also ask me for a specific date when running.
Does anyone have any ideas?
ldStartDate=FDOM(DATE())
ldEndDate=LDOM(DATE())
SELECT 0
SELECT rdate,stock,.F. as lHighest FROM mstrvm ;
WHERE cBuild="****" .AND. BETWEEN(rdate,ldStartDate,ldEndDate) ;
INTO CURSOR tmpDays READWRITE
lnStockMax=0
LOCATE
SCAN WHILE !EOF()
IF stock>lnStockMax
lnStockMax=stock
ENDIF
ENDSCAN
LOCATE
SCAN FOR stock=lnStockMax WHILE !EOF()
REPLACE lHighest with .T.
ENDSCAN
BROWSE
However i am trying to find the best way to export a certain piece of data from my program.
I have managed to get the code to show me the total of what i would need. However i now need to try and pull this to screen as an FRX which will also ask me for a specific date when running.
Does anyone have any ideas?
ldStartDate=FDOM(DATE())
ldEndDate=LDOM(DATE())
SELECT 0
SELECT rdate,stock,.F. as lHighest FROM mstrvm ;
WHERE cBuild="****" .AND. BETWEEN(rdate,ldStartDate,ldEndDate) ;
INTO CURSOR tmpDays READWRITE
lnStockMax=0
LOCATE
SCAN WHILE !EOF()
IF stock>lnStockMax
lnStockMax=stock
ENDIF
ENDSCAN
LOCATE
SCAN FOR stock=lnStockMax WHILE !EOF()
REPLACE lHighest with .T.
ENDSCAN
BROWSE