D
Darin
dim arr_file(100) as string
dim cnt as integer=0
cnt += 1
arr_file(cnt-1)="file1"
if something is true then
cnt += 1
arr_file(cnt-1)="file2"
endif
if something2 is true then
cnt += 1
arr_file(cnt-1)="file3"
endif
sendstuff(to, from, arr_file) '***
The sendstuff:
public sub sendstuff(byval in_to as string, _
byval in_from as string, _
byval paramarray in_files() as string)
on *** line, the arr_file is showing:
value of type '1-dimensional array of string' cannot be converted to
string.
Darin
dim cnt as integer=0
cnt += 1
arr_file(cnt-1)="file1"
if something is true then
cnt += 1
arr_file(cnt-1)="file2"
endif
if something2 is true then
cnt += 1
arr_file(cnt-1)="file3"
endif
sendstuff(to, from, arr_file) '***
The sendstuff:
public sub sendstuff(byval in_to as string, _
byval in_from as string, _
byval paramarray in_files() as string)
on *** line, the arr_file is showing:
value of type '1-dimensional array of string' cannot be converted to
string.
Darin