Hard Drive serial number
Alex Tweedly
alex at tweedly.net
Tue Jan 25 10:21:11 EST 2005
Paul Salyers wrote:
> At 08:41 AM 1/25/2005, Thierry Arbellot wrote:
>
>> VBCode and Rev number are the same
>> 5083A4C6 is the hexadecimal value of 1350804678
>>
>> baseConvert("5083A4C6",16,10) convert from hexa to decimal
>>
>> Hope it helps.
>>
>> Thierry
>
>
>
>
> I tryed this but it didn't work:
>
> on mouseUp
> --put stsGetSerialNumber("C:") into fld 1 --Hex number this works
> put baseConvert("stsGetSerialNumber",16,10) into fld 1 --Trying to
> convert hex to dec
>
> --baseConvert("5083A4C6",16,10) --Your suggestion
>
> end mouseUp
No, this is trying to convert the string "stsGetSerialNumber" from hex
to decimal.
Try this ....
on mouseUp
put stsGetSerialNumber("C:") into tmpVar
put baseConvert(tmpVar,16,10) into fld 1
end mouseUp
if that doesn't work, try putting the value at each stage and see if
it's obvious. (is there any extra character in tmpVar ?)
If not, get back to us - WITH the info of what each step gave you.
-- Alex.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.3 - Release Date: 24/01/2005
More information about the use-livecode
mailing list