Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying (meter cubed) 1

Status
Not open for further replies.

FederalProgrammer

Programmer
Jul 2, 2003
318
CA
Does anyone know how to display Cubic Meter (ie, M^3) such that, 3 is shown as a superscript to M?









why do they call it VB.NET? it's nothing like vb; they should've called it B#!!
 
it is character 179 or simply hold down alt and type 0179 or copy this one ³
 
Or Unicode literal sequence: \u00B3
Code:
Dim s As String
  s = ContainerSize.ToString() & " m\u00B3"
Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
hmmm, may be I'm doing something wrong w/ "m\u00B3"; following didn't work:

dim label as string = "Volume (" & "m\u00b3" & ")"

I also tried the escape character:
dim label as string = "Volume (" & "m" & chr(27) & \u00b3" & ")"

That's ok though, following worked... so i should be ok
dim label as string = "Volume (m" & Chr(179) & ")"


thanx for the replies!!!








why do they call it VB.NET? it's nothing like vb; they should've called it B#!!
 
Oops, got my C# and VB.NET mixed up. Sorry.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
hehe,
that's ok ;)

how is it done in B# then?


thanx!




why do they call it VB.NET? it's nothing like vb; they should've called it B#!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top