Jump to content

italicize fonts or italics words


anggwaponi

Recommended Posts

hello all :) how to make italicize the fonts or make the words in italics in the following computes: 'W/F: ' + if ( isnull( brand_drug ) , ' ', ' ' + brand_drug ) :facepalm: i only want to make the part if ( isnull( brand_drug ) , ' ', ' ' + brand_drug ) in italics and to maintain the font style for 'W/F: ' :rolleyes: cheers! :dirol:

Link to comment
Share on other sites

This may be what you need, but you posted in the sql sectionhttp://www.w3schools.com/css/css_font.asp.

Link to comment
Share on other sites

This may be what you need, but you posted in the sql sectionhttp://www.w3schools...s/css_font.asp.
hi niche :umnik2: i'm not so familiar with CSS but what i do know is that the syntax that i gave is the source that will be displayed in the pharmacy drug label. actually, using powerbuilder application ... i can make it italicized from it's Properties-window. it is now what i've been doing to set the whole computes into italic B) so it will show an italicized line once converted in it's finished form as the label will be printed Zebra-printer :wacko: however, as i said earlier that only the 2nd part ( if ( isnull( brand_drug ) , ' ', ' ' + brand_drug ) i want to italicized. i can make the part or create a box for 'W/F: ' + and set it to text window to maintain it's font style. but it's too taxing as i will separate them first then manipulate it's contents :rolleyes: we can force the word in the sentence to be in all capital format so their would be a chance that label will be italicized :ninja: cheers! :dirol:
Link to comment
Share on other sites

This is not encouraged, but you can wrap an italics style with your text in a p tag, save it to a table and print it from your browser. Else you might have to use old fashion printer escape codes if you're not printing from a browser.

Edited by niche
Link to comment
Share on other sites

This is not encouraged, but you can wrap an italics style with your text in a p tag, save it to a table and print it from your browser. Else you might have to use old fashion printer escape codes if you're not printing from a browser.
hi niche :) thanks for the hint, and i've tried that p tag ... however, can you give me more idea about that " ... old fashion printer escape codes ... ". sorry really, but i've been wondering how to do such thing (or perhaps i may just know it but only on the different terms you used) <_< any way, i've attached here a screenshot about the sql computes or syntax i want to be in italic font style. i'm not just sure as to what kind of application or programs it's being edit but most probably into like powerbuilder. hope it will give you also some clue :rolleyes:sql.jpg in "A", it's the Formula-field i input the syntax or computes. and in "B", i'll click the "Verify-button" to check if the computes / syntax as Formula i entered is right. and "C" will be the popup message whether it's accepted or bad command line :Pleased: well, seems like i'm truly back into sql now. i just hope that it will be the start of a progressive learning on my part (wish me luck) :glare: cheers! ;) Edited by gwapo ko
Link to comment
Share on other sites

Get out your user's manual. They're also called escape codes. This is real old school.

Link to comment
Share on other sites

Get out your user's manual. They're also called escape codes. This is real old school.
hello niche :good: and i'm just wondering as i'm not that consistent user with sql and i accept the fact also that i haven't keep track of the updates and versions or releases of sql, can you give me an idea like a "time travel"-format for the changes in sql ... please :facepalm: besides, if i'm into old school for using escapes codes, what or how is the current sql runs this days? :umnik2: hope you can enlighten me of my inquiry (as i'm really curious and interested to know ... nothing more nothing less) :blush: cheer! ;)
Link to comment
Share on other sites

How to show the text in italics depends on how the text ends up getting shown. If that output turns into HTML that gets rendered by a browser then you would use the italic or em tags, but the syntax you showed isn't correct to do that. If the output is plain text to be opened in a text editor or whatever else then there's no way to apply formatting to plain text, you have to open it in whatever word processor and apply the formatting there. As far as SQL goes, SQL has nothing to do with styling text. The application that consumes or displays the text is what matters.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...