SalOutlineItemTitleX parameters ?

forum.cdk (1998-2005) & forum.td.cdk (2005-2010)
Armin

SalOutlineItemTitleX parameters ?

Post by Armin » 13 Aug 2003, 10:07

 Posted by:  Armin 

Hi all

Correct syntax for SalOutlineItemTitleX ?

I'll try SalOutlineItemTitleX(hOutline, nItem) but it doesn't work.
(Message: function has a worng number of Arguments)

Thanx

Armin

Frank Boettcher (ITG)

Re: SalOutlineItemTitleX parameters ?

Post by Frank Boettcher (ITG) » 13 Aug 2003, 11:53

 Posted by:  Frank \(ITG\) 

It simply takes nType as parameter:

SalOutlineItemTitleX ( SalOutlineItemType ( hOutline, nItem))

(IntelliSal contains most of these definitions, just a small tip)

Best regards
Frank Boettcher
Ice Tea Group, LLC
www.iceteagroup.com

Armin

Re: SalOutlineItemTitleX parameters ?

Post by Armin » 13 Aug 2003, 15:40

 Posted by:  Armin 

Thanx Frank

But is it possible that SalOutlineItemTitleX(..) works not correct ?
(Gupta TD 2.1 PTF1)
In my code the result is always an empty string :-(

Here is my code:

!!CB!! 70
! Auf erstes Element im Source setzen
Set nItem = SalOutlineTop (nOutline)
Set nCounter = 0
!
Call SalWaitCursor( TRUE )
While nItem != 0
!
Set nType = SalOutlineItemType (nOutline, nItem)
! In Beschreibungen und Kommentaten wird nicht gesucht
If (nType != CDK_IT_Description) AND (nType != CDK_IT_Comment)
Set sText = SalOutlineItemTextX(nOutline, nItem, FALSE)
Set sTitle = SalOutlineItemTitleX(nType) ! <-- sTitle always empty :-(
If sText != '' OR sTitle != ''
If (SalStrScan( sText, m_sSuchen ) != -1) OR
(SalStrScan( sTitle, m_sSuchen ) != -1)
Set nCounter = nCounter + 1
Call SalOutlineReportError( nOutline, nItem, '', SalNumberToStrX(
nCounter, 0 ) || ': ' || SalOutlineItemTextX ( nOutline, nItem, TRUE) )
Call SalFilePutStr( m_hFile, sText)
!
!
!
Set nItem = SalOutlineNextLine( nOutline, nItem )

Best regards
Armin

Frank Boettcher (ITG)

Re: SalOutlineItemTitleX parameters ?

Post by Frank Boettcher (ITG) » 13 Aug 2003, 15:57

 Posted by:  Frank \(ITG\) 

Arnim,

that´s strange. While I don´t have 2.1. here to test,
can you try to see what you get for SalOutlineItemTitleX ( 0x007B )
This should give you 'Call'

Best regards,
Frank

Catalin

Re: SalOutlineItemTitleX parameters ?

Post by Catalin » 13 Aug 2003, 16:37

 Posted by:  Catalin 

Hi Armin,

Your code works perfect for me.
CTD2.1, ptf4

Catalin

Armin

Re: SalOutlineItemTitleX parameters ?

Post by Armin » 13 Aug 2003, 16:47

 Posted by:  Armin 

Hi Frank

It give me a 'Call'.
Now I become the title of the Outline item. But I need the class name.
If an outline item is 'clsLB_ID: lbStartPalette' the value of
SalOutlineItemTitleX(..) is 'List Box' but
I need clsLB_ID.

Is there a SalOutline Function to solve this ?

Best regards
Armin

Frank Boettcher (ITG)

Re: SalOutlineItemTitleX parameters ?

Post by Frank Boettcher (ITG) » 13 Aug 2003, 16:52

 Posted by:  Frank \(ITG\) 

Armin,

sure: SalOutlineClassNameOfItem (hOutline, nItem, sClass)

Frank

Armin

Re: SalOutlineItemTitleX parameters ?

Post by Armin » 13 Aug 2003, 17:10

 Posted by:  Armin 

Thanx
Armin

Return to “td.cdk”

Who is online

Users browsing this forum: No registered users and 0 guests