rghthnrblmrc
12-14-2006, 10:54 AM
Hi —
Preparatory to anything else, thanks to everyone that has helped me lately. I truly appreciate it. I figured out my problem yesterday by writing a script that elevated my user privileges to those of the ASP user, which then allowed me to load in the source code in question as plain text, and write it to the screen so as to see what exactly these yahoos (I won't name any names) were doing under the hood. This seems like a severe security shortcoming to me, and on a side note, I wonder if there is any way to prevent this from happening. My gut tells me yes, but i wouldn't have the first idea how.
With that out of the way, I will once again explain that I am new to VBScript, but I am quite familiar with java, javascript, actionscript, php, perl and other scripting languages.
One thing that I have no experience with whatever is the currency datatype or subtype, which semantic difference i am not keen to. I'm confused because it was my impression that the ccur function would convert a real number into a currency format, i.e. either by rounding to the hundredths place or by appending zeros as necessary and also formating the value with a currency symbol according to the locale.
Is this correct? If so, then why is it that the function seems to misbehave, often returning an unformatted number.
Also, is it necessary to convert back from currency formatting prior to performing any arithmetic with the numbers, or can they remain formatted?
Thanks
Preparatory to anything else, thanks to everyone that has helped me lately. I truly appreciate it. I figured out my problem yesterday by writing a script that elevated my user privileges to those of the ASP user, which then allowed me to load in the source code in question as plain text, and write it to the screen so as to see what exactly these yahoos (I won't name any names) were doing under the hood. This seems like a severe security shortcoming to me, and on a side note, I wonder if there is any way to prevent this from happening. My gut tells me yes, but i wouldn't have the first idea how.
With that out of the way, I will once again explain that I am new to VBScript, but I am quite familiar with java, javascript, actionscript, php, perl and other scripting languages.
One thing that I have no experience with whatever is the currency datatype or subtype, which semantic difference i am not keen to. I'm confused because it was my impression that the ccur function would convert a real number into a currency format, i.e. either by rounding to the hundredths place or by appending zeros as necessary and also formating the value with a currency symbol according to the locale.
Is this correct? If so, then why is it that the function seems to misbehave, often returning an unformatted number.
Also, is it necessary to convert back from currency formatting prior to performing any arithmetic with the numbers, or can they remain formatted?
Thanks