This is seriously doing my head in.

Im running XP alongside VISTA on a Virtualization with MS Virtual PC to test the app.

This is my code, very simple: Read Value Data from Registry. If the len >=1 or = vbNullstring then Skip

If Len(RGGetKeyValue(theRootKey, regKey & QueryKeys(X), getValues(0))) >= 1 Then GoTo SkipThisOne
If Not RGGetKeyValue(theRootKey, regKey & QueryKeys(X), getValues(0)) = vbNullstring Then GoTo SkipThisOne

MsgBox Len(RGGetKeyValue(theRootKey, regKey & QueryKeys(X), getValues(0)))
MsgBox RGGetKeyValue(theRootKey, regKey & QueryKeys(X), getValues(0))


'''More code


SkipThisOne:
Now guess what the MsgBoxes return: 0 & vbNullstring, but yet again it doesnt go to the SkipThisOne label

This works with XP.

'The Exe also has a manifest inserted with Resource Hacker, to allow admin elevation etc...