i use WMI to ask for some Hardware Information like RAM
- Code: Select all Expand view RUN
- 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 RUN
- 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