Hi Danijel,
Sorry to mentioned that I used RTC script to generate dynamic content to access via web browser.
I did further testing with "QuickStart\rtcScript" demo, both of the code are working fine (seem that using Win32 client is fine).
My project used RTC_WebPackaging as a guide line so, I did modify RTC_WebPackaging demo for tesing as
function TCommandsDispatcher.DoIndexPage(msg: string): string;
var
Page : TRtcParse;
Script: TRtcScriptEngine;
FuncGrp: TRtcFunctionGroup;
begin
FuncGrp:= TRtcFunctionGroup.Create(nil);
Script:= TRtcScriptEngine.Create(nil);
Script.FunctionGroup:= FuncGrp;
Page := TRtcParse.Create(TemplatePath + 'index.htm');
try
ShowPageMessage(Page);
Result:= Script.Execute(Srv, Script.Compile(Page.Output)).asText;
// Result := Page.Output;
finally
Page.Free;
Script.Free;
FuncGrp.Free;
end;
end;
and modify an Index.html template by insert the script code, the result is the same as my project return as
$lines.0 -> return array element value, working
$lines($i) -> return nothing
I did on both RTC 620 and 642 (Delphi XE) with the same result.
Best Regards,
Theprasit