Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#4

AW: VB Array/Variant nach Delphi konvertieren

  Alt 20. Mai 2015, 09:41
Wie hast dus gemacht?
Bin mir eigentlich relativ sicher dass es so aussehen müsste:

Delphi-Quellcode:
var MyOptions: Variant;
    res: Variant;
begin
  res := 'Irgendwas'; // foo.runMacro(...)

  MyOptions := VarArrayOf([VarArrayOf(['Option One', 1234]),
    VarArrayOf(['Option Two','Michigan']),
    VarArrayOf(['Option Three', res])]);
end;
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat