Code:
"Test"
{
"name" "jesus"
}
Quote:
Originally Posted by Peace-Maker
|
KvGotoFirstSubKey without the second argument being set to false will just return false with this structure, as there are no subkeys under the root (only values).
KvGotoFirstSubKey with the second argument being set to false will make
PHP Code:
KvGetString(KV, "name", sVal, sizeof(sVal));
return false, as it should since a value doesn't have any values beneath it.
PHP Code:
KvGetString(KV, NULL_STRING, sVal, sizeof(sVal));
should work at that point, though.
Still,
PHP Code:
KvGetString(KV, "name", sVal, sizeof(sVal));
should work without needing KvGotoFirstSubKey...
__________________