|
-
Aug 30th, 2000, 06:43 PM
#1
Thread Starter
Lively Member
I wan't to show the differents money simbols that where located in the Regional Configuration of the Control Panel, i looked for it in the registry without an answer.
I hope someone knows about it
Thanxs
-
Aug 30th, 2000, 07:00 PM
#2
Frenzied Member
Here are some ASCII nr's for money symbols
$: 36
ƒ: 131
ah wait, just put this code on a form.
Make sure the font is set to Courier new, and maximize the form.
Code:
Private Sub Form_Paint()
Dim intT As Integer, dim intS As Integer
CLS
For intT = 32 To 248 Step 8
For intS = 0 To 7
Print Format(intT + intS, "@@@@@@") & ": " & Chr(intT + intS)
Next intS
Print
Next intT
End Sub
Just look up the ASCII codes for the charachters you need!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Aug 31st, 2000, 08:24 AM
#3
Thread Starter
Lively Member
O.K. That works if i just want to put the symbol that I want but my question is how can i insert the number format that are located especifically in the Regional Configuration of the Control Panel. I looked for that group of format types in the registry.
Thanx
-
Aug 31st, 2000, 08:30 AM
#4
Frenzied Member
Oh sorry, I have no idea how to do that, sorry!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Aug 31st, 2000, 08:32 AM
#5
Thread Starter
Lively Member
Thanx Jop, I will look for it in the web.
-
Aug 31st, 2000, 08:41 AM
#6
You can use the Format function:
Code:
Dim sngMySavings As Single
sngMySavings = 0.1
MsgBox Format(sngMySavings, "Currency")
Good luck!
-
Aug 31st, 2000, 08:50 AM
#7
Frenzied Member
Hey that's cool Joacim, it actually works 
cool
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Aug 31st, 2000, 08:54 AM
#8
Thread Starter
Lively Member
WOW!
Thankx joacim, it works. Now I´m going to make a procedure that insert on a combo box all the Currency format types.
-
Aug 31st, 2000, 09:09 AM
#9
Originally posted by Jop
Hey that's cool Joacim, it actually works 
cool
Yeah it is kind of cool isn't it.
Here are some more named numeric formats (copied from MSDN library)
- General Number = Display number with no thousand separator.
- Currency = Display number with thousand separator, if appropriate; display two digits to the right of the decimal separator. Output is based on system locale settings.
- Fixed = Display at least one digit to the left and two digits to the right of the decimal separator.
- Standard = Display number with thousand separator, at least one digit to the left and two digits to the right of the decimal separator.
- Percent = Display number multiplied by 100 with a percent sign (%) appended to the right; always display two digits to the right of the decimal separator.
- Scientific = Use standard scientific notation.
- Yes/No = Display No if number is 0; otherwise, display Yes.
- True/False = Display False if number is 0; otherwise, display True.
- On/Off = Display Off if number is 0; otherwise, display On.
Have fun!
-
Aug 31st, 2000, 09:15 AM
#10
Frenzied Member
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Aug 31st, 2000, 09:55 AM
#11
Thread Starter
Lively Member
Hey Joacim do tell me the website do you enter in MSDN
-
Aug 31st, 2000, 10:25 AM
#12
Thread Starter
Lively Member
Another simple question!!!!!!
How knows if the registry contains the Currency fonts that Excell has?, because i look for it without an answer.
Thanx
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
|