Better is to write a set/get public function to retrieve the name
FUNCTION SetFontName( cFontName )
STATIC s_cFontName := "Courier New"
LOCAL l_cFontName :=
s_cFontName
IF HB_ISSTRING(
cFontName ) .AND. ! Empty(
cFontName )
s_cFontName := cFontName
ENDIF
RETURN
l_cFontName
// then in Main() just call
SetFontName( "DroidSansMonoSW_OR_Whatever" )
// And when building your gets
HbQtSetFont(
SetFontName(), 20 )
Hope this helps. I hate PUBLICS. File-wide statics are ok but then those are visible only in that source. Clipper's SET/GET functions approach is best for such implementations. Write once / use nnnn times.
Pritpal Bedi
a student of software analysis & concepts