Subject Re: Character Variable
From Patrick Healey <phealey@centricparts.com>
Date Thu, 24 May 2018 09:00:59 -0400
Newsgroups dbase.getting-started

Andy,

Thank you.  I shall try that.

Pat

Andy Taylor Wrote:

> Hi Patrick,
>
> You need macro substitution for that to work.
>
> private cCmd
> cCmd = "Do "+M_Filename
> &cCmd.
>
> Andy
>
> > I am having difficulty setting a character variable.
> >
> > The basic program language is:
> > Public M_Filename
> > M_Filename = "Rp_centric.rep"
> >
> > When I go to use it in a form such as:
> > form.reportviewer1.filename = M_Filename
> > It works.
> >
> > When I then go to a do command in the same form:
> > Do M_Filename
> > It does not work.  I have tried all sorts of permutations - all with error messages.
> >
> > Is there a way to get this to work?
> >
> > Thank you.
> >
> > Pat Healey
>