Useful 100%x !

colin9876

Active Member
Licensed User
I really like the way B4a can use 100%x, 100%y to find the screen res rather than having to do a system call.

What Im wondering is how 100%x is stored internally?
1) If it involves a system call eachtime its used am I better to have one line saying fullx=100% (for example) then use my fullx variable if Im using it lots of times?

2) I see its possible to use other values like 1%x, 25%x,50%x etc ??
If I have a variable e.g. myx=rnd(0,100)
lets say myx=59, how can I then say 59%x
will myx%x work????
 
Top