Тема: treeNode
Показать сообщение отдельно
Старый 11.06.2003, 12:13   #3  
Garic is offline
Garic
NavAx
Аватар для Garic
NavAx Club
 
393 / 63 (3) ++++
Регистрация: 23.07.2002
Адрес: Москва
Воспорльзуйтесь функцией:

PHP код:
str getTreeNodeProperty(TreeNode _tnstr _sPropertyName)
{
    
str sValue;
    
str sProperties _tn.AOTgetProperties();
    
int iPropertyBegin;
    
int iValueBegin;
    
int iValueEnd;


    
iPropertyBegin strscan(sProperties"  "+_sPropertyName,1strlen(sProperties) );
    
iValueBegin =  strscan(sProperties,"#",iPropertyBegin,strlen(sProperties) );
    
iValueEnd strscan(sProperties,"\n",iValueBegin,strlen(sProperties));
    
sValue substr(sProperties,iValueBegin+1,iValueEnd-iValueBegin-1);
    return 
sValue;

Получите:

PHP код:
        info(getTreeNodeProperty(treeNode,'Name')); 
__________________
С уважением, Игорь Ласийчук.