如果您使用 php,您可以在编程语言中看到 php 具有关联数组(或数组宽度字符串键)。例如:
$server['hostname'] = 'localhost';
$server['database'] = 'test';
$server['username'] = 'root';
$server['password'] = 'password' ;
// 2d array
$all['myserver']['hostname'] = 'localhost' ;
但是在delphi中找不到任何使用关联数组的默认方法。
首先,我想找到没有任何输出组件或类的默认方式。其次,如果我真的找不到内部方式,我只能强制选择输出类。
我使用 Delphi XE3 ,非常感谢您的帮助。
编辑:我在这里找到了一个类:http://www.delphipages.com/forum/showthread.php?t=26334
与 php 相同,但有更好的方法吗?