AntonioCuomo Posted February 25, 2022 Share Posted February 25, 2022 This works perfectly : procedure TMainForm.UniButton1Click(Sender: TObject); var s1 : string; begin UniHTMLFrame1.HTML.Clear; unilabel1.Caption := Format(s,[fdtable1Voce.asstring]); s1 :='13882870_1645790550.mp3'; //fdtable1Voce.asstring ; UniHTMLFrame1.HTML.Text := Format(s,[s1]); end; procedure TMainForm.UniFormCreate(Sender: TObject); begin s:= '<audio controls autoplay id="player3" src="files/%s"></audio>'; end; Instead this doesn't work: procedure TMainForm.UniButton1Click(Sender: TObject); var s1 : string; begin UniHTMLFrame1.HTML.Clear; unilabel1.Caption := Format(s,[fdtable1Voce.asstring]); s1 := fdtable1Voce.asstring ; //'13882870_1645790550.mp3'; UniHTMLFrame1.HTML.Text := Format(s,[s1]); end; procedure TMainForm.UniFormCreate(Sender: TObject); begin s:= '<audio controls autoplay id="player3" src="files/%s"></audio>'; end; from debug both htmlfram1.htm.text of the first example and that of the second are the same ... the idea is to have a table with the mp3 file name and have the reading by passing the filename field. Quote Link to comment Share on other sites More sharing options...
AntonioCuomo Posted February 25, 2022 Author Share Posted February 25, 2022 Mea culpa: Wrong file name in the table.... sorry Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 26, 2022 Share Posted February 26, 2022 5 hours ago, AntonioCuomo said: Mea culpa: Wrong file name in the table.... sorry So, were you able to figure it out? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.