Показать сообщение отдельно
Старый 15.07.2004, 10:39   #15  
dn is offline
dn
Участник
Самостоятельные клиенты AX
 
486 / 159 (6) ++++++
Регистрация: 26.03.2003
Адрес: Москва
Класс Global, Axapta 3.0
PHP код:
/* MAN
    Modifies the value of a property in the supplied property set.
    If the property does not exist the original property set is returned.
*/
static str setProperty(str propertiesstr propertynamestr value)
{
    
str s properties;
    
int propertyPos strScan(spropertyName1,   strLen(s));
    
int propertyLen strScan(s'\n'propertyPosstrLen(s));
    if (!
propertyPos)
        return 
s;

    
propertyPos strScan(s'#'propertyPos,   strLen(s))+1;

    if (!
propertyLen)
        
propertyLen strlen(s);

    
strdel(spropertyPospropertyLen-propertyPos+1);
    
strIns(svalue+'\n'propertyPos);
    return 
s;