Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add memo field to cursor
Message
From
11/02/2016 03:11:04
 
 
To
11/02/2016 02:57:20
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01631223
Message ID:
01631234
Views:
55
I'm sure that you can do it in one command, but in practice it's two separate operations for your computer. I believe your solution will be faster.

>Something like that?
>
>SELECT;
>" " as MatProblem,;
>CAST("" AS M) AS Missing,;
>Curx.Line,Curx.priority,Curx.Customer,;
>Curx.CUT,Curx.Desc_Cut,Curx.STYLE,Curx.Desc_Style,Curx.DUEDATE,;
>Curx.total,Curx.totstd,Curx.cutdate,;
>00000.00 as timetictot,;
>00000.00 as timetic,;
>00000.00 as balance,;
>00000.00 as diasf,;
>0000000.00 as horasf,;
>DATE() as fec,;
>00 as horad;
>FROM (;
>  SELECT Cut.Line, priority, bname as Customer, cut.CUT, cut.description as Desc_Cut, style.STYLE,;
>		style.description as Desc_Style, DUEDATE, cut.total, totstd,cutdate;
>	FROM cut, cutdtl, style, customer;
>	WHERE cut.custcode = customer.code;
>	AND cut.cut = cutdtl.cut;
>	AND cutdtl.style = style.style;
>	AND duedate >= thisform.text1.Value AND duedate <= thisform.text2.Value;
>	AND EMPTY(dtcompl);
>	AND cut.total > thisform.text10.Value;
>	&lcExtra1 &lcExtra2;
>	DISTINCT) as curx;
>	INTO CURSOR cur1 READWRITE;
>	ORDER BY Priority, DueDate
>
>
>>When you use Distinct, you have to add the memo field afterwards by using Alter Table.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform