有没有搞错,用StringList嘛本来就是动态的string类型数组。delphi帮助中的一段话,仔细读读,你就可以解决了。------------------------------------------Within the body of a routine, open array parameters are governed by the following rules.They are always zero-based. The first element is 0, the second element is 1, and so forth. The standard Low and High functions return 0 and Length ?1, respectively. The SizeOf function returns the size of the actual array passed to the routine. They can be accessed by element only. Assignments to an entire open array parameter are not allowed. They can be passed to other procedures and functions only as open array parameters or untyped var parameters. They cannot be passed to SetLength.Instead of an array, you can pass a variable of the open array parameter抯 base type. It will be treated as an array of length 1.怎样数组的长度myarray:array of string? 需要在运行时动态的改变数组的长度! 请大虾指点用vararrarcreate函数
名称栏目:设置数组长度,C语言中如何临时设置数组的长度
标题路径:http://csdahua.cn/article/idosoj.html