Jump to content

How to display tag string in TUniStringGrid Cell?


newsanti

Recommended Posts

1 hour ago, newsanti said:

image.png.081e5d6e227ede547daeeae182a0de2d.png

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  var S:= UniEdit1.Text;
  UniLabel1.Caption:= S;
  UniStringGrid1.Cells[1,1]:= S;  //<--- not showing <reserved>
end;
 

 

EditTagAsString.zip 106.1 kB · 1 download

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  var S: string:= UniEdit1.Text;
  S:= S.Replace('<','&lt;');
  S:= S.Replace('>','&gt;');
  UniEdit2.Text:= S;
  UniLabel1.Caption:= S;
  UniStringGrid1.Cells[1,1]:= S;  
end;
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...