Split  text into  number and  text

Hi ,
My problem is something like this....." 5 feet 6 inch ". This
is a single string(varchar). since i cannot calculate value (6*5)
here .i need to make it taking from database separate. And later
calculate value.Is there any possibility throught which i can do
something like that.?
Thanks in advance.

I could do it for that particular record, but unless every
record has the same structure, it will be tough if not impossible.
How is the data getting into the db to start with? If you are
accepting free text, you might get values like five ft seven, five
and a half ft, etc.
Is it too late to re-design the db so that you have a numeric
field for that measurment?

Similar Messages

  • My phone constantly turns it self on and off, it won't let my messages load I carnt text or receive and texts or calls, I have updated the new iso7, can anyone help?

    My phone constantly turns it self on and off, it won't let my messages load I carnt text or receive and texts or calls, I have updated the new iso7, can anyone help?

    Hello Bricky2013,
    The following article has some useful tips that can help stabilize your iPhone.
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Cheers,
    Allen

  • Text to number and decimalSeparator

    Hi, I need to convert a text (in a textImput) to Number.
    Some times the user type: 1000.10 or 1000,10 do represent the
    same number (one thousand and 10 cents)
    the problema is that 1000,10 gives me NaN using the simple
    way: Number(mytxt.text)
    How can I solve this problem?

    If there is no thousands separator (Like: english 1,000.00
    represents one thousand; spanish/german: 1.000,00 represents the
    same thousand):
    I'd replace the comma with a decimal point (using indexOf to
    find it), and later use Number() to convert:
    s = textInput.text;
    if (s.indexOf(",") != -1)
    s = s.substr(0, s.indexOf(",") + "." +
    s.substr(s.indexOf(",")+1, s.length - 1 - s.indexOf(",");
    number = Number(s);
    I hope is readable :-), and helps

  • Reading fixed length flatfile & splitting it into header and lineitem data

    Hi Friends,
    I am reading a fixed length flat file from application server into an Internal table.
    But problem is, data in flat file is in the below format with fixed start and end positions.
    1 - 78 -  control header
    1 - 581 - Invoice header data
    1 - 411 - Invoice Line item data
    1 - 45 -   trailer record
    There will be one control header and one trailer record per file and number of invoice headers and its line items can vary.
    There is unique identifiers to identify as below.
    Control header - starts with 'CHR'
    Invoice Header starts with - '000'
    Invoice Lineitem stats with - '001'
    trailer record - starts with 'TRL'
    So its like
    CHR.......control  data..(79)000.....header data...(660)001....lineitem1...(1481)001...lineitem2....multiples of 411 and 581 and ends with... TRL...trailer record..
    (position)
    I am first reading the data set and store in internal table with a field of 255char.
    by looping on above ITAB i have to split it into Header records and line item records.
    Did anyone face this kind of scenario before. If yes appreciate if you can throw some ideas on logic to split this data.
    Any help in splitting up the data is highly appreciated.
    Regards,
    Simha
    ITAB declaration
    DATA: BEGIN OF ITAB OCCURS 0,
                   FIELD(255),
               END OF ITAB,
                lt_header type table of ZTHDR,
                lt_lineitem type table of ZTLINITM.

    Hi,
    i am sending sample code which resembles your requiremeant.
    data: BEGIN OF it_input OCCURS 0, "used for store all the data in one line.
          line type string ,
          END OF it_input,
          it_header type TABLE OF string WITH HEADER LINE,"use to store all header with corresponding items
          it_item   type TABLE OF string WITH HEADER LINE.."used to store all item data
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'd:\test.txt'
      FILETYPE                      = 'ASC'
      HAS_FIELD_SEPARATOR           = ' '
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      tables
        data_tab                      = it_input
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT  it_input.
       write : it_input-line.
    ENDLOOP.
    before doing the below steps just takethe controle record and trail record cutt of from the table input based up on the length
      split it_input-line AT '000' INTO TABLE it_header IN CHARACTER MODE.
      LOOP AT  it_header.
        split it_header AT '0001' INTO TABLE it_item IN CHARACTER MODE.
        write :/ it_header.
      ENDLOOP.
    after this you need to cut the records in tocorresponding  fields in to respective tables by putting loop on item and header table as i decleared above.
    i think this may solve your problem you need to keep some minnor effort.
    Regaurds,
    Sree..

  • Making string item text into a scrollable text

    does anyone have any advice or links which can give me details on how to make a stringtext item into scrollable text .thank you .

    Actually, I think the question is a little more complex than at it at first reads.
    As Viking points out, there's no correlation between the text object "abc" and a variable named abc. Both can peacefully coexist in the same script.
    However, I suspect that what you're asking for is the ability to create ad-hoc, on-the-fly variables using some unknown/variable input as the AS variable name. That's not possible (at least not without an insane amount of work, heartache, and blood pressure pills).
    Depending on your use case it may be easier to create records with your data, using the (unknown) data as the label along with some stored value:
    set myVariables to {}
    repeat 3 times
      set varName to text returned of (display dialog "Enter a variable name:" default answer "")
      set varVal to text returned of (display dialog "Enter value for " & varName default answer "")
      copy {label:varName, val:varVal} to end of myVariables
    end repeat
    return myVariables
    but there's no easy way to create a variable in your script based on the user input.

  • Splitting Clip into Scene and managing everything

    Hello (this is for Adobe Premiere Element 10),
    Can scene be saved somewhere ? i.e. I have a 10 minute video clip which I like to make a movie with. I want to split it into 4 scene and then use these scene in my project.
    The only way I see how to do scene is to bring the whole video in the sceneline, set in/out point then drag again the whole video in the sceneline and set different in/out.
    I would have tought that it be a bit like  lightroom where you make a 'virtual copy' of the video which result in a scene and you then work with that scene.
    Especially since there does not seem to be a  way to put a scene on the side. i.e. you can either delete it completely from the scenline or leave it there. All the training video people have convenient 5-10 sec video clip which does not really reflect reality (at least not mine )
    Am I wrong in thinking this way ?
    thank in  advance
    dave

    Dave,
    Welcome to the forum.
    The easiest workflow, at least to me, yielding the ultimate quality results, is as follows:
    Import the large Clip into your Project, where it will appear in the Project Panel
    Dbl-click on it there, to Open it into the Source Monitor
    Set the In Point, for the first "sub-clip," and then navigate to the end of where wish that "sub-clip" to end, and set the Out Point
    Drag that Instance of the Clip (now seen as the "sub-clip" to the Timeline
    Go back to the Source Monitor, and navigate to where you want the next "sub-clip" to begin, setting its In Point, and then navigate to where you wish to have that "sub-clip" end, and set it Out Point
    Drag that Instance of the Clip to the Timeline
    Repeat for as many "sub-clips," as you need
    That is how most video editors work. PrPro even takes it to a whole new level with the Trim Monitor, for four-point editing.
    Hope that helps, and good luck,
    Hunt
    PS - I put quotes around the lower-case "sub-clips," because in some NLE (Non Linear Editor) programs, there is an official "Sub-Cliip" function, which is similar to what we are doing, but with some major differences. If one were to Google the term "sub-clip," they may well get confused by some of what they found, as PrE does not support the Export of true "Sub-clips."
    Also, one can have many Instances of a Clip, and each can be identical, or can be vastly different, as we are doing above.

  • Select-options split date into month and assign to low and high

    Hi,
       In my select-options i am giving BEDAT (01.04.2004 TO 30.10.2005).I need to split month and
    year in separate fields.that is
    select-option_low-month in one field
    select-option_high-month in second field
    select-option_low-year in third field
    select-option_high-year in fourth field.
    Finally i need to move these four fields to it_final.
    select * from mbewh into corresponding fields of table it_mbewh
               for all entries in it_final where matnr = it_final-matnr and
               bwkey = it_final-werks and lpmon = ? and lfgja = ?
               and  bklas <> ' '.
    what input i have to give in lpmon and lfgja in select query to get for lfmon (04 to 10)
    and lfgja (2004 to 2005).
    suggest some ideas.

    Hi ,
    Can you please check the following code.
    Hi ,
    data :  l_low_yr(4),
              l_high_yr(4),
              l_low_mon(2),
              l_high_mon(2).
    Splitting the select option date to month and year into low and higher values
    l_low_yr        =   s_date-low+00(04). "  Year low value from the date range
    l_low_mon    =   s_date-low+04(02). "  Month low value from the date range
    l_high_yr      =   s_date-high+00(04)."  Year high value from the date range
    l_high_mon   =   s_date-high+04(02)." Month high value from the date range
    selecting the data from the table mbewh based on some conditions.
    select * from mbewh into corresponding fields of table it_mbewh
               for all entries in it_final where matnr = it_final-matnr and
               bwkey = it_final-werks and lfmon BETWEEN  l_low_mon and l_high_mon
    and lfgja BETWEEN l_low_yr and l_high_yr   and  bklas EQ  ' '.
    This select will retrive the desired data records from the table MBEWH.
    Please let me know if this works according to your requirement.
    Thanks and Regards
    Saritha

  • "Import" splits takes into clips and loses footage

    When importing footage from both my Sony HDV camcorder (directly) and my Sony DVCAM camcorder (via a Sony DSR-11 deck) to my Mac Mini using firewire cables, FCPX breaks some takes into multiple shorter clips.
    Whilst this could just be annoying, it's much worse than that as it loses footage as it does it, at the unwanted clip breaks.
    FCP Studio used to give the option of auto splitting imports into clips, FCPX appears not to.
    Any ideas for preventing the automatic splitting of takes?
    Thanks.
    P.S. Most recently, my one minute of colour bars is now six separate clips!

    I don't run iMovie 08, so am not entirely familiar with it's use. I think that you can export each iMovie 08 clip to a new iMovie 08 project, then export that new project (containing one clip) to Quicktime, and from there import into iM6 for editing.
    Here are a couple of threads for you to look at.
    http://discussions.apple.com/thread.jspa?messageID=6959493&#6959493
    http://discussions.apple.com/thread.jspa?messageID=6855152&#6855152

  • Can't paste text nor paths and text

    What is wrong?
    I have a layer with some paths and lines of text.
    I copied some of the paths and text and tried to paste in another layer or document; the paths are not pasted and all the text becomes a single line.
    When I copied only the paths, it is pasted correctly.
    If I copied only the text and tried to paste in another layer or document, all the text becomes a single line.
    If I drag the selection from one layer to another using the panel, it works. If I drag the selection from the artboard to another document, it works.
    But these operations sometimes are not convenient.
    What I would like is to copy the items, target a layer in another document and paste there.
    With a large document with dozens of layers and a lot of text the drag and drop solution is not feasible.

    Monika
    You hit the nail on the head. The problem was the "FormatMatch" clipboard extension for Mac, that changes all copied text to plain text.
    Thanks.
    Furia

  • Get the long text into BADI from text editor

    hi all,
    I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
    the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
    Can anybody help how can i get the long text to the BADI.
    Regards,
    Madhavi

    Hi
    Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
    IF_LONGTEXTS_MM~GET_TEXTOBJECT
    IF_LONGTEXTS_MM~GET_TYPES
    IF_LONGTEXTS_MM~GET_TEXT
    IF_LONGTEXTS_MM~SET_TEXT
    IF_LONGTEXTS_MM~ADOPT_TEXT
    IF_LONGTEXTS_MM~DELETE_TEXT
    IF_LONGTEXTS_MM~EDIT_TEXT
    Regards
    Eduardo

  • Is there any way to paste formatted text into muse, and have it stay formatted?

    Greetings,
    I have a client who sends material to me with intricate formatting (italics and bold only) for posting on the website. Is there any way to avoid losing that formatting when I paste it into Muse? If not, I have several hours of work to format everything all over again, every time he sends an update? Any suggestions?
    Thanks,
    Lori

    Hello Muse Community,
    Ok, so I have figured out how to do this. For those of us who have a large amount of formatted text to paste on a website, but don't want to have to take the time to format every individual word or line, the solution is to embed the following html code:
    <iframe src="filename.html" width="600" height="300" scrolling="yes"></iframe>
    and replace "filename.html" with a the name of a plain html document created from some other software where you can paste formatted text. Muse will pick up the html document as an included file in a window with a scrollbar. It's actually pretty slick.
    Best wishes,
    Lori

  • Unable to key text into html and shtml pages

    I have several websites coded in Dreamweaver that I have maintained for years.   I have never had any difficulting making changes to existing pages.  For the first time ever, all of my shtml pages will not permit any text changes and a body tag appears at the end of all previousy entered text and links.
    An example of a page that has the problem is here:  www.savesandyspring.org/multimedia.shtml
    On this page I can no longer edit the heading "Multimedia" or the link below it.  I can only start coding after all previously keyed text and links.
    I would greatly appreciate any help that anyone can provide.  Thanks for taking the time to read my post.

    You're using a DW template file, I can see.
    <!--BEGIN INSERT CONTENT-->
    <h2>Multimedia</h2>
    <p class="style4"> <a href="mms://mms.savesandyspring.org/savesandy/hearing-101107rev.wmv">10/11/2007 County and State Legislators learn of Farm Road issue at annual Priorities Hearing. </a></p>
    <p> </p>
    <!-- InstanceBeginEditable name="body" -->
    <!-- InstanceEndEditable -->
    <!--END INSERT CONTENT-->
    The 'Editable' content should come after the 'InstanceBeginEditable' tag. You'll have to open your DW template file in order to make this change of moving your edit element inside of InstanceBeginEditable region.

  • Splitting date into year and month

    Hi,
       I am getting it_final-bedat (dd.mm.yyyy).I need to split month as well as year in separate fields
    in the internal table.tell some ideas.

    hi badri , try this program , hope this is u r requirement
    data : BEGIN OF itab OCCURS 0 ,
           pernr like  pa0001-pernr,
           begda like  pa0002-begda,
          END OF itab .
    data : BEGIN OF itab2 OCCURS 0 ,
           pernr like  pa0001-pernr,
           d_date type c LENGTH 2  ,
           d_month type c length 2,
           d_year  type c length 4 ,
          END OF itab2 .
    select pernr begda from pa0001 into CORRESPONDING FIELDS OF TABLE itab WHERE pernr eq 1000.
    loop at itab WHERE pernr eq 1000 .
    clear itab2[].
        itab2-pernr = itab-pernr.
        itab2-d_year = itab-begda+0(4).
        itab2-d_month = itab-begda+4(2).
        itab2-d_date = itab-begda+6(2).
        append itab2.
        write :/ itab2-pernr,
                 itab2-d_date,
                 itab2-d_month,
                 itab2-d_year.
        endloop .
    regards
    chinnaiya

  • Text in header and text in footer in sap scipt ?

    how to print header in ist page and footer in last page in sap script?

    Hi,
    you can do one thing dsiplay Header as it is in the first page and i think you will not have any problem with this. Coming to Footer check whether next-page is equal to 0, if so that page itself is the last page based on this condition then display the data.
    Second thing is if you are using internal table to display the data then directly u can use 'at first' control  level and display footer data after displaying all the data of the internal table.
    Reward if it is useful.
    Regards,
    Padmaja.

  • Verizon bill showing I texted 8012222269 internationally and I did not

      Good evening,
    Some back-story:
    Ever since the "premium messaging" debacle I was involved in with regard to text messaging on my LG Env3 I have reviewed closely all text message charges on my Verizon bill. On the LGE3 I received some spam text messages from some number and ignored them; not understanding I was being charged for these messages I was receiving. I had contacted Verizon before about this issue several months ago because I thought my phone bill was unusually high. The customer representative said it was my premium messaging. Foolish me was thinking ok maybe I sent some high mgb texting or something but the Verizon rep didn't go into any other explanation than that. This went on for a few months more then I finally got ticked seeing $9.99 on my bill for the past few months and I contacted customer support again and this time this Verizon agent informed me that somehow some way my number was obtained from a third party even when I was not aware of it and I must have signed up for some service. I informed him I would never authorize someone to charge me $9.99 on my Verizon bill if I had no idea what service I was getting. He said that this was considered premium messaging which is a nice fancy way of saying 3rd parties can bill you via your Verizon bill for "services" you may not even know you are receiving just because somehow your number got in a roster of contacts that these scheming places use. I googled the number of where the messages were originating and it said something about "Fonesocial" or some such I had never heard of before. The Verizon rep this time said that they could place a block on all premium messaging on my phone and they agreed to credit back six months of these charges because I had called about them before and was offered no assistance or explanation by the customer agent i spoke with several months back when the charges first appeared. (Normally I get good customer service support from Verizon but there are times I get people who are not worth wasting my breath on) Another thing Verizon doesn't state up front is that your phone isn't automatically set to default of blocking third party messaging. You have to take the initiative to do it rather than it being set up that way to begin with which I think is a huge inconvenience and unfair to the customer because you shouldn’t have to go through a mess and receive extra charges before realizing “premium messaging” in Verizon language means “we are going to let 3rd parties text you absolute junk and charge you crazy fees then pay them while we charge your bill oh and by the way we don’t really bother to ask you if you are aware of how you got signed up for this 3rd party’s service or if you even know what you are getting”
    Now....to my current issue that I wonder if anyone else has...In October I upgraded to the Apple Iphone 4. I was reviewing my recent bill and noted that I incurred $2.50 of text message charges when I have an unlimited text plan. The bill charge details gave off the appearance that these were international text messages. My thought was that when I switched to the iphone and changed data plans my block of premium messaging got removed and I was incurring text messages from this number. I called and spoke with a Verizon customer service rep today and she said that the messages were sent from my phone. I informed her I did not send the messages I do not know anyone internationally and I would not be texting internationally. I asked if I had the premium message block on and she said that yes the block was still on and she could block me from receiving text messages and calls but that she could not place a block on a text message I sent. I said again, ma’am I did not send these. She said she would try to get me some type of customer courtesy credit for the $2.50 and I said it is $2.50 that’s not a lot but my point I’m trying to make is that I did not text this number I do not know this number and you can’t tell me what was said to this number in text messages that are stated to be originating from my phone number. The first text message from my bill began on November 26th. I was flying that day…landed in Orlando Intl. airport. Then the 4th of December, two on the 13th of Dec, one on Dec 16th one on the 23rd 3 on 12/24 and one on 12/25. I asked Verizon rep if someone could have hacked my phone and she said if my number was cloned I would have incurred all sorts of phone charges on my Verizon bill so my number would not have been cloned. She said maybe someone got my phone and sent the messages I told her I keep my phone with me at all times and it’s locked. I expressed the concern of what the messages may have said given my current employment situation the thought of having messages fired off to a supposed international number referencing my number as origination point and my not knowing what the messages said causes me great concern. I could tell the Verizon rep was getting irritated with me and I was getting irritated though I kept saying I was not upset with her personally as I knew she was just doing her job but either there was a data validity issue with the Verizon billing service or someone was able to somehow send text messages referencing my number and that was what concerned me how my number could be co-opted like that and Verizon just bill me. She said that I would have to get court order subpoena for them to see what the messages said. She said that at first she thought I was just crazy and then apologized for telling me that but then she realized I must really be upset based on the tone in my voice and I wasn’t just trying to get out of $2.50 charge. I said I was very upset because there’s no explanation being provided as to how Verizon records show I sent texts to a number and I didn’t send them. These were a quarter a pop. Next month what if there are even more $$ involved.  She said she had not had any other complaints like this before but did grant me the $2.50 credit after speaking to her supervisor. Still no explanation from Verizon and I had to say over and over again to the representative that I did not send these messages and there is no way anyone could have just picked up my phone and sent them. I understand that customer agents have to be skeptical of callers saying they didn't do something to incur a charge but I have been a Verizon customer for almost ten years now and I have better things to do than engage in an argument over $2.50 without good reason. I Googled the number 8012222269 and found several people complaining about receiving messages from this number but no one stating that they have been accused (via billing) of SENDING messages to this number. Has anyone else been saddled with charges of text messages to a number they did not send and HOW technically speaking is this allowed to happen? How is this NOT a data validity issue? I am well aware there are people who will take a phone and text but based on the dates and times referenced on my bill detailed charges it is just not possible. I was in a plane in the air when the first message was sent on 11/26 and I had my phone off.  To add insult to injury I think the Verizon rep still things I'm just making a big deal out of this and I MUST have texted this number and just didn't realize it or someone obtained my phone and did it. In other words...no problem on their end I'm just a nut but they appreciate my patronage so they will extend a courtesy credit for $2.50. I have to say...as much as I like to laugh at the AT&T people in my office that have service bars when I've got this great Verizon coverage...I feel a bit kicked in the teeth. Otherwise I would have never signed on to this forum for discussion.  And look, I want honest people who have been having issues with this please if you want to come on here and spam/flame me about how I am too stupid and need to read fine print blah blah just jump off a log I am not going to respond to you and you will not get a rise out of me. The issue here is text messages coming from MY number showing up on MY bill that I DID NOT and could not have sent.  Thanks. 

    You said "The messages i received when i did not have signal are not showing up."
    How do you know received them?
    If the sender got a message that the Messagers were not delivered than they were never delivered and the only way for you to get them is for the sender to resent them

Maybe you are looking for