protected boolean setValues() {
        String[] a;
        String[] sa = new String[m_vars.size()];
        int i;
        int er;
        
        for(i=0;i<m_vars.size();i++) {
            a = m_vars.get(i).split("\\.");
            if(a.length>=2) {
                if(getIDbyName(a[0],a[1])) {
                    er = checkMIBValue(a[0]+"."+a[1], m_values.get(i));
                    if(er==0) {
                        SNMPgroups.get(m_GroupID).value.set(m_InstanceID,m_values.get(i));
                        sa[i] = a[0]+"."+a[1];
                    }
                    else {
                        m_errorstatus = er;
                        m_errorindex = i+1;
                        return false;
                    }
                }
                else {
                    m_errorstatus = SNMP.SNMP_ERROR_noSuchName;
                    m_errorindex = i+1;
                    return false;
                }
            }
            else {
                m_errorstatus = SNMP.SNMP_ERROR_noSuchName;
                m_errorindex = i+1;
                return false;
            }
        }
        for(i=0;i<m_vars.size();i++) setMIBValue(sa[i], m_values.get(i));       //set values only if all variables correct
        return true;
    }