Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL aggregate
Message
 
 
To
26/03/2010 09:14:15
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01457370
Message ID:
01457429
Views:
37
I tnink you can get it to work with sign bit as well
SELECT grp, CTOBIN(MAX(BitorSql(grp, bitfld)), "4S") AS BitField ;
	FROM crsTest ;
	GROUP BY grp
RETURN

FUNCTION BitorSql(tnGroup, tnVal)
IF tnGroup <> pnGroup 
	pnResult = 0
	pnGroup = tnGroup
ENDIF	
pnResult = BITOR(pnResult, tnVal)
RETURN BINTOC(pnResult, "4S")
>Da
>
>>Correct but you know that I meant that, right? :).
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform