Hi Folks,
I just came across what I think is a VFP error and I’m wondering should it
be reported.

If you group by a field generated by the Date(...) function then VFP throws
an error.

Could someone confirm this is the same in VFP8 and VFP7 and if it has been
spotted previously as an error. 

The same error occurs if you use DateTime() as opposed to Date.

An example below.

Dave Crozier

******
* "Group By" Error
*
Close table all
Create Cursor Test (Primary_Key I, Id C(10), Date D, nValue I)
Insert Into Test Values (1, "A01", Date(), 100)

Select All ;
  Date(Year(Test.Date),Month(Test.Date),01) as Sort_Key, ;
  Sum(Test.nValue) as Column_Value ;
>From Test ;
group by 1 ;
Into Cursor curAll ;
Order By 1
*
Browse


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.9.8/869 - Release Date: 25/06/2007
17:32
 




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to