i use WMI to ask for some Hardware Information like RAM
- Code: Select all Expand view
- FOR EACH oMemory IN oWmi:ExecQuery( "SELECT * FROM Win32_PhysicalMemory" )
nSumRAM += VAL( oMemory:Capacity )
cFormFactor := GetFormFaktorText( oMemory:FormFactor )
cMemoryType := GetRAMtype( oMemory:SMBIOSMemoryType )
// ask for "SPEED"
IF __ObjHasData( oMemory, "SPEED" )
IF __ObjHasMethod( oMemory, "SPEED" )
both IF __Obj* give me .F.
but this work
- Code: Select all Expand view
- cSpeed := oMemory:Speed
cSpeed := oMemory:GETPROPERTY("SPEED")
Problem : it does not work on every PC
if i use TRY / CATCH / END than line after Error will not execute
so how to "ask" in FOR EACH if a "Property" Exist