|
-
September 18th, 2002, 10:05 AM
#1
System attributes
Does anyone know how to retrieve the system attributes. I am specifically looking for what the decimal has been set to. The reason I ask is because not all people use the "." for the decimal and I don't want to hardcode that. I think in Europe they use the ",".
string strParmValue = parmValue.ToString();
int decimalPosition = strParmValue.IndexOf ("."); // Hard-coded decimal
if (decimalPosition == -1)
return -1;
strParmValue = strParmValue.Substring (decimalPosition + 1);
return strParmValue.Length;
I am basically looking for the decimal and returning the number of positions after it.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|