L
larrysulky
Hi. I searched but couldn't find an answer to or example of this. Is it
possible to specify multiple file masks on a single call to dir$()? I
have:
theFile = Dir$(TemplatePath & "*.bas")
but what I'd really like is something like:
theFile = Dir$(TemplatePath & "*.bas" | TemplatePath & "*.frm")
That is, the file mask should constrain to either *.bas or *.frm. Or
can I do something like
theFile = Dir$(TemplatePath & "*.bas") & Dir$(TemplatePath & "*.frm")
? It sure seems possible but the syntax is defeating me.
TIA
---larry
possible to specify multiple file masks on a single call to dir$()? I
have:
theFile = Dir$(TemplatePath & "*.bas")
but what I'd really like is something like:
theFile = Dir$(TemplatePath & "*.bas" | TemplatePath & "*.frm")
That is, the file mask should constrain to either *.bas or *.frm. Or
can I do something like
theFile = Dir$(TemplatePath & "*.bas") & Dir$(TemplatePath & "*.frm")
? It sure seems possible but the syntax is defeating me.
TIA
---larry