Subject Re: Character Variable
From Andy Taylor <andy.taylor@which.net>
Date Wed, 23 May 2018 18:23:51 -0400
Newsgroups dbase.getting-started

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