anggwaponi Posted October 25, 2012 Share Posted October 25, 2012 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 ) i only want to make the part if ( isnull( brand_drug ) , ' ', ' ' + brand_drug ) in italics and to maintain the font style for 'W/F: ' cheers! Link to comment Share on other sites More sharing options...
niche Posted October 25, 2012 Share Posted October 25, 2012 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 More sharing options...
anggwaponi Posted October 25, 2012 Author Share Posted October 25, 2012 This may be what you need, but you posted in the sql sectionhttp://www.w3schools...s/css_font.asp. hi niche 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 so it will show an italicized line once converted in it's finished form as the label will be printed Zebra-printer 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 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 cheers! Link to comment Share on other sites More sharing options...
niche Posted October 25, 2012 Share Posted October 25, 2012 (edited) 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 October 25, 2012 by niche Link to comment Share on other sites More sharing options...
anggwaponi Posted October 29, 2012 Author Share Posted October 29, 2012 (edited) 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 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 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) cheers! Edited October 29, 2012 by gwapo ko Link to comment Share on other sites More sharing options...
niche Posted October 30, 2012 Share Posted October 30, 2012 Get out your user's manual. They're also called escape codes. This is real old school. Link to comment Share on other sites More sharing options...
anggwaponi Posted November 1, 2012 Author Share Posted November 1, 2012 Get out your user's manual. They're also called escape codes. This is real old school. hello niche 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 besides, if i'm into old school for using escapes codes, what or how is the current sql runs this days? hope you can enlighten me of my inquiry (as i'm really curious and interested to know ... nothing more nothing less) cheer! Link to comment Share on other sites More sharing options...
justsomeguy Posted November 1, 2012 Share Posted November 1, 2012 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 More sharing options...
niche Posted November 2, 2012 Share Posted November 2, 2012 Please confirm that your task is to print a pharmacy label in italics . Link to comment Share on other sites More sharing options...
anggwaponi Posted November 7, 2012 Author Share Posted November 7, 2012 Please confirm that your task is to print a pharmacy label in italics . yes, something like that Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now