Correct use of trim?

I have a script which includes
import mx.utils.StringUtil;
and
if (trim(customersAccount.text) == "/")
However, the 'if' line of text throws up a "1180 Call to
possibly undefined method trim." error
What have I done wrong please?

If you want to use this function inline...
private function Test():void
var test:String = ' /';
if (StringUtil.trim(test) == '/') {
Alert.show("Yes");
else
Alert.show("No");

Similar Messages

  • I cannot "save" my newly reduced size video after using the "TRIM" feature...I get "The Operation could not be completed". Why?

    I would start with my original AVI file, then hit duplicate to get a duplicate file to work on....I then would use the "TRIM" feature to shorten the video. Then when I hit "close", and it prompted me to name the newly reduced file, and saved it appropriately.So I did this procedure with two of my AVI format videos and it worked flawlessly.
    But I have tried to do this same procedure with a half a dozen more AVI videos and it will not allow me to name the modified file after I have "trimmed it" and save it...when I enter the name for the modified file and hit "close", I get the message "The operation could not be completed".  Why isn't it allowing me to save the files??
    (I am working with OSX 10.7.3, Quicktime Player 10.1   iMac 3.06GHz Intel Core i3)

    my os is windows 7.  elements 12 worked fine for many months then save for the web stopped working

  • Color correcting using gray card & FCP6?

    with still photography, I can color correct rather quickly using a WhiBal card from http://www.rawworkflow.com/products/whibal/index.html .
    Is it possible do perform some rudimentary correction using this with FCP6 - until I add the other pieces of equipment I'll need to do it properly.
    I've got an Gretag Macbeth Eye-One monitor calibrator
    http://www.rawworkflow.com/products/gmb/eye-one_display2.html
    and I was hoping to limp along for a bit.
    What would the workflow look like in FCP6 if this is possible?

    Use your 3-way color corrector.
    Click the eyedropper for the WHITES and select the white
    Click the eyedropper for the MIDS and select a gray
    Click the eyedropper for the BLACKS and select a black.
    That will get you matched.
    Good luck,
    CaptM

  • I'm a newbie to Blackberry - What is the first step to correctly using the instrument ?

     I'm a newbie to Blackberry - What is the first step to correctly using the instrument ?
    I just acquired my first blackberry phone  model-9810. What are the different simple  steps or the procedure that I should follow  to correctly use this instrument, i.e., telephone features first, internet features later. Your assistance to a newbie is highly appreciated.     All the best!  
    Solved!
    Go to Solution.

    Yes.
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • How to correctly use ThinkVantage System Update?

    Hello,
    I have ThinkPad E520 for two months and I still don't know how to correctly use System Update. From the beginning I've downloaded and installed all updates, but now I want to do it right. How do you do it? Do you install only updates that you need? Or all updates of program that you use? Or just all updates that System Update offers?
    Here is interesting sentence: "If it's not broken, don't fix it!". So how?
    I don't want to risk and do unnecessary things... But there is a problem with me, that I don't know, which update do I need... So I really need know, how to do it correctly...
    Thank you.

    Do only use System Update if you have problems with a driver or Thinkvantage Tool - feature.
    In my company we never used System update and the laptops are running without any changes (except Windows update) since 5 to 6 years. So i have removed TVSU from all computers.
    System Update is a very excellent tool after a clean install from a Windows CD/DVD to install all Lenovo drivers and tools you want to use. A disadvantage of cyclic updates via System Update is, that parts of old drivers in most cases will be kept because the newer driver will be installed over the old one in most cases, which leads after several updates to an instability of the system.
    Just my private opinion...
    My home-forum: http://www.thinkpad-forum.de
    Wiki: Deutsches ThinkPad-Wiki English ThinkWiki
    My ThinkPad-Collection

  • Color Correction Using Proxy Media

    If you color correct using the Proxy Media settings, are the changes you've made still going to be applied to the video when you switch back over to "Original Media?"

    Yes.

  • Is it possible to safely monitor good colour correction using BM Intensity?

    Is it possible to safely monitor good colour correction using my output of my Black Magic Intensity Card? It has an HDMI out so Im thinking there is no need to go to an external VTR and then into a Monitor. Also, I cannot afford an HD monitor.. not even close! SO im thinking to use a 1080p Samsung computer/TV monitor. I hear for the money they make excellent (budget) monitor substitutes?!
    OR maybe just buy another Apple 23" HighDEf monitor?
    FYI: I’m using AVCHD & HDV , encoding into ProRes and ProRes HQ.

    This question keeps coming up in different contexts, with a variety of answers. Correct color depends on correct calibration all the way through the chain from digital signal to playback. No single hardware piece can do it all, even a perfect monitor, without calibration.
    As JP correctly states, Rec709 is the standard for HD, Rec 601 for SD. These standards define the color temperature of gray, 6500 in both cases, and the specific color of the primary that generate the 6500. The 6500 needs to be generated correctly at all gray levels from 0 to 100 IRE.
    In addition, the luminosity needs to track the 2.2 (or 2.5) gamma curve closely.
    Lastly, the monitor needs to have 0 overscan, and high enough resolution to clearly see the finest resolution the input is capable of.
    Some of these adjustments can be done by eye - most require a spectrophotometer of some kind, and a monitor that has all the adjustment capability to perform the adjustments.
    The best way to make these adjustments is in hardware, but in the cases where this isn't possible, it is possible to generate a color look up table (LUT) to compensate for some, but not all errors. Apple's colorsync is such a LUT, although it cannot adjust for the primary colors, it can do gamma and the 6500 balance.
    More of an answer than you wanted I know, but that is just the way it works.
    You can have less expensive equipment give good results with proper calibration, and the best equipment uncalibrated provide terrible results.

  • Have to run windows in safe mode with network to have browserws work correctly. using IE and Firefox. Fist web site comes in correctly next tab just sites wai

    have to run windows in safe mode with network to have browserws work correctly. using IE and Firefox. Fist web site comes in correctly next tab just sites waiting for web site Help

    If it works in Windows Safe mode then you have a problem with other software, possibly security software or a system driver, that is running on your computer.<br />
    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • Does the iPad output correctly using an HDMI to HD-SDI converter?

    Hi everyone,
    I have a question regarding the iPad 2 & 3 HDMI output. I understand that HDCP is used primarily in iTunes Store to protect videos from being copied.
    For a presentation using the iPad  on Keynote and demonstrations using applications like Photos, Safari, Youtube, etc. Does the image and videos get broadcasted correctly using the iPad HDMI dongle connected to a HDMI to HD-SDI converter (similar to Datavideo's DAC-9) projecting to a HD-SDI input only projector?
    Sincerely,
    Joe

    Thanks for the response.
    Does it work when you attach an HDMI to HD-SDI converter to your HDMI converter?

  • How do I use the TRIM function in my Query?

    I have a field that has called AP.service_user_defined_1 that houses a Code the code is like Alpha Num ie "AA01" then it has about 30 to 40 whites spaces and then the description of what the code means. I need to have the description to show in my report I don't necessarily need the code but I do need the description I tried putting the TRIM Function in as below and it will not work what do I need to do to correct this?? I need help ASAP this is due today! Thanks for any help!
    SELECT DISTINCT
              A1.AUTH_NUMBER,
    PM.LAST_NAME,
              A1.AUTH_TYPE,
              A1.PLACE_OF_SERVICE,
              A1.OVERALL_STATUS,
              A1.CLOSED_REASON,
              A1.DENIED_REASON,
    Case
    when A1.DENIED_REASON in ('HS001','HS002') then 'MED NECESS'
    when A1.DENIED_REASON in ('HS004','HS005','HS006','HS007','HS008','HS013','HS014','HS016','HS017','HS019','HS020') then 'Admin Denial'
    when A1.DENIED_REASON is NUll and ap.advisor_decision = 'AAPPR' then 'Approved'
    else 'Unknown'
    end DENIED,
    A1.admit_primary_date,
    A1.service_admit_type AS "IP ADMIT TYPE",
    A1.service_user_defined_1 AS "OP Serv Type",
    Trim (leading ('AA01                 ',)from dual,
    ap.contact_date,
    AP.decision_date,
    AP.ADVISOR_DECISION,
    PM.PROVIDER_ID,
         A1.INSERT_DATETIME,
    TO_CHAR (A1.insert_datetime,'MONTH-YY')AS "Month",
    A1.admit_primary_date,
              A1.ACTIVE_PHYSICIAN_ADVISOR,
              MV.LINE_OF_BUSINESS
    FROM Windsoradm.auth_master a1
    INNER JOIN Windsoradm.auth_phys_advisor ap
    ON a1.auth_number=ap.auth_number
    INNER JOIN windsoradm.prov_master pm
    ON ap.seq_prov_id=pm.seq_prov_id
    LEFT JOIN windsoradm.note_master nm
    ON nm.seq_memb_id=a1.seq_memb_id
    INNER JOIN windsoradm.member_mv mv
    ON mv.seq_memb_id=a1.seq_memb_id
    Where mv.Line_of_Business <>'SFS'
    /*AND A1.PLACE_OF_SERVICE IN ('11','21','22','24')*/
    /*AND a1.active_physician_advisor = 'Y'*/
    /*AND (a1.closed_reason ='A06' OR a1.closed_reason is Null)*/
    AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/30/2012','MM/DD/YYYY')
    ORDER BY 1

    I don't know how to use this within my query I put it in as you suggest and get an error: I'm new to these functions can you show me how within my query I should code it? The field Name is A1.service_user_defined_1 There are about 50 Different Codes in a Drop down list within the application that have a different Code and Different Description it appears that the Codes are all 4 character alpha numeric then about 25 to 45 spaces and then the description. Please show me in my code how to get this I wish there was a table I could link to that housed both code and description but who ever created this did not make life easy. Thanks (I also tried the TRIM but could not get it to work ) I know it is because I do not know how to put it within my code to make it work.
    SELECT DISTINCT
              A1.AUTH_NUMBER,
    PM.LAST_NAME,
              A1.AUTH_TYPE,
              A1.PLACE_OF_SERVICE,
              A1.OVERALL_STATUS,
              A1.CLOSED_REASON,
              A1.DENIED_REASON,
    Case
    when A1.DENIED_REASON in ('HS001','HS002') then 'MED NECESS'
    when A1.DENIED_REASON in ('HS004','HS005','HS006','HS007','HS008','HS013','HS014','HS016','HS017','HS019','HS020') then 'Admin Denial'
    when A1.DENIED_REASON is NUll and ap.advisor_decision = 'AAPPR' then 'Approved'
    else 'Unknown'
    end DENIED,
    A1.admit_primary_date,
    A1.service_admit_type AS "IP ADMIT TYPE",
    A1.service_user_defined_1 AS "OP Serv Type",
    regexp_replace('AA01 Behavioral/Mental Health Service', '^[^ ]+ +')from dual,
    ap.contact_date,
         AP.decision_date,
         AP.ADVISOR_DECISION,
              PM.PROVIDER_ID,
         A1.INSERT_DATETIME,
    TO_CHAR (A1.insert_datetime,'MONTH-YY')AS "Month",
    A1.admit_primary_date,
              A1.ACTIVE_PHYSICIAN_ADVISOR,
              MV.LINE_OF_BUSINESS
    FROM Windsoradm.auth_master a1
    INNER JOIN Windsoradm.auth_phys_advisor ap
    ON a1.auth_number=ap.auth_number
    INNER JOIN windsoradm.prov_master pm
    ON ap.seq_prov_id=pm.seq_prov_id
    LEFT JOIN windsoradm.note_master nm
    ON nm.seq_memb_id=a1.seq_memb_id
    INNER JOIN windsoradm.member_mv mv
    ON mv.seq_memb_id=a1.seq_memb_id
    Where mv.Line_of_Business <>'SFS'
    /*AND A1.PLACE_OF_SERVICE IN ('11','21','22','24')*/
    /*AND a1.active_physician_advisor = 'Y'*/
    /*AND (a1.closed_reason ='A06' OR a1.closed_reason is Null)*/
    AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/30/2012','MM/DD/YYYY')
    ORDER BY 1

  • The "write key" configurat​ion file vi use of "trim string" prior to writing the data can modify any string data written.

    I tried to use the config VIs to record some front-panel settings for later restoration, one of which could be a single space character (part of a string parsing system).
    I soon discovered that whenever I tried to save that single-space value to an INI file, only a null string was saved.
    After doing some digging I discovered that buried in the Write Key vi is a worker vi called Config Data Modify that uses Trim String on the string data before it is written to the file and that's what was eating my string character. I don't know whether this is a bug or a feature but there are at least three ways to fix it.
    1) Assuming you want to leave the library VIs alone, you can pre-process any stings sent to "write key" to replace all spaces with "\20" and then post-process all strings read using "read key" to replace all instances of \20 with spaces.
      and if you don't mind modifying the library VIs, either to save/use under a different name or to stick back into the library in a modified state (caution - can cause problems when you move code to another machine with an un-modified library) then...
    2) You can yank the trim-string out of the Config Data Modify vi and hope that it does not have any undesirable side effects with regards to the other routines that use Config Data Modify (so far I have not found any in my limited testing)
    or
    3)  You can modify the string pre-processing vi, Remove Unprintable Chars, to add the space character to the list of characters that get swapped out automatically.
    Note that both option #1 (as suggested above) and option #3 will produce an INI file data entry that looks like    key="\20Hello\20World\20"   while option #2 produces an entry that looks like   key=" Hello World "
    The attached PDF contains screenshots of all this.
    Attachments:
    Binder1.pdf ‏2507 KB

    Hi Warren,
    there's a 4th option:
    Simply set the "write raw string" input of the write key function to TRUE
    This option only appears when a string is wired to that function!
    Just re-checked:
    I think it's a limitation of the config file format. It's text based and (leading) spaces in the value are "overseen" as whitespaces. So your next option would be to use quotes around your string with spaces...
    Message Edited by GerdW on 05-02-2009 08:32 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Status change of Single correction using Abap report

    Hi Experts,
    I have a requirement to change the status of Single correction CR's to "completed" and also set the preceding document to appropriate status . I am using the function module CRM_ORDER_MAINTAIN followed by ORDER_SAVE to do so.
    But this does not change the status.
    Please let me know if there is anything that has to be done while changing the status of CR through an ABAP Report.
    Thanks in advance for ur help.
    Rithesh

    Use function CRM_STATUS_CHANGE_EXTERN and also CRM_ORDER_SAVE and commit at the end.

  • Themes like Topaz are not working correctly using IE7 or IE8?

    We are in the middle of an upgrade from APEX 3.1.2 to 4.0.2 and with this upgrade we also want to change the themes the apllications are using. In this case we are switching from 'Sand' to 'Topaz', but we encounter a problem with Standard Reports Regions. If you have a column with a setting 'Display as Text (based on LOV, does not save state) and the column has no value (null), the table cell is not drawn correctly on the screen. The cell borders (top and bottom) are not drawn, resulting in interrupted lines on the table rows. The same problem occurs if you have a column that contains a link, but the column value is empty.
    When we use another browser (e.g. Google Chrome) the reports region is displayed correctly. However the standard browsers at our company are IE7 and IE8.
    Sort of a workaround is to display a null value as   or - , but for columns that contain links, that is a problem, because it will result in a clickable link on an 'empty' column value.
    We tried other themes like Modern Blue, Simple Red, Builder Blue, Sunrise, etc. but they all have the same problem. Is there a workaround for this problem, because we reallty want to use the new Themes and using another browser is no option?
    For an example, check problems in MGR and DEPT columns:
    http://apex.oracle.com/pls/apex/f?p=9662
    Thanks,
    Patrick
    Edited by: PatrickC on Feb 24, 2011 11:12 AM

    Appears to be due to empty-cellsIE's lack of/buggy support for the <tt>empty-cells</tt> property used in the report CSS.
    I think you'll have to work round this by including some content in the cells using <tt>nvl</tt> etc in the query or the report Show Null Values as property. To avoid the problem you mentioned relating to clickable "empty" links, try using the zero-width space character entity<tt>&amp;#8203;</tt> zero-width space character entity for this content. It should be effectively invisible.

  • Receive Connectors not working correctly - using random connectors.

    I'm having a problem that I thought was DNS related, but I've since flushed the DNS.
    What happens is when I try to relay off a Hub server, it always tries to use any random Receive connector, even though my client is explicitly in the Relay connector list.
    When I telnet to the HT by hostname on 25, it opens a random receive connector. If I continue to /flush and telnet over and over, it cycles through all the connectors (default, Relay explicit and the others that block the connection).
    When I telnet directly to the IP of the Relay connector, it works perfectly.
    What would cause the server or client to not use the correct explicit connector all the time?

    When you test this - I'm assuming you are coming in from a specific remote IP. What RC should this be hitting?
    To troubleshoot this I like to change the banner on all of them so it says "Helo - Connector 1"  "Helo - Connector" or something else meaningful like this.
    Also enable verbose SMTP send receive logging on all receive connectors.  What's in there?
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • UIImagePickerController Custom Overlay Black Screen issue while using Video trimming controller

    Hello Everyone ,
    I have problem while opening camera in recording mode using UIImagePicker Controller with custom overlay and it should open first time properly .But when i push to next view controller and return back again to open camera at that time camera displays black screen for few time.
    The Logic in the inside view controller is for VideoTrimming . For video trimming i have used "SAVideoRangeSlider" controll. SAVideoRange Silder perform task to get all thumbnail images from video which i have assign . It uses AVAsset  image generator class provided by apple to get image frames from videos and it runs in background using its handler method.
    Handler Method ::
    [self.imageGenerator generateCGImagesAsynchronouslyForTimes:times
                                                  completionHandler:^(CMTime requestedTime, CGImageRef image, CMTime actualTime,
                                                                      AVAssetImageGeneratorResult result, NSError *error) {
    I have nilling all the objects related to image generator class when i came back to Camera screen. still issues of black screen occur while opening camera.
    This issue occur in ios7 but not in ios6.
    Can anyone have any idea about this ...Please relply me ASAP.

    Hello Everyone ,
    I have problem while opening camera in recording mode using UIImagePicker Controller with custom overlay and it should open first time properly .But when i push to next view controller and return back again to open camera at that time camera displays black screen for few time.
    The Logic in the inside view controller is for VideoTrimming . For video trimming i have used "SAVideoRangeSlider" controll. SAVideoRange Silder perform task to get all thumbnail images from video which i have assign . It uses AVAsset  image generator class provided by apple to get image frames from videos and it runs in background using its handler method.
    Handler Method ::
    [self.imageGenerator generateCGImagesAsynchronouslyForTimes:times
                                                  completionHandler:^(CMTime requestedTime, CGImageRef image, CMTime actualTime,
                                                                      AVAssetImageGeneratorResult result, NSError *error) {
    I have nilling all the objects related to image generator class when i came back to Camera screen. still issues of black screen occur while opening camera.
    This issue occur in ios7 but not in ios6.
    Can anyone have any idea about this ...Please relply me ASAP.

Maybe you are looking for

  • SATELLITE A30 ERROR!!! AFTER INSTALL RECOVERY DISCS

    INSTALLED BOTH DISC AS IN MANUAL... GET ERROR MESSAGE ...AT THE END OF DISC 2... CAN FIND NO WAY OF EXITING OR CARRYING ON WITH THE INSTALLATION..REMOVED DISCS SEVERAL TIMES AND BEGAN PROCEEDURE AGAIN WITH THE SAME RESULT; ERROR NO;437 MESSAGE.. ;CAN

  • Photoshop album 2.0miniのオンラインサービスについて

    こんにちは.オンラインサービスでFUJIFILMやコニカミノルタのプリント注文をする場合に.photoshop album2.0miniで取り込んだTIFFファイルは.FUJIFILMやコニカミノルタで勝手にJPEGに変換されて写真になるのでしょうか.それともTIFFのまま写真になるのでし ょうか. FUJIFILMやコニカミノルタのHPからデジカメプリントを申し込むときは.TIFFファイルはできないようなので.photoshop album2.0miniからだとTIFFファイルを写真にしてくれ

  • Strange issue on Satelite R830-1GZ

    Owned for two weeks. Everything has worked fine, but today I had a strange thing happen I was connected to a modem Wi-Fi. I then disconnected from that modem and signed into btfon. After this I noticed Skype contacts were all not connected, so I clos

  • Bogus "New Version" message

    I've created quite a few iBooks (including web and video widgets, etc) and I haven't seen this message before. iTunes, iOS and iBooks apps updated and current. iPad 3. No issues. This iBook has 40 pages of product photos so it should take around 15 -

  • Time Machine backups to OS X Server 10.8 fail with "The backup disk image "Volumes/Backup6/macname.sparsebundle" is already in use" Error

    Connecting about 100 Macs running Mavericks and about half of them are getting "The backup disk image "Volumes/Backup6/macname.sparsebundle" is already in use" error.  Screenshot - https://www.evernote.com/shard/s87/sh/d03288e2-4ad7-4466-957b-2b9b4fc