Einzelnen Beitrag anzeigen

nanix
(Gast)

n/a Beiträge
 
#1

Get count of members in record

  Alt 10. Jan 2010, 12:07
Delphi-Quellcode:
PerfFormattedData_PerfOS_Processor = record
  C1TransitionsPerSec: String;
  C2TransitionsPerSec: String;
  C3TransitionsPerSec: String;
  Caption: String;
  Description: String;
  DPCRate: String;
  DPCsQueuedPerSec: String;
  Frequency_Object: String;
  Frequency_PerfTime: String;
  Frequency_Sys100NS: String;
  InterruptsPerSec: String;
  Name: String;
  PercentC1Time: String;
  PercentC2Time: String;
  PercentC3Time: String;
  PercentDPCTime: String;
  PercentIdleTime: String;
  PercentInterruptTime: String;
  PercentPrivilegedTime: String;
  PercentProcessorTime: String;
  PercentUserTime: String;
  Timestamp_Object: String;
  Timestamp_PerfTime: String;
  Timestamp_Sys100NS: String;
end;

var
WMI_PerfFormattedData_PerfOS_Processor:array of PerfFormattedData_PerfOS_Processor;
so i could do something like this so i could reduce the code size
 WMI_PerfFormattedData_PerfOS_Processor[i].Property[i2]
  Mit Zitat antworten Zitat