[Pas2js] Modern UI for pas2js

Michael Van Canneyt michael at freepascal.org
Sat Feb 23 17:40:29 CET 2019



On Sat, 23 Feb 2019, cbsistem via Pas2js wrote:

> it would be interesting to use expressions or variables as a parameter. It is
> not necessary to leave the filename fixed.
>
> example:
>
> var
>  _filename:string;
>
> begin
>   _filename:= request.params['myfile'];
>
> {$INCLUDESTRING _filename } ;  //use variables

Please think about what you ask for a second :)

That's not posible. The include happens at compile time.
It has the same semantics as a constant.

Michael.


More information about the Pas2js mailing list