Subject Re: getfile method problem
From Mervyn Bick <invalid@invalid.invalid>
Date Sun, 21 Apr 2024 11:12:03 +0200
Newsgroups dbase.getting-started

On 2024/04/21 01:13, Charlie wrote:
> is there something wrong with this newsfield..  I have replied twice and don't see either..  At any rate Ken, I tried both true and false and same results.

Like Ken, I haven't been able to replicate this.  It does, however, add
weight to the precept "It's better not to mix OODML and XDML".

Instead of using OODML to instantiate the array together with the array
object's getfile() method,  try using the XDML GETFILE() function.

OODML
path1 = trim(form.memo1.rowset.fields["pics"].value)
a = new array()
a.getFile(path1+"\", "Choose Files", false) > 0

XDML
cfile = getFile(path1+'\', "Choose Files", false)

Mervyn.