ZenHAX
https://zenhax.com/

converting values to string in quickbms
https://zenhax.com/viewtopic.php?f=11&t=11557
Page 1 of 1

Author:  Shokoniraya [ Sun Jun 09, 2019 9:35 am ]
Post subject:  converting values to string in quickbms

i want to know how can i convert a string to value (hex-decimal)
for example: i read a number in a xml file (this is the xml part: <width="20">)
i read 20 with getdstring, but how can i convert to decimal? (decimal, i mean \x14)

and how can i convert a decimal to string for output to file? (convert \x14 to 20 for output file)

Author:  aluigi [ Sun Jun 09, 2019 10:01 am ]
Post subject:  Re: converting values to string in quickbms

Strings and numbers are quite abstract in quickbms.
Your variable can be already used as a number but if you want to be 100% sure try the following:
math VAR = VAR
or
set VAR long VAR # not suggested as far as I remember

Author:  aluigi [ Sun Jun 09, 2019 10:02 am ]
Post subject:  Re: converting values to string in quickbms

When working with output filenames I suggest to use the Printf operator of String:
string NAME p "%d" VAR

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/