Show part of string.

Hi all,
This shouldn't be to difficult but somehow I just can't get it to work.
I have a string like :
  String comment = "This is some long text but don't want to show all the text";I then want to display the value but not the whole text but only for example the first
10 characters so I get this effect :
This is so...........
Or it would be even better if I could only display the first 3 or so words.
Any ideas?
Thanks again for any help!
Kind regards,
Steven.

use the substring function

Similar Messages

  • When saving my illustrator file to a pdf it doesnt show all the artwork ie boxes are hidden in the pdf or only showing part of them. How can I fix this?

    when saving my illustrator file to a pdf it doesnt show all the artwork ie boxes are hidden in the pdf or only showing part of them. Even some text is hidden. I have flattened the artwork so everything is in one layer. How can I fix this?

    Hi John
    I have indicated on the attached jpeg where the problem is, basically a line of text is missing at the top and part of the feeding diagram is missing. I created the artwork in different layer and then flattened. All text has been converted to outlines, however the areas being affected have no transparency, I have used solid fills or no fills. I get the same result when I export the file as a jpeg. Hope you can help.

  • The workbook report no authorization, but related query can show part data

    Dear All,
    We meet an error, The workbook report no authorization, but related query can show part data.
    We have a workbook, it have 1 queries, and when we key in condition to run it, in one field we put on one more condition(Z3XXX = ' WZO'  & ' WZA")(User didn't have authorization for this condition),  and workbook report no authorization.
    Then we checked  authorization check log and it show "You do not have sufficient authorization on Z3XXX = ' WCO'.
    But when we execute the related query with same condition. the query can open and show WZA's data.
    I'd like to know the reason.
    thanks & Best Regards,
    Kent Yu

    Dear All,
    We meet an error, The workbook report no authorization, but related query can show part data.
    We have a workbook, it have 1 queries, and when we key in condition to run it, in one field we put on one more condition(Z3XXX = ' WZO'  & ' WZA")(User didn't have authorization for this condition),  and workbook report no authorization.
    Then we checked  authorization check log and it show "You do not have sufficient authorization on Z3XXX = ' WCO'.
    But when we execute the related query with same condition. the query can open and show WZA's data.
    I'd like to know the reason.
    thanks & Best Regards,
    Kent Yu

  • Program monitor only showing part of clip.

    Hi
    My program monitor only shows part of a clip during playback, though output to an external monitor is fine. If I stop playback and click in the monitor window, the clip is displayed correctly, but reverts back to partial when playing back.
    This started happening today after installing Matrox tools update to 5.1 and latest matrox effect patterns.  Everything else is perfect inc source monitor.
    Have tried may settings changes, new projects old projects, new clips etc etc but its the same every time.  Any ideas what has gone wrong? Its been running perfect for last 4 years.  Is it worth reinstalling CS5 and would I have to reinstall Matrox also?
    Windows 7 system 64 bit;  2 x 2,66 quad xeon processors;  4Gb ram;
    ATI 4670 512mb graphics card;
    Prem Pro CS5
    Matrox RT.X2
    Many thanks

    Hi
    My program monitor only shows part of a clip during playback, though output to an external monitor is fine. If I stop playback and click in the monitor window, the clip is displayed correctly, but reverts back to partial when playing back.
    This started happening today after installing Matrox tools update to 5.1 and latest matrox effect patterns.  Everything else is perfect inc source monitor.
    Have tried may settings changes, new projects old projects, new clips etc etc but its the same every time.  Any ideas what has gone wrong? Its been running perfect for last 4 years.  Is it worth reinstalling CS5 and would I have to reinstall Matrox also?
    Windows 7 system 64 bit;  2 x 2,66 quad xeon processors;  4Gb ram;
    ATI 4670 512mb graphics card;
    Prem Pro CS5
    Matrox RT.X2
    Many thanks

  • Part of  string

    [email protected]; [email protected],
    if I only want first part of string, I meant before ;
    is that split is the only way to handle this case?

    using split is the easiest way.
    use something like this
    &test = "[email protected];[email protected]";
    &array = Split(&test, ";");
    for &i = 1 to &array.Len
    &email = &array[&i];
    /* Do some processing */
    end-for;
    if you do not want to use split try using the following
    &string = "[email protected];[email protected];[email protected];";
    While Find(";", &string) != 0
    &pos = Find(";", &string);
    &email = Substring(&string, 1, &pos - 1);
    &string = Substring(&string, &pos + 1, Len(&string) - &pos);
    End-While;
    Really, there are a lot of different possibilities of achieving what you want ...
    Edited by: Hakan Biroglu on Jul 10, 2012 4:15 PM

  • String function in Oracle 9i to find part of string having two positions

    Hi,
    We need to extract the part of string having start and end position.
    Like
    Suppose the string is "TYPE ref_cur_type IS REF CURSOR" and need to extract name of the ref cursor i.e ref_cur_type.The length of the output is not fixed. But not able to extract the exact string.
    Thanks,

    What is the criteria for part of string? Do you give start character and end character position like 3,9 etc? Or its just that the word that comes between two spaces?
    Cheers
    Sarma.

  • I have adobe illustrator CS5. When I save a document as a pdf and open it again later to edit Adobe reader can't read the whole document because it only shows part of the document. It is very frustrating. How can I fix this?

    I have adobe illustrator CS5. When I save a document as a pdf and open it again later to edit Adobe reader can't read the whole document because it only shows part of the document. It is very frustrating. How can I fix this?

    keokipineapples schrieb:
    I do have all of my files I am working on located on an external drive. I plan to transfer them directly to the hard drive
    Transfer them to your harddisk immediately.
    External drives are not offiially supported and the source of errors of all kinds including complete loss of files.
    Illustrator support for networks and removable media

  • Dreamweaver Design view does not show parts of the page

    Hello all,
    I was working on a page update - page was created using a
    template so
    that the client can add content with Contribute - and have
    discovered
    that suddenly whole sections of the page are no longer
    visible in Design
    Mode. This caused me some panic until I viewed in code view
    and found
    everything still in there. Viewing in browser shows the page
    there in
    entirety too, and uploads just fine. But no matter what I do
    - restart
    the program, restart the computer - nothing changes, the page
    design
    does not show parts of this page. Everything is in an
    editable area and
    should be visible.
    I have been editing the code as that was my only option, but
    now I have
    heard that my client cannot view those sections of the page
    in her
    Contribute either.
    The page is here:
    http://www.craft-design.ns.ca
    Any help would be gratefully received.
    Thanks
    Ellie

    > (I find it strange that it is now like this, as I
    understood that th was
    > depracated? So I went through and removed them all.)
    <th> deprecated? Certainly not.
    > There are editable regions in the page as it has been
    working for the past
    > year and a half. I find that after an amount of editing
    by Contribute
    > users, the pages do tend to fall apart.
    Normal template files have two editable regions in the head
    of the page -
    doctitle, and head
    The one you linked does not.
    That's what I was talking about.
    > Contribute sounds a great thing, but is a huge pain and
    ends up costing me
    > money fixing the messes my clients end up making, though
    this should not
    > be possible...
    I have stopped recommending it to my clients.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Ellie" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks Murray,
    >
    > I see all this.
    >
    > (I find it strange that it is now like this, as I
    understood that th was
    > depracated? So I went through and removed them all.)
    >
    > There are editable regions in the page as it has been
    working for the past
    > year and a half. I find that after an amount of editing
    by Contribute
    > users, the pages do tend to fall apart.
    >
    > I will have to remake the template and remake the page
    from that.
    >
    > Strange thing is it was working perfectly well before.
    >
    > Thanks for the help, Murray.
    >
    > Contribute sounds a great thing, but is a huge pain and
    ends up costing me
    > money fixing the messes my clients end up making, though
    this should not
    > be possible...
    >
    > Ellie
    >
    > Murray *ACE* wrote:
    >
    >> You have no editable regions in the head of that
    page - why is that?
    >>
    >> As for the display in DW, perhaps it's the 175
    validation errors that the
    >> W3C validator finds on the page?
    >>
    >>
    http://validator.w3.org/check?verbose=1&uri=http://www.craft-design.ns.ca/mbg_past_shows.h tml
    >>
    >> Most of these are serious coding problems....
    >>
    >

  • How to used REGEXP_REPLACE  for replace part of string ?

    hi
    How can i replace part of string as following , i want to replace space in date by "-"
    SELECT
    REGEXP_REPLACE(upper('Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012'),
    '[0-9]{1,2}[^0-9](JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC)[^0-9][0-9]{4}',
    ' ','-') "REGEXP_REPLACE"
    FROM DUAL;
    the output will be like this
    Daivd bought stuff by 2000 USD on 12-Sep-2012 from KL and left kl on 20-Sep-2012
    regards

    I thought the questions is answered.
    Your code will not work, because the alternate expression applies only to the four digit year and the month.
    If you want to recognize both date formats with one expressions, you have to group the complete expressions.
    The disadvantage of this would be, that the backreferences would not work in the same way because you would have more groups.
    I advice to use two separate regular expressions for this task.
    Take a look at the following example if you simply want to fill the gaps with -:
    with yourtable as
      select 'Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012' text from dual union all
      select 'Daivd bought stuff by 2000 USD on Sep, 20 2012 from KL and left kl on Sep, 20 2012' text from dual 
    SELECT
    REGEXP_REPLACE(
    REGEXP_REPLACE(text,
    '([0-9]{1,2}) (JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC) ([0-9]{4})','\1-\2-\3',1,0,'i'),
    '(JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC), ([0-9]{1,2}) ([0-9]{4})','\1-\2-\3',1,0,'i') regexp_replace
    FROM yourtable;If you want same output-format for both date formats you could use this:
    with yourtable as
      select 'Daivd bought stuff by 2000 USD on 12 Sep 2012 from KL and left kl on 20 Sep 2012' text from dual union all
      select 'Daivd bought stuff by 2000 USD on Sep, 20 2012 from KL and left kl on Sep, 20 2012' text from dual 
    SELECT
    REGEXP_REPLACE(
    REGEXP_REPLACE(text,
    '([0-9]{1,2}) (JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC) ([0-9]{4})','\1-\2-\3',1,0,'i'),
    '(JAN|FEB|MAR|APR|JUN|JUL|AUG|SEP|OCT|NOV|DEC), ([0-9]{1,2}) ([0-9]{4})','\2-\1-\3',1,0,'i') regexp_replace
    FROM yourtable;Edited by: hm on 25.09.2012 22:00

  • Dreamweaver cs5 does not show part of the properties tools...

    Hello Everyone,
    Dreamweaver cs5 does not show part of the properties tools on the bottom of the page, i.e. on HTML : TITLE and TARGET and on CSS: BOLD, ITALIC and PARAGRAPHS sections.
    I have DW CS5 and WIN 7 Home Premium 64 bit, I have uninstalled and reinstalled several times but no luck, I tried to clean through regedit still no show.
    I have onother computer installed same DW CS5 works OK.
    Is there any folders keeping the old DW CS5 files or how can I uninstall all the traces complete DW CS5.
    Thank you in advance
    Denis

    Make sure your settings are set to 96 dpi, for the font.
    desktop right click
    personalize
    change to default 96 dpi
    you will be good to go

  • Get last part of strings

    Hello,
    I have a table like bellow
    id group_name
    1 TW Product Analyst PE
    2 TW Tech Support Analyst SP
    3 TW Tech Support Manager CE
    4 TW Manager SP
    5 Another Group Without End With 2 Characters
    6 TW Product Coodinator MG
    I would like to get just the last part of strings that ends with 2 characters(these 2 characters are states in Brazil).
    The query answer need to seems like bellow
    id group_name
    1 PE
    2 SP
    3 CE
    4 SP
    6 MG
    I appreciate any kind of help.
    Thanks

    user5495111 wrote:
    Another way
    with d as (
    Select 1 id, 'TW Product Analyst PE' group_name from dual union all
    Select 2, 'TW Tech Support Analyst SP' from dual union all
    Select 3, 'TW Tech Support Manager CE' from dual union all
    Select 4, 'TW Manager SP' from dual union all
    Select 5, 'Another Group Without End With 2 Characters' from dual union all
    Select 6, 'TW Product Coodinator MG' from dual
    select id, substr(group_name, -2)
    from d where id not in(select id from d where trim(substr(group_name,-3,1)) is not null)
    This will not work if the fifth row id is null
    with d as (
    Select 1 id, 'TW Product Analyst PE' group_name from dual union all
    Select 2, 'TW Tech Support Analyst SP' from dual union all
    Select 3, 'TW Tech Support Manager CE' from dual union all
    Select 4, 'TW Manager SP' from dual union all
    Select null, 'Another Group Without End With 2 Characters' from dual union all
    Select 6, 'TW Product Coodinator MG' from dual
    select id, substr(group_name, -2)
    from d where id not in(select id from d where trim(substr(group_name,-3,1)) is not null)
    no rows selectedInstead or NOT IN use IN Clause
    with d as (
    Select 1 id, 'TW Product Analyst PE' group_name from dual union all
    Select 2, 'TW Tech Support Analyst SP' from dual union all
    Select 3, 'TW Tech Support Manager CE' from dual union all
    Select 4, 'TW Manager SP' from dual union all
    Select null, 'Another Group Without End With 2 Characters' from dual union all
    Select 6, 'TW Product Coodinator MG' from dual
    select id, substr(group_name, -2)
    from d  a where id in  (
         select id from d b where trim(substr(group_name,-3,1)) is null)
            ID SU
             1 PE
             2 SP
             3 CE
             4 SP
             6 MG
    5 rows selected.SS

  • Safari shows parts of previously visited apps/websites/programs instead of normal background of some websites

    Can someone please help me with this problem?
    Parts of websites/programs/apps I previously opened show in the background of safari instead of the normal background of the website. It only happens at some of the websites I visit. Is it an error in the website or in safari?
    Thnx!

    Read this whole message before doing anything.
    Back up all data.
    Quit Safari if it’s running. Then select
     ▹ Force Quit…
    from the menu bar. A small window will open with a list of running applications. Safari may appear in that list, even though you quit it. If so, select it and press return. Close the window.
    Step 1
    If Adobe Flash Player is installed, select
     ▹ System Preferences... ▹ Flash Player ▹ Advanced
    and click Delete All. Close the preference pane.
    Hold down the option key and select
    Go ▹ Library
    from the Finder menu bar. Delete the following items from the Library folder (some may not exist):
    Caches/com.apple.Safari
    Caches/com.apple.WebKit.PluginProcess
    Caches/com.apple.WebProcess
    Caches/Metadata/Safari
    Preferences/com.apple.WebKit.PluginHost.plist
    Preferences/com.apple.WebKit.PluginProcess.plist
    Saved Application State/com.apple.Safari.savedState
    Leave the Library folder open. Try Safari again. If it works now, stop here. Close the Library folder. If you still have problems, continue.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    open $TMPDIR../C
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Quit Safari again. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with Safari. If you use another browser, you may have to press the return key after pasting. A folder should open. Delete the following items from the folder, if they exist:
    com.apple.Safari
    Anything with a name that begins "com.apple.Web"
    Quit Terminal. Close the folder. Launch Safari and test.
    Step 3
    If Safari still doesn’t work, quit, go back to the Finder and move the following items from the open Library folder to the Desktop (some may not exist):
    Cookies/Cookies.binarycookies
    Internet Plug-Ins
    Preferences/ByHost/com.apple.Safari.*.plist
    Preferences/com.apple.Safari.Extensions.plist
    Preferences/com.apple.Safari.LSSharedFileList.plist
    Preferences/com.apple.Safari.plist
    Preferences/com.apple.WebFoundation.plist
    PubSub/Database
    Safari
    SyncedPreferences/com.apple.Safari.plist
    Here, * stands for a long string of letters, numbers, and dashes.
    Note 1: You are not moving the Safari application. You’re moving a folder named “Safari.”
    Note 2: This step will remove your Safari extensions, if any, and their settings. If you choose to reinstall them, do so one at a time, testing each time to make sure you haven’t restored the problem.
    Try again. Your settings and bookmarks will be lost. The default set of bookmarks will be restored. Delete them all.
    If Safari is now working normally (apart from the lost settings), look inside the “Safari” folder on the Desktop for a file named “Bookmarks.plist”. Select
    File ▹ Import Bookmarks...
    from the Safari menu bar. Import from that file. Recreate the rest of your Safari settings. You can then delete the items you moved to the Desktop.
    If the issue is still not resolved, quit Safari again and put all the items you moved to the Desktop back where they were, overwriting the newer ones that may have been created in their place. You don’t need to replace the files you deleted in step 1. Stop here and post again.
    If you don’t like the results of step 3, you can undo it completely by quitting Safari and restoring the items you moved or deleted in that step from your backup, overwriting any that were created in their place.

  • When i use pogo, on the risk game for instance, when i click on a game room, a window pops up and immdediately reduces in size, this size only shows part of the battle screen; i have tried resetting the zoom feature, no luck.

    i have seen this before on my home PC (on a lap top now) it is impossible for me to correct so i have to use IE to play pogo (i dont like IE it is slower) i click on a game, i go to a game room, and a window normally pops up showing the tables. normally i click on a seat and it takes me to a new window and the game board. NOW, when this first window pops up, it is aboout 1/4 size of my screen, but immediately reduces in size to about 1/6 of my screen. wnen the game loads, i cannot view the whole screen only part of the screen, as if it is zoomed in. I tried your suggestion and reset the zoom, no help.... i changed the zoom level manally.... no help.
    this also happens in scrabble and most other games. it is related to the java i am sure, but it only happens on firefox. How do i correct this. I have uninstalled, and reinstalled firefox. i have had this happen on the older version of firefox. it happens on multiple computers so it isnt just one computer.
    HELP!!!!!
    please

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

  • How to separate part of string using separator in java

    Hi
    I want to separate a part of a string having separator (/)
    FirstName / MiddleName / LastName
    Please help me

    MayureshJoshi wrote:
    Hi
    I want to separate a part of a string having separator (/)
    FirstName / MiddleName / LastName
    Please help meString.split(...)

  • Adobe Presenter panel shows garbage Arabic strings

    Hi,
    We are working on a localizing some PPTX files into Arabic and publishing them using Adobe Presenter (SCORM output).
    After publishing in Adobe Presenter, we tried to view the course using Internet Explorer, we found that some strings on the course's right panel appear as junk characters.
    Viewing the same course using another browser (Google Chrome), completely shows all strings.
    Is there any fix that can be done to ensure all Arabic strings are properly shown?
    http://
    Thank you,
    Jenn

    Hi Vikram,
    Thank you for your suggestion.
    The machine we've used has Arabic language pack installed in it.
    The machine was booted to Arabic locale too prior to publishing the course.
    However, these did not solved the issue at all.
    What we found as resolution is to manually fix on the xml file and declare the language for the course.
    One thing that we are now trying to resolve is the Notes section of the published course where the content are not flipped (right-to-left) correctly.
    Is Arabic (including Hebrew) going to be fully supported for Adobe Presenter?

Maybe you are looking for