PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


phGantTimePackage FAQ 10854


Ive got a problem with the AddText of the TextCollection in VCL. Please note that this article refers to the phGantTimePackage
Jump to article- 2007-03-26 21:38:00 - Email plexityHide

Question

I've got a problem with the 'AddText' of the 'TextCollection'.

For exemple after an 'AddText' method when i test the 'TextCollection.Count' it's said 0.
I don't know how to change the text of my 'TphDataEntity_GantTime' after i create it.

Answer

The code below adds a text to a time item, and then changes it...

procedure TForm1.Button4Click(Sender: TObject);
begin
  if Assigned(phGant1.ActiveDataEntity) then
  begin
    phGant1.ActiveDataEntity.TextCollection.AddText('Hello',0,0);
    ShowMessage(IntToStr(phGant1.ActiveDataEntity.TextCollection.Count));
    phGant1.ActiveDataEntity.TextCollection.Text[0].Text:=phGant1.ActiveDataEntity.TextCollection.Text[0].Text+'+';
  end;
end;

 

Google
WWW plexityHide phGantTimePackage FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ GTP.NET.SL and WPF

FAQ general

Testimonials

"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
Gaurav Patole,
WebTechDevelopers
More testimonials...




/" class="blk">PlexityHide.com
Grastensvagen 24, S-163 45 Spanga Sweden
E-mail: support@plexityhide.com