Trying to get the CRC value of a pic using this code (On Show Event) the cue.txt has the same crc # and the code compairs the two:
--Checks to see if the realtor pic is the right one.
crc_result = File.GetCRC("AutoPlay\\Realtor\\realtor.bmp");
cue_result = TextFile.ReadToString("AutoPlay\\Realtor\\cue.txt" );
Input.SetText("Input1", crc_result);
Input.SetText("Input2", cue_result);
x = crc_result;
y = cue_result;
if (x ~= y) then
-- Do something here, they are not equal
result = Dialog.Message("Notice", "Contact Diginetx at 805-555-5555.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
The two #s are the same but it says they’re not. What am I doing wrong?
--Checks to see if the realtor pic is the right one.
crc_result = File.GetCRC("AutoPlay\\Realtor\\realtor.bmp");
cue_result = TextFile.ReadToString("AutoPlay\\Realtor\\cue.txt" );
Input.SetText("Input1", crc_result);
Input.SetText("Input2", cue_result);
x = crc_result;
y = cue_result;
if (x ~= y) then
-- Do something here, they are not equal
result = Dialog.Message("Notice", "Contact Diginetx at 805-555-5555.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
The two #s are the same but it says they’re not. What am I doing wrong?
Comment