Jump to content

italicize fonts or italics words


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 post
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 post
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 post
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 post
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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...