PC Review


Reply
Thread Tools Rate Thread

Information Contained in the Font Object

 
 
Gary Bouchard
Guest
Posts: n/a
 
      13th Jan 2009
I have a strange problem occurring that I cannot find an answer for when
working with a Font object in my VB6 app.

here is the code in a function with a boolean return type;
_________________________________________________
Dim oFont As New StdFont

On Error Resume Next

Set oFont = New StdFont
With oFont
.name = Trim$(sFontName)
End With
'oFont.name = sFontName
' Check to see whether the font name passed in was valid by seeing
' if the property got set.
IsFontSupported = (UCase$(oFont.name) = UCase$(sFontName))
' Whatever happens, return a valid font name in this ByRef parameter.
sFontName = oFont.name

err.Clear
_________________________________________________

The problem is that when I set the font with the passed in variable, it
changes from its default of 'MS San Serif' to 'Arial', when the variable
contained "Veranda".

I verified that the Veranda font exists, so I am not sure what would cause
the object to do this?

Any help is appreciated.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set DataNavigateUrlField to contained custom object property mhageman27 Microsoft ASP .NET 0 13th Apr 2010 11:23 PM
Build a like query based on information contained in another table Tom Microsoft Access Queries 1 8th Sep 2008 08:20 PM
Displaying information (contained in defined names) on a summary sheet, in different row numbers? Bryan.Cook@gmail.com Microsoft Excel Misc 0 15th May 2006 03:46 PM
Get the row that an object is contained in =?Utf-8?B?bXdoYWxlbg==?= Microsoft ASP .NET 1 1st Feb 2005 05:59 PM
getting information contained in the design table to an excel spreadsheet jimh Microsoft Excel Misc 2 2nd Feb 2004 03:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:58 PM.