Replacing "some" text from an If Statement to crItalics in output?

Hello,
I have written a report which is user interactive.
CR is connected to and generated from CA Clarity.
The user enters in say "Y" in a parameter and the Answer is then passed to an If Statement in the Crystal Reports XI, but Y might mean 'enter the wording' "the cat sat on the mat eating the mouse"... which is fine and generates Ok.
The order of operation at present is:
If {field parameter} = "Y" then
TEXT := "the cat sat on the mat eating the mouse"; else ...... other text for N.
But I want it display the "on the mat" in crItalics not standard text.
Do I use the formatting tool of the field, and if so, how? or do I need to do some fancy treatment inside my If statement?
Help greatly appreciated.
Lesley.

In format field select font tab, then in formula box opposite Style enter
if {field parameter} = "Y" then 2 else 1
You might have to play about with numbers, but I think 2 = Italics and 1 = regular.
Ian

Similar Messages

  • Replacing "some" text from an If statement to crItalics?

    Hello,
    I have written a report which is user interactive.
    CR is connected to and generated from CA Clarity.
    The user enters in say "Y" in a parameter and the Answer is then passed to an If Statement in the Crystal Reports XI, but Y might mean 'enter the wording'   "the cat sat on the mat eating the mouse"... which is fine and generates Ok.
    The order of operation at present is:
    If {field parameter} = "Y" then
       TEXT := "the cat sat on the mat eating the mouse"; else ...... other text for N.
    But I want it display the "on the mat" in crItalics not standard text.
    Do I use the formatting tool of the field, and if so, how? or do I need to do some fancy treatment inside my If statement?
    Help greatly appreciated.
    Lesley.

    I assume this is a Crystal Reports question, correct?  It should probably have been posted in the Crystal Reports forum, but here's one way to do this:
    1.  Create three formulas - one for the text before the italics, one for the italicized text, and one for the text after the italics. You'll use the same If structure that you're using now (in fact, you can just copy the existing formula twice and work from there) but just include the part of the text that goes into the corresponding part of the result.
    2.  Put a text object in your report where you want this text to display.
    3.  Drag each of the formulas into the text object, placing a space in between them if necessary.
    4.  Highlight the middle formula in the text object and click on the Italics button to italicize just that portion of the display.
    If you have any sets of text that will not have italics, just put all of the text in the first formula and have the other two result in a blank string.
    -Dell

  • I did a COPY of some text from a web page, and then did a PASTE into notepad.exe (Windows). The text from each line was duplicated -- on the line! Instead of "Fred", it became "Fred Fred".

    I just recently installed Firefox for the first time. It seems nice and quick. The version is reported as: "10.0.1".
    I wanted to save some text from a web page, so navigated to that page, selected the text, and pressed the Control-C combination to COPY the selected text to the buffer. For example, the text I selected looked something like this:
    Harry
    Ron
    Hermione
    Hagrid
    Albus
    NOTE: Each line of text has a small icon to the left of the text.
    It is not reasonable to COPY and PASTE each line individually, as there can be hundreds of lines of data. I recall, however, that
    doing a COPY and PASTE on this data into Microsoft's Excel will produce cells which have the icons included in the cell, but unfortunately one cannot can't get rid of them! At least I've never found a way to remove them, but that's another issue. :)
    Once I'd done the COPY operation I switched to a Notepad window and did a PASTE operation. To my surprise, the text from each line was duplicated. It looked like this:
    Harry Harry
    Ron Ron
    Hermione Hermione
    Hagrid Hagrid
    Albus Albus
    Thinking that there might be something unusual about the web page I looked at the source, but it appeared "normal" -- that is, as expected.
    Note: I have done this operation several times before, and have never seen this occur before.
    Note: In the actual data some of the lines have quoted text in them. Curiously there is weird behavior on these lines. In some cases the entire line is shown only once. (These occur at the top of the line, and the quoted text is at the beginning of the name.)
    When quoted text appears "later" in the name, in some cases the quoted text is duplicated, and in other cases the quoted text is missing altogether! I have also noticed an error with the quoted text, and so will be reporting that to the web site which generates the HTML.
    Note that each line of "text" is "anchor text", so if I click on a name the browser navigates to a page for that name.
    I believe that the problem is that the COPY operating in Firefox is not simply copying the visible text, but also the ALT=
    Below is a sample of what the source HTML looks like:
    <a class="lnk" target="_blank" href="http://details.aspx?id=Harry">
    <img width="16" height="16" alt="Harry" class="tb_icon" src="http://.../Harry.gif"/>
    <span>Harry</span></a>
    <br/>
    (Because of the true length of the lines in the source HTML, I have stripped out the actual URL of the site.)
    To make sure I wasn't imaging this difference I repeated the process within Internet Explorer. In that browser I did not get duplicated data.

    Try:
    *Extended Copy Menu (fix version): https://addons.mozilla.org/firefox/addon/extended-copy-menu-fix-vers/

  • Replacing some text in a text file using TEXT_IO built-in package

    Hi everybody...
    I have written a form procedure in order to replace some text in a text document using the TEXT_IO built-in package. Although the text to be replaced is found , eventually the text is not replaced....
    Obviously , the new file - after the replacement - is not saved(?)..
    So , what should i do?
    The procedure is as follows...
    BEGIN
    in_file := Text_IO.Fopen(filename, 'a');
    LOOP
    Text_IO.Get_Line(in_file, linebuf);
    IF INSTR(linebuf,'C:\LIBS\')<>0
    THEN
    I:=INSTR(linebuf,'C:\LIBS\')-1;
    SUB_STR_BEFORE_VAR:=SUBSTR(linebuf,1,I);
    SUB_STR_AFTER_VAR:=SUBSTR(linebuf,I+9);
    Text_IO.PUT(in_file,SUB_STR_BEFORE_VAR||'D:/SIM/'||SUB_STR_AFTER_VAR);
    END IF;     
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN
    Text_IO.Fclose(in_file);
    END;
    WHERE :linebuf : is the variable in which the line contents are saved...
    SUB_STR_BEFORE_VAR : is the variable which keeps the substring before the first character of the search string
    SUB_STR_AFTER_VAR : is the variable which keeps the substring after the last character of the search string
    I : variable which keeps the number of character in line (variable linebuf) in which the first character of the search string is found
    Thanks , a lot
    Simon

    Hello,
    The A (Append) mode is used to add data at the end of the file. It will not replace existing data.
    Open the source file in R mode, open the target file in W mode, then rename it with the source name when finished.
    Francois

  • I'm in trouble with copy paste some text from Word to DW mx 2004

    I'am a new developer in webdesign. I'm doing my first site to
    a cliente. I'm in trouble with copy paste some text from Word to DW
    mx 2004. In the Edit / Preferences / General category i have the
    spelling dictionary in Portuguese (Brasilian). If I wrote the text
    in Portuguese directly from DW i can see the letters with ( ç
    ã é ... ) and in the browser testing ( IE 6.0.2 with sp2
    and FireFox 1.0.7 ), but with copy paste from the text in Word in
    Portuguese when i bring it to DW i can see the ( ç ã
    é ... ) in the beginnig but in the Browsers testing i can't,
    and then after a while i lose the ( ç ã o ...). Can
    anyone help me !?
    I need the work finish in next monday. Thanks a lot.

    Your line breaks will most likely be incorrect if you don't turn on the Japanese Composer.
    It is almost absolutely impossible to accomplish your goal without having a font - any font - installed on your system that has that glyph. However, if it's showing up in Word, than means that you must have that glyph installed, right? What font are you trying to use in InDesign? You might already know that Word will auto-substitute fonts when it encounters a missing glyph, so we really don't know what font is being used to render that one glyph. The whole sentence might be in MS Mincho but one glyph might be pulled from another font if MS Mincho doesn't have that glyph.
    That being said, you're going to break it if you don't know how to set Japanese type in ID. It's not something where you can just copy text out of email and paste into your English layout.

  • Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. WHat do you suggest.

    Firefox crashes when I close an e mail on AOL also it crashed once after printing some pages from my banking statement. Any ideas. I restarted a few times without any change to the crashing problem. What do you suggest.
    I am using Mozilla Beta 4. I volunteered to try it out. It's lightning fast. I really love using it. I see there is a new version of Firefox should I download it??

    I HAVE NOW SOLVED THE PROBLEM BY RUNNING WINDOWS REGISTRY REPAIR TOOL WHICH HAS OBVIOUSLY REPAIRED CORRUPT REGISTRY FILES.

  • I have purchased adobe pdf pack so i can delete some text from my converted files, this will only let me add text but not delete any, please help

    i have purchased adobe pdf pack so i can delete some text from my converted files, this will only let me add text but not delete any, please help

    I tyhink that you need ExportPDF, Adobe ExportPDF (read only). In any case, thius may help: Cancel your membership or subscription | Acrobat.com online services

  • HT201365 Downloaded iOS7 on my 4S. Mostly went well, but sometimes screens lock up (especially text, but also Settings). Find I cannot access and send texts sometimes, plus do not receive some texts from others (group messages real problem).

    Downloaded iOS7 on my 4S. Mostly went well, but sometimes screens lock up (especially text, but also Settings). Find I cannot access and send texts sometimes, plus do not receive some texts from others (group messages real problem). Any work around? And related problem: Getting told can not connect to network when trying to sign on with Apple ID to launch Facetime and Messages.

    I've restarted several times. If I restore from backup, unfortunately the backup was done after iOS7 downloaded. Now, am I wrong that "restore as new" will essentially wipe me out? If so, and having backup, you're saying essentially start over and then backup?

  • PDF missing some text from FM 9 using Acrobat 9.2

    When I generate a PDF frome FM 9, it's missing some of the text (non-bold)
    and one of the chapters is missing the chapter number in the TOC.
    It worked fine with Acrobat 6.0, but now I'm using Acrobat 9.2 and some
    text is missing. Any suggestions?  Thanks!

    You do not mention your OS, but there is a hot fix for some problems with postscript drivers that cause missing data in pdfs.
    http://support.microsoft.com/?id=952909

  • Delete some text from textItem without losing styles

    If I have a type layer with a bunch of styles applied to different style runs within the text, is it possible to delete some of the text without losing the styles applied to the remaining text?
    To accomplish the same thing, would it be possible to create a new type layer and copy some of the text from the original type layer to the new type layer while preserving the styles?

    If I have a type layer with a bunch of styles applied to different style runs within the text, is it possible to delete some of the text without losing the styles applied to the remaining text?
    To accomplish the same thing, would it be possible to create a new type layer and copy some of the text from the original type layer to the new type layer while preserving the styles?

  • How to load some text from properties file ?

    Hi again,
    problem is i dont know how can i load a text from properties file like #{xxx['key']} in managed bean, i tried to find some solution but havent seen this kind of use this file in java code. Is it supposed to work only for labels in jspx pages ?
    thanks for help ...

    Hi,
    a managed bean is nothing special from any other Java file. However, if you look at SRDemo, you find a nice way of using the same message bundle that you use on the page
    See the messageFromBundle() method in the JSFUtils class of the UserInterface project
    Frank
    P.s. You can download and setup SRDemo from JDeveloper help--> check for updates

  • Nokia 920 not receiving some texts from one person...

    I've contacted my carrier Straight Talk and they my account if fully operational. I only seem to have problems with this one specific person. Why is this happening and how do I fix?

    I too am having this problem with texts from a frequently texted friend. Her texts will now no longer open and I can't text her either. It looks like I have to delete her whole thread which goes right back to when I bought the phone which I don't really want to do. And no, she's not on an iphone, just cheap Nokia which she's had for years.
    Jurassic Park, Sam Neill to Dickie Attenborough " Mr. Hammond, the phones are working !"
    N8-00 Tesco UK 059C951, Lumia 920

  • How can I edit an existing pdf file? I just need to replace some text

    my boss wants me to amend a pdf document and I've been doing it wrong. The programs I have are illustrator, in design and photoshop hope you can help.
    thank you in advance.

    I have amended a pdf before sometime ago but totally forgotten what I did.
    But I do know it can be done
    The fact that you edited one PDF doesn't mean you can edit another. There are many possible PDF "recipes" which may or may not result in direct edit-ability.
    In your original post, you state you've "been doing it wrong."
    In post #2, you state "it didn't work."
    In post #4 you state "it doesn't allow me..."
    It would be a lot easier to advise you if we had more detail in terms of how you're going about your attempts to edit, and what actually happens when you try. For example:
         "I use the Type Tool and click/drag to select text, but it makes a new text box instead."
         "I can't select individual objects. It looks like everything is grouped in one big frame"
         "When I click on text, it gets elected like objects, with anchor points all around."

  • Not receiving some texts from a ported google voice #

    my google voice # was ported over to my droid x2 phone and i am recieving calls just fine but i am not getting any type of text messages from friends. where are they going and how do i get them to come over to me?

    Do you mean that your ported your Verizon Wireless number to Google Voice? If so, it may take a few days for the port to complete and text routing to happen correctly.  If you still aren't getting messages after a few days, you'll want to contact Google and Verizon to make sure the port happened properly.  The messages MAY be showing up in your online Google account, and you could view them there, but it's not likely until the routing is corrected.
    Or just that you directed your Google Voice number to ring on your Droid X2?  If so, you need to set up an application on your phone to recieve the messages.  Do you have the Google Voice app on your phone?  You should be able to read the messages in your online Google Voice account, and find instructions there to set it up on your phone.

  • How can I get some text from string like AB_CD_9.9.9_Sometext

    How Can I get
    only 9.9.9 from  string "AB_CD_9.9.9_Sometext" with powershell and regular expression?
    Thank you,
    Lei

    This works.
    if('AB_CD_9.9.9_Sometext' -match '\d\.\d\.\d'){$matches[0]}else{'notfound'}
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Error in calling a report from a form

    in the button trigger i wrote: DECLARE      RAP REPORT_OBJECT;      VRAP VARCHAR2(100);      BEGIN RAP:=FIND_REPORT_OBJECT('myreport'); VRAP:=RUN_REPORT_OBJECT(RAP); END; the error message is REP-0503: you did not specified the name of a report. the

  • Why won't iCal let me name a calendar?

    Everytime I try to make a new calendar in iCal, after I type in the name, it refuses to accept the name of the new calendar and just calls it "untitled".  Even when I try to then rename the "untitled" with "Home", it doesn't accept it.  This is crazy

  • IPod Classic won't charge using MA242LL/A

    I recently purchased a used MA242LL/A AV connection kit for use with my 120GB iPod classic. The MA242LL/A connection kit contains a connector cable with a firewire output, which plugs into the 2-prong power adapter, however, my iPod will not charge w

  • Help with algorithm analysis...

    Big-Oh O(f(n)) means that T(n) <= O(f(n)) (meaning that at this level the growth rate (T(n)) is bounded on top by the growth function f(n)) Big-Omega (f(n)) means that T(n) >= f(n) (meaning that at this level the growth rate is bounded on the bottom

  • FM to get Controlling area with Input Fiscal Year Variant..

    Hi, I need a Function module to get Controlling Area with Input fiscal Year Variant(PERIV). Regards, Deepthi.