updf_prop_count

updf_prop_count liefert die Anzahl an Properties.

count = updf_prop_count(props)

Returnwert

count ist die Anzahl an Properties.

Parameter

props

props ist das von updf_prop_open erzeugte Property-Objekt.

Beispiel

def test_updf_prop_count()
{
    ssFile = GetTempPath() + "prop-count.updf";
    stg = updf_create_file(ssFile);

    props = updf_prop_open(stg);
    updf_prop_set_at(props, "OpenDir", updf_propval_new("x:/"));
    updf_prop_set_at(props, "a1", updf_propval_new(2));
    updf_prop_set_at(props, "b", updf_propval_new(3));
    updf_prop_set_at(props, "abc", updf_propval_new(4));

    n = updf_prop_count(props);
    if (n != 4) {
        error();
    }

    updf_prop_delete(props, "abc");

    n = updf_prop_count(props);
    if (n != 3) {
        error();
    }

    updf_prop_close(props);

    updf_close_storage(stg);
}

test_updf_prop_count();

History

Version Beschreibung
5.6.0 Neu

id-755371