是否可以使用字符串作为索引?

1 ms-access access-vba

在其他语言中,您可以使用字符串作为键 -

PHP:

$array['string'] = 50; 
$array['anotherstring'] = 150;
Run Code Online (Sandbox Code Playgroud)

这可能在VBA中吗?

Joe*_*Joe 5

在VBA中,您可以创建Collection对象.可以通过索引(长整数)或字符串键来访问集合中的项.