Mensaje
 
a
26/03/2010 09:14:15
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Foro:
Visual FoxPro
Category:
Bases de datos, tablas, vistas, índices y SQL
Título:
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
ID de la conversación:
01457370
ID del mensaje:
01457429
Views:
39
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
Responder
Mapa
Ver