StartFindKvp
Docslocal retval = StartFindKvp(prefix)Parameters
| Name | Type | Description |
|---|---|---|
prefix | char* | A prefix match |
Returns
intReturns an integer value.
Examples
Official
SetResourceKvp('mollis:2', 'should be taken with alcohol')
SetResourceKvp('mollis:1', 'vesuvius citrate')
SetResourceKvp('mollis:manufacturer', 'Betta Pharmaceuticals')
local kvpHandle = StartFindKvp('mollis:')
if kvpHandle ~= -1 then
local key
repeat
key = FindKvp(kvpHandle)
if key then
print(('%s: %s'):format(key, GetResourceKvpString(key)))
end
until not key
EndFindKvp(kvpHandle)
else
print('No KVPs found')
end