C
Claire
I read a list of name/value pairs from a remote (pocket pc + RAPI) registry
into a string array (3rd party wrapper for rapi registry objects).
As I check through each set, I test each name against "Completed" and will
skip the code if the test passes.
Unfortunately, the string returned to me in a watch shows as
"Completed\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
(\0s ad nauseum) and this doesn't match "Completed" so the test fails.
Any idea what's going on here please?
string[] Imports = regkey.GetValueNames();
for (int nCount = Imports.GetLowerBound(0); nCount <=
Imports.GetUpperBound(0); nCount++)
{
FileName = (string)regkey.GetValue(Imports[nCount],"");
if (FileName == "")continue;
//if (Imports[nCount] == "Completed") continue;
if (Imports[nCount].Equals("Completed")) continue;
WriteRemote(FileName);
}
into a string array (3rd party wrapper for rapi registry objects).
As I check through each set, I test each name against "Completed" and will
skip the code if the test passes.
Unfortunately, the string returned to me in a watch shows as
"Completed\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
(\0s ad nauseum) and this doesn't match "Completed" so the test fails.
Any idea what's going on here please?
string[] Imports = regkey.GetValueNames();
for (int nCount = Imports.GetLowerBound(0); nCount <=
Imports.GetUpperBound(0); nCount++)
{
FileName = (string)regkey.GetValue(Imports[nCount],"");
if (FileName == "")continue;
//if (Imports[nCount] == "Completed") continue;
if (Imports[nCount].Equals("Completed")) continue;
WriteRemote(FileName);
}