How do i detect the maximum number of lines

Situation:
I have a textfield that displays about 8 lines of text before
the content would need to be scrolled to view the remaining
content.
Question
Rather than having some ActionScript that is constantly
trying to scroll the field, how do i detect the following.
How do i determine the maximum number of lines that may be
displayed in a textField (or any type of text field) before
scrolling would be needed?
Please specify the method. Thank you.

When tracing the output using the bottomScroll, it only tells
me how many liines I have output to the textfiedl, it does not tell
me how many lines the textfield can hold.
How do I determine how many lines a textfield can
hold?

Similar Messages

  • How to set up the maximum number of messages on a queue programmatically

    Hi,
    I am using IMQ 3.5 to implement a message layer for one of my projects. I created a "Job Status Queue", which receives job status report from a java application every minute. But I just want to keep the most current status report instead of all the job running history. How can I restrict the maximum number of messages to 1 programmatically?
    Any suggestion or help will be appreciated.
    Xiaoyun Tang

    You can't limit the destination size programmatically, but you can do it administratively and associate a behavior to occur when the limit is reached. In your case it sounds like you want a queue, 1 message deep, and to discard the oldest message when the queue is full. When you create the physical queue on the broker you can specify these attributes (you can also update them on an existing queue). For example:
    imqcmd create dst -t q -n StatusQ -o maxNumMsgs=1 -o limitBehavior=REMOVE_OLDESTFor more information see Chapter 6 of the Message Queue Administration Guide. In particular the "Managing Destinations" section:
    http://docs.sun.com/app/docs/coll/MessageQueue_35_SP1
    Joe

  • How do you increase the maximum number of migration batches using EAC?

    When I try to run a new batch, I'm getting the following error message:
    The maximum number of migration batches is already running. Please remove a batch before you add another one.
    How do I increase the maximum number of migration batches using EAC? Thanks for your help.

    Hi WinndowsGuy,
    Is there any update on this thread?
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • How can I set the maximum number of restarts for my PDF files?

    I want sent my PDF to a friend,but I just allow him see it only twice.
    How can I set the maximum number of restarts for my PDF files?
    My software edition is Acrobat X

    In the old days when PDFs were only opened on desktops and only in Acrobat or Reader, scripting could fake security features and people were generally convinced. As there are so many ways to open a PDF without scripts ever being run (from mobile devices to in-browser display, or simply opening the file in Illustrator), none of that works anymore.

  • How can i fix (the maximum number of free accounts have been activated on this iphone)

    how can i fix (the maximum number of free accounts have been activated on this iphone)?
    please help to me.it`s for iphone 4S.

    You can't 'fix' it. It's not broken. That's the way it's designed.

  • How can we increase the maximum number of records which we export from UME

    Hi All,
             Is there any way to increase the maximum number of records which we can export from the UME.
    Please give your valuable suggestions as soon as possible.
    Thanks in Advance
    Regards,
    Ramalakshmi.S

    I didn’t find any configuration you can set to increase the number. I think it is related UI. The number is designed programmatically.
    Lisa Zheng
    TechNet Community Support

  • How do I increase the maximum number of images I can acquire in a sequence using the IMAQ 1424 with 80 MB of onboard memory and a Duncan Tech camera?

    I've increased the maximum number of buffers to higher than I need, but I still cannot acquire more than 139 images with the Duncan Tech digital video camera before I get a memory lock error. Is there any way to increase the number of images I can acquire in a sequence using the IMAQ 1424 with 80MB of onboard memory?

    It sounds like you are already bypassing the onboard memory. If you weren't, you would only be able to acquire about 20 images.
    If I understand correctly, you do not convert the images until after you acquire them. This means each acquired image is 4.13 MB, and 139 images will take 574 MB of memory. I wouldn't be surprised if that was all the free memory available on a 1 GB machine. The operating system, LabVIEW and any other software running probably take up the rest of the memory. You might want to put your computer on a diet and minimize the number of other programs and utilities running. The only other option I see is getting more memory if possible.
    Is there a way that you can reduce the number of images you need to acquire? Pe
    rhaps skipping every other frame? Do you really need more than 139 images?
    Is it possible to acquire the images in monochrome? That would triple the number of images that you could acquire.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How can I calculate the maximum number of days between two dates in a range of dates?

    I have a column of dates spanning the couse of a few months.  I would like to know if I can calculate the maximum number of days between each row and display the highest number.  I currently have another column that calculates the days betwen the rows and I am currently just looking at the totals and highlighting the highest period.
    Is this possible?  Any help or suggestions are appreciated.
    Thank you,
    Trevor

    This sounds totally possible,  Can you post a screen shot of your table to make responding more focused?  If you mean you want to:
    A) compute the difference (in days) between two date in the same row, then
    B) find the max duration (in days)
    Here is my take on this problem:
    D2 = C2-B2
    select D2 and fill down
    F1=MAX(D)
    to perform the conditional formatting (to highlight the max duration) select column D, then set up conditional formatting as shown in the 1st image

  • What is the maximum number of line items we can enter in an order...

    Hi,
       Can anyone explain what is the max number of line items that v can enter in an order....
    or if i want to increase the number of line items than the max where it is controlled.
    Because my mm counter part is facing this in the PO he could make only 9999,the problem is when posting...the accounting document is not getting generated bcas of exceeding the limit.
    venugopal

    hi,
    this is my personal experiance that we can enter at the most 499 line items in SALES ORDER.
    This is because for every line item there will be 2 financial entries, debit and credit. and 1 FI document can have at the most 999 line items (which we can not increase without KEY fromSAP)
    If we divide 999 by 2 then it comes to 499.50 so you can enter at the most 499 line items in Sales order.
    Regards
    Vishal

  • What is the maximum number of lines per PO?

    Are their line limitations per PO? I'm trying to find out if there is a max number of lines you can have on a given PO.
    I assume performance starts to get effected at some point, but at what point might that be? 100 lines, 1000, 5000? We are looking at creating some standard PO's with 500+ lines on them, so we can create ASN against them via iSupplier.
    If you know or have any experience dealing with large PO's please fill me in.
    Thanks,
    Jeremy

    Hello,
    We used to have an interface who imported standard PO, with a contract number as PO number, then the number of lines was increasing. We had a first problem from 200 lines, we had to apply a patch, then the limit was about 900 lines. I made a few searches but this occurs 2 years ago and I'm not even able to find the SR or a patch number ...
    But from a business point of view, it's obviously a bad idea to always have the same PO with a high number of lines (hard to match invoices, PO is never closed, etc.) , from this problem we choose to import PO with PO number generated from the BL number + an suffix (to avoid duplicates PO numbers)
    Hope it helps a little,
    Kind regards,
    Xavier

  • How do I increase the maximum number of list items in the Step Type Menu Editor?

    I am trying to create a lot of custom steps and have reached the point where they no longer appear in the "Insert Step" menu. Message reads "Max Menu Items Reached". Is there a way to increase this maximum?

    Hi,
    You have hit the same problem as I.
    Unfortunately you wont beable to easy resolve this unless you are using TestStand 3.0.
    see here for answer:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000A98C0000&UCATEGORY_0=_8_&UCATEGORY_S=0
    Using TestStand 3.0 the problem goes away as it is capable of handling more than the 256 step types.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • ICCMP_BP_SEARCH. Increasing the maximum number of search hits from default

    Hi,
    ICCMP_BP_SEARCH use for search partners.
    How I can increase the maximum number of search hits? By default is 100.
    I know about parameter SEARCH_MAX_HITS, but this not applicable for this situation.
    Denis.

    Hi Denis,
    You can increase it at your identification profile (t-code crmc_ic_bpprofx), at parameter 'Max. Number of Hits'.
    Kind regards,
    Garcia

  • Maximum number of line items in sales order

    hi,
    Is there a limit on the maximum number of line items that are permitted in a sales order?
    Thanks,
    Shailaja

    Hi
       I think the correct reply would be 999,999 because data type of item number POSNR is NUM 6, which means that it can hold upto value 999,999.
         However, at the same time keep the following into consideration:
    1. FI document has a restriction of 999 line items per document. So, depending on the account settings, there will be a lower limit. E.g. if each Sales order line item results in 2 line items in the accounting document, then the max. no. of SO line items is limited to 499.
    2. If FI summarization is active, then the system summarizes the account postings, thus reducing the no. of FI line items. Hence, a SO can accomodate more than 999 line items. However, this means that certain line item level details will not be available to the Finance guys (which they may not like).
    3. As the number of line items in a Sales order increases, the system performance suffers greatly. There are performance fixes available, but in general, it is painful to load a SO with large no. of line times through BDC's. 10 Sales orders with 100 lines each consume less system resources than 1 Sales order with 1000 lines.

  • Maximum number of lines in UTL_FILE?

    I am using the UTL_FILE package to dump the content of a package to a file. But I find that for packages that are large, the file is getting truncated when written out (it breaks at around 1680 lines or so).
    I confirmed that there is no problem with the read part, by doing a dbms_output.put_line for that particular package.
    Is there any setting on the maximum number of lines that can be written out here? I am using version 8i or Oracle. Thanks.
    Regards,
    Srini

    OK, here is my code: thank you.
    CREATE OR REPLACE PACKAGE BODY Code_Dump AS
    PROCEDURE write_nonpackage_to_file(fname IN VARCHAR2) IS
    fileHandler UTL_FILE.FILE_TYPE;
    fileName VARCHAR2(400);
    CURSOR c_file_content IS SELECT * FROM user_source WHERE name = fname AND NOT (type like '%PACKAGE%') order by line;
    BEGIN
    fileHandler := UTL_FILE.FOPEN('/users/mydir/tmp', fname || '.sql', 'w',1022000);
    UTL_FILE.PUTF(fileHandler, 'CREATE OR REPLACE ');
    <<file_writing_loop>>
    FOR each_record IN c_file_content LOOP
    UTL_FILE.PUT(fileHandler, each_record.text);
    END LOOP file_writing;
    UTL_FILE.FCLOSE(fileHandler);
    END write_nonpackage_to_file;
    PROCEDURE write_package_to_file(fname IN VARCHAR2) IS
    fileHandler UTL_FILE.FILE_TYPE;
    fileName VARCHAR2(400);
    rec_type VARCHAR2(40);
    CURSOR c_spec_file_content IS SELECT * FROM user_source WHERE name = fname AND type LIKE 'PACKAGE' order by line;
    CURSOR c_body_file_content IS SELECT * FROM user_source WHERE name = fname AND type LIKE 'PACKAGE BODY' order by line;
    BEGIN
    dbms_output.enable(10000000);
    fileHandler := UTL_FILE.FOPEN('/users/mydir/tmp', fname || '.sql', 'w',1022000);
    UTL_FILE.PUTF(fileHandler, 'CREATE OR REPLACE ');
    <<file_spec_loop>>
    FOR each_record IN c_spec_file_content LOOP
    UTL_FILE.PUTF(fileHandler, each_record.text);
    END LOOP file_spec_loop;
    UTL_FILE.PUTF(fileHandler, '/\n');
    <<file_body_loop>>
    FOR each_record IN c_body_file_content LOOP
    UTL_FILE.PUTF(fileHandler, each_record.text);
    END LOOP file_body_loop;
    UTL_FILE.FCLOSE(fileHandler);
    END write_package_to_file;
    PROCEDURE dump_code (p_dump_what IN VARCHAR2) IS
    CURSOR c_all_code IS
    SELECT DISTINCT name, type FROM user_source;
    my_copy VARCHAR2(40);
    BEGIN
    my_copy := p_dump_what;
    <<each_file>>
    FOR each_record IN c_all_code LOOP
    IF each_record.type = my_copy THEN
    dbms_output.put('parameter: ' || my_copy ||' ');
    dbms_output.put_line('record type: ' || each_record.type);
    END IF;
    IF each_record.type <> 'PACKAGE' AND each_record.type <> 'PACKAGE BODY' AND each_record.type = my_copy THEN
    dbms_output.put_line(each_record.name);
    write_nonpackage_to_file(each_record.name);
    END IF;
    IF each_record.type = 'PACKAGE' AND each_record.type = my_copy THEN
    write_package_to_file(each_record.name);
    END IF;
    END LOOP each_file;
    END;
    END Code_Dump;

  • Maximum number of line items

    Dear All,
    I am facing an issue in the maximum number of line items EBP purchase order.
    We are in SRM 4.0 using extended classic scenario.
    In EBP PO, if the number of line items is more than 50 then we are getting the dump error "Field symbol has not yet been assigned" when we try to display the PO in Process purchase order transaction.
    In process purchase order, if we click on the start after enting the PO number then it is giving the dump error. But we could able to display the PO by clicking on the details icon of the PO after searching with time frame.
    Dump error is occuring only when we try open the PO header node to see the list of items of the PO. Until the PO is having 50 line items we dont have a problem. If the PO is having 51st item then we are getting the dump error.
    Have anyone faced this issue? Please help me to resolve this.
    Thanks.

    Pradeep,
    Dump error details:
    What happened?
        Error in ABAP application program.
        The current ABAP program "SAPLBBP_PDH_SEARCH" had to be terminated because one
         of the
        statements could not be executed.
        This is probably due to an error in the ABAP program.
    Error analysis
        You attempted to access an unassigned field symbol
        (data segment 32774).
        This error may occur for any of the following reasons:
        - You address a typed field symbol before it is set using ASSIGN
        - You address a field symbol that points to a line in an internal table
          that has been deleted
        - You address a field symbol that had previously been reset using
          UNASSIGN, or that pointed to a local field that no longer exists
        - You address a global function interface parameter, even
          though the relevant function module is not active,
          that is it is not in the list of active calls. You can get the list
          of active calls from the this short dump.
    Information on where terminated
        The termination occurred in the ABAP program "SAPLBBP_PDH_SEARCH" in
         "SUB_LIST_GET".
        The main program was "SAPLBBP_PO_UI_ITS ".
        The termination occurred in line 191 of the source code of the (Include)
         program "LBBP_PDH_SEARCHF10"
        of the source code of program "LBBP_PDH_SEARCHF10" (when calling the editor
         1910).
    Thanks.

Maybe you are looking for

  • Upgrade to USB 2.0?

    Is it possible to add an internal or external USB 2.0 port? I wouldn't imagine there's room internally for adding the necessary hardware given the compact domed shape of the iMac G4 flat-panel, but would there be a way to have it external, perhaps th

  • Encore CS6 keeps crashing on dvd build

    I'm desperately trying to make a DVD for a corporate client. Encore keeps crashing while transcoding on build. Any ideas? Process:         Adobe Encore [347] Path:            /Applications/Adobe Encore CS6/Adobe Encore CS6.app/Contents/MacOS/Adobe En

  • Collation issue with Japanese characters in Oracle8i

    Hi, I have japanese data in a varchar2 column in an Oracle8i instance which contains both single byte and multibyte Japanese characters. The encoding type of the instance is UTF-8. I want to sort them in such a way that equivalent single byte and mul

  • When i close the tab it doesn't return the last active tab

    My english is not so good, so i'm sorry about this. I want to return last active tab when i close a tab. Example; I'm using 2. tab then i switch 4. tab, and close it. Firefox switches me to 5. tab, not 2. I made some google search but i can't find an

  • Please Clarify the Errors (Case Structure)

    I am using numeric case structure but I don't understand the errors, can anyone clarify what they are mean and what I have to do to change it. Thank you in advance.