sl23 wrote: ↑August 7th, 2021, 4:41 pm
Oops! Wrong slash Substitute="^(.+)$":"\1B";"0B":"No Drive"
Close, but now I get 0.00 B displayed. So I tried 0B, 0 B, 0.00B and 0.00 B, still no luck!
Please, put up your glasses, LOL. It's , and not ; ...
sl23 wrote: ↑August 7th, 2021, 4:41 pm
Oops! Wrong slash Substitute="^(.+)$":"\1B";"0B":"No Drive"
Close, but now I get 0.00 B displayed. So I tried 0B, 0 B, 0.00B and 0.00 B, still no luck!
Ok, WHERE exactly do you get that? In the measure or in the meter? Cause if it's in the meter, changing the number of decimals (or scale/autoscale below?), if you have such an option, will do.
But that last Substitute is not being treated correctly by the InlinePattern, so I have to remove the spaces... Substitute="^$":"0","^(.+)$":"\1B","^0B$":"No Drive"
Image 003.png
But after doing so, it still doesn't replace the value with the string. Maybe I should just leave the 0.00 GB instead?!
Image 004.png
You do not have the required permissions to view the files attached to this post.
Last edited by sl23 on August 7th, 2021, 7:07 pm, edited 1 time in total.
sl23 wrote: ↑August 7th, 2021, 6:55 pm
In the meter, I think.
But that last Substitute is not being treated correctly by the InlinePattern, so I have to remove the spaces...
Substitute="^$":"0","^(.+)$":"\1B","^0B$":"No Drive"
Image 003.png
But after doing so, it still doesn't replace the value with the string. Maybe I should just leave the 0.00 GB instead?!
Image 004.png
That probably happens because you use the number value of the measure (and not the supposedly correctly modified string value of it), due to the numerical related options like NumOfDecimals or AutoScale in the meter. If you look at the log, the measure value should be fine. Is it?
P.S. I only noticed your code here now...I should put my glasses too, it seems.
sl23 wrote: ↑August 7th, 2021, 7:11 pm
I don't understand how the Meter options affect the substitution? Or isn't that what you are saying?
There are no errors in the log if that's what you mean.
Yeah, don't worry, I just tested myself, no need to bother, my suspicion was true. I didn't mean that there should be errors in the log, I only meant that the STRING value of the MEASURE should be what you expect it to be, i.e. "No Drive", but because the METER is using the measure's NUMBER value (due to the numerical related options like NumOfDecimals or AutoScale), you don't get the expected result visually:
NS.jpg
You do not have the required permissions to view the files attached to this post.