You are here: > ESRI Forums > arcgis desktop discussion forums > Thread Replies

ArcGIS Desktop Discussion Forums

ArcGIS Desktop - ArcObjects Visual Basic for Application (VBA) forum

Superscripting   chris poole Dec 09, 2004
Re: Superscripting   Mark Bryant Dec 14, 2004
Re: Superscripting   chris poole Dec 15, 2004
Re: Superscripting   Anna Fijalkowska Jan 04, 2009
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Superscripting 
Author chris poole 
Date Dec 09, 2004 
Message I've scoured through the help files and it kind of says how to do this, but I still can't figure it out. I need to superscript so my output will put out m(2 in superscript) as opposed to m2. I've included that part of the code that I need to superscript. In the same text box I also give acres for the polygon as well as square miles but i'm sure if I can get the square meters superscripted the same thing will work for square miles. Thanks for any help.

Also, is it possible to take a .dll and open it so you can see the code behind it? I ask because I'm not very good with VBA and I learn best if I can see a written example. Being able to look at code that does work, helps me to get my code to work. As in, if I could look at some code where there is superscripting I could figure out how to do it in my code. 
 
If TypeOf pElem.Geometry Is IPolygon Then
  Set pArea = pElem.Geometry
  
  
  pApp.StatusBar.Message(0) = "Element Area : " & pArea.Area

  
  MsgBox "Element Area in Map Units: " & Round(pArea.Area, 4) & " m2"
 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Superscripting 
Author Mark Bryant 
Date Dec 14, 2004 
Message To get the square meters, try the following:
MsgBox "Element Area in Map Units: " & Round(pArea.Area, 4) & " m" & Chr(178)

This assumes that what ever font you are using has the superscript two at ascii code 178.
ASCII 179 is superscript three.

As for reading the dll, the simple answer is that you can't read the underlying code as it is compiled.

It you want code examples, the three traditional places to point a new user are: the developers code included on the CD, arcgisdeveloperonline.esri.com and also that some of samples on the arcscripts site also include code. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Superscripting 
Author chris poole 
Date Dec 15, 2004 
Message Thanks, that worked perfectly. Sad about the .dll's but I can keep looking through the developer help and maybe I'll start to grasp this eventually. 
   
Report Inappropriate Content • Top • Print • This Forum is closed for replies.    
Subject Re: Superscripting 
Author Anna Fijalkowska 
Date Jan 04, 2009 
Message hi
i did it - as you said and i should have some other coding because at the place of chr(179) returning superscript of 3 i have "ł" from my language (polish).
Could you tell me how to chec it for my language?
Anna