PChar-Tags within tables
Posted: Tue Nov 11, 2008 4:11 pm
Hi,
I inserted an PChar-Tag into a table with table.Cells[RowCount-1,1].AddNLTag.
Now I try to get this Tag via TRichView.OnJump.
sItemTag is always empty, id is 0 and iItemNo also. So how can I get the Tag from that cell? If I add the outside the table, everything works fine and I don't know what I'm doing wrong?
Thanks
I inserted an PChar-Tag into a table with table.Cells[RowCount-1,1].AddNLTag.
Now I try to get this Tag via TRichView.OnJump.
Code: Select all
procedure TfrmMain.rvwBenutzerJump(Sender: TObject; id: Integer);
var
iItemNo : integer;
pItemTag : PChar;
sItemTag : string;
sItemText : string;
sDateiname : string;
rvd : TCustomRVFormattedData;
begin
with rvw do begin
// tag werte auslesen aus jump point
GetJumpPointLocation(id, rvd, iItemNo);
pItemTag := PChar(GetItemTag(iItemNo));
sItemTag := pItemTag;
sItemText := GetItemText(iItemNo);
end;
ShowMessage(sItemTag);
end; { procedure }
Thanks