>>>>? 'Part one' font 'arial',16 >>>>??' Part two' font 'arial',16 style 'I' >>>>>>>>
>>>> >>>>? 'Part one' font 'arial',16 + ' Part two' style 'I' >>>>>
LPARAMETERS lcName, lnSize, lcStyle >*[2014/11/25 22:49] nDragan - the quick and dirty way to switch font in the middle of something. >* dirty, as screen font properties aren't reset. > >IF !empty(lcName) > _screen.FontName=lcName >ENDIF > >IF !empty(lnSize) > _screen.FontSize=lnSize >ENDIF > >lcStyle=upper(evl(lcStyle, "")) > >_screen.FontBold="B"$lcstyle > >_screen.FontItalic="I"$lcStyle > >RETURN "" >>Then your command becomes
?setfont("Georgia",12, "")+"Part one", setfont("Tahoma",16, "I")+" Part two."Ugh. I can see potential where you might not get what you'd expect, depending on how the ?/?? command is processed. Reminds me of the headaches back in the DOS xBASE days -- dealing with SET COLOR TO statements in code executed in ON KEY or event-triggered code (things got really fun if you had code triggered through a timer -- which was possible under WordTech's Quicksilver product -- such code tended to be flaky enough that it was best avoided)...