AVAX-software.com Forums: Searching a text in Avax - AVAX-software.com Forums

Jump to content

Page 1 of 1

Searching a text in Avax

#1 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 23 May 2005 - 05:46 PM

Hi,

I can get the attributes of the shapes by Getattributes method. I need to search in the shapes on avax to find a specific text. I used the code below:

Dim a1, itype, icolor, iwidth, istyle, ilayer, elev, heighti As Array
Dim i As Integer
Dim allobj As Array
cAvax1.GetAllHandlesArr(allobj)
cAvax1.GetAttributes(allobj, itype, icolor, iwidth, istyle, ilayer, elev, heighti)
For i = 1 To allobj.Length - 1
If itype(i) = Avax.AvaxItemType.Text_i Then
??????
End If
Next


But I have no idea what code I can use instead of ??????
If there was another parameter in Getattributes method such as iText, I would take advantage of it. Would you please give me a hint to solve this problem?
Thanks a lot

#2 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 24 May 2005 - 07:05 AM

It is easy. Use function "GetText"
Athanasios Gardos
Avax-Software.com

#3 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 24 May 2005 - 09:20 AM

Thank you so much. Worked fine!

#4 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 24 May 2005 - 09:20 AM

zdf

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users