Variable isn't holding the value (strings, numbers.. anything)

Hi Thanks in advance for taking a look, I've been trying to
display a value from a variable, in this case just text. Here is
what i'm doing;
made a text box on the stage called it messageBox_txt (set it
to dynamic)
in the code on other layer, i wrote;
var Message:String = "This is a test message";
messageBox_txt.text = Message;
when i run this it is blank and these instructions are from
the Flash 8 textbook so they can't be wrong. is there a chance i
need to change some setting? but it didn't work on the machine to
me either. i'm in a computer lab.
Any help from one of you gurus would be a get assist, unless
i'm just jinxed let me know

Have you embedded the fonts in the text field (just
checking)?
1) Select the text field
2) Click "Embed..."
3) Select the characters you want to embed (I usually click
on Uppercase and then shift-click on Punctuation to select
uppercase, lowercase, numerals and punctuation)
4) When they are highlighted click OK.

Similar Messages

  • Using a session object to hold the value of a record set?

    Hi,
    I'm trying to hold the value of a record set (or literally the content of a column in a query in a db) in a session variable so that I can call on this later and insert into another table.
    I'm not sure of the correct syntax, I've already made a connection to the DB. I'm trying the following but it doesnt seem to like the code:
    <% session.setAttribute("code",rs("column_name")); %>
    <%String attrib =
    String.valueOf ( session.getAttribute("code")); %>
    Hello <%= attrib %>
    Any ideas, I dont know how to reference the record set, I declared the recordset previously as rs. Help! Can't find examples anywhere on the net!

    So just to recap. I appear to be seeing the column name "custorderno" within the Microsoft Access query "lastcust". But I get "no data found" when I run the following code (which I have sectioned off)
    <!-- connect to database and lastcust query --!>
    <%
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection conn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Tomcat/jakarta-tomcat-4.1.31/webapps/ROOT/Oatcake.mdb","","");
    Statement statement = conn.createStatement();
    String sql = "SELECT * FROM lastcust";
    ResultSet rs = statement.executeQuery(sql);
    while (rs.next()) {
    %>
    <TR><TD><%= rs.getString("custorderno") %></TD>
    </TR>
    <% session.setAttribute("code",rs.getString("custorderno")); %>
    <% String attrib =
    String.valueOf ( session.getAttribute("code") ); %>
    Hello <%= attrib %> [B]
    <%
    %>
    </TABLE>
    <%
    if (statement != null)
    statement.close();
    if (conn != null)
    conn.close();
    catch (Exception e) {out.print(e);}
    %>
    </BODY>
    </HTML>
    No as mentioned I am (as you can see) declaring everything as a string when in actual fact the contents of the "custorderno" within the query is set to a autonumber within MS Access.
    The while loop does work by returning the contents but the session object part is not working correctly with the following result returned:
    [B]java.sql.SQLException: No Data Found
    Help please!

  • Holding the value in screen-field

    Dear All,
    I m facing the problem ,while i m putting the value in screen-field and then pressing enter,
    value in that screen-field is becoming null automatically.
    wht shld i do for holding the value even after PAI.
    Thanks in advance.

    Hi,
    You should define a corresponding variable for that screen field in your program.
    data: my_input_field type ... "same name and type as the one used in screen for field
    so when you enter data to that field and press ENTER, the data will be transported to that variable and in PAI you have its value there.
    Regards
    Marcin

  • How to hold the value in List box.

    Hi All,
    On my screen painter Screen I am displaying the Sold to party and ship to party with thier address.
    I am also displaying the Shipping condition based on ship to party. To display the shipping condition i am using list box. Once the user enter the sold to party automatically all the field is going to populate in their respective fields. I am facing the problem that, The list box getting populated with shipping condition but once you choose the shipping condition and hit the enter the list box getting refreshed. I am using this code in PAI event. And I can Only use this in PAI.
    The Function i am using for list box is CALL FUNCTION 'VRM_SET_VALUES'.
    Pls suggest me how to hold the value in List box.
    Thanks,
    Rakesh

    Hi,
    Now i am using in PBO.
    the code below in in PBO.It is still not holding the value.
          if list[] is initial.
          perform SHP_COND.
          endif.
    form SHP_COND .
    *DATA: SHOP(80).
        clear : GT_VSBED, list.
        refresh : GT_VSBED, list.
         select vsbed
           from knvv AS K
           into table GT_VSBED
          where Kvkorg = vbak-vkorg  "Kkunnr = GV_STPH
          and K~vtweg = vbak-vtweg
          and K~spart = vbak-spart.
        select VSBED vtext
          from TVSBT
        into table list
        for all entries in GT_VSBED
        where spras = sy-langu
        and vsbed = GT_VSBED-VSBED.
    *break-point.
    NAME = 'SHP_CON'.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        id                    = NAME
        values                = LIST[]
    EXCEPTIONS
       ID_ILLEGAL_NAME       = 1
       OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " SHP_COND
    Thanks,
    Rakesh

  • How to hold the values as  it's not holding the values when it cross 255

    DATA : fval1  TYPE edidd-sdata.
    DATA : fval2  TYPE edidd-sdata.
    DATA : fval3 TYPE edidd-sdata.
    DATA : fval4 TYPE edidd-sdata.
    DATA : fval5 TYPE edidd-sdata.
      DATA : len(3) TYPE n.
    values1 = wa_final-low.
      values2 = wa_final-high.
      IF wa_final-high IS NOT INITIAL.
        CONCATENATE values1 values2 INTO fval1 SEPARATED BY '-'.
      ELSE.
        fval2 = values1.
      ENDIF.
      IF fval3 IS NOT INITIAL.
        IF fval1 IS NOT INITIAL.
          fval = fval1.
          CONCATENATE fval3 fval INTO fval3 SEPARATED BY '/'.
        ENDIF.
        IF fval2 IS NOT INITIAL.
          fval = fval2.
          CONCATENATE fval3 fval INTO fval3 SEPARATED BY '/'.
        ENDIF.
      ELSE.
        IF fval1 IS NOT INITIAL.
          fval3 = fval1.
        ENDIF.
        IF fval2 IS NOT INITIAL.
          fval3 = fval2.
        ENDIF.
      ENDIF.
      DATA : len(3) TYPE n.
      len = STRLEN( fval3 ).
      IF len > 250.
        fval4 = fval3+0(250).
        fval3 = fval3+250(5).
    *    CONCATENATE fval4 fval3 INTO fval5.
      ENDIF.
           IF fval4 IS INITIAL.
              wa_final1-varbl31 = fval3.
            ELSE.
                CONCATENATE fval4 fval3 INTO fval5.
                wa_final1-varbl31 = fval5.
            ENDIF.
            MODIFY  it_final1 FROM wa_final1
            TRANSPORTING varbl31 WHERE agr_name = wa_final-agr_name.
    at this point also it's not holding the values when it exseds 255
    kindly please help

    H friends ,
    i am not the expert at the same time i know some thing in abap
    fval4 = fval3+0(250).
        fval3 = fval3+250(5).
    in the above case fval3 have 255 char at that time iam transporting 250 char to fval4 with this statment
    fval4 = fval3+0(250).
    and iam keeping  the remaining 5 char in fval3 with this statment
    fval3 = fval3+250(5)
    so that i can push some more values in fval3  and at i am
    CONCATENATE fval4 fval3 INTO fval5.
    so that fval5 may get all values this is the way i try but fval5 is not holding all the values 
    i asked solution for that
    fval 3 = fval3+250(250)
      dosen't  have any meaning i know that  friend
    my question is how to hold the remaining value

  • Where we can find the detail infomation about the Value String of automatic

    Where we can find the detail infomation about the Value String of automatic?
    such as WE06,WE01 and so on.

    Hai,
               Value string keys are for SAP internal usage. It is just a pointer to the transaction event key which is necessary for automatic account determination.
               Movement types are linked to transaction keys via valuation string in OMWN T-code.
               The R/3 System automatically determines the value string assigned to a specific transaction. It depends partly on entered parameters manually and partly on parameters derived internally by the system. The value string contains all posting transactions that are possible for a certain transaction. The program decides which of these posting transactions lead to G/L account postings in individual cases. You cannot define this in Customizing.
    Value string WE01, for the goods receipt for a purchase order into stock, contains transactions BSX and WRX.
    WE01: BSX, WRX, PRD, KDM, EIN, EKG, BSV, FRL, FRN, BSX, UMB.
    WA14: BSX ,PRD, BSX, UMB
    WA01: BSX, GBB, PRD, BSX, UMB
    Value string RE05 contains transactions BSX and UMB.
    In the standard system, value string WE01 is assigned to goods receipts (and also cancellations and return deliveries) for Standard and Subcontracting purchase order items without account assignment concerning valuated material into stock. In the case of (valuated) goods receipts for purchase order items not subject to account assignment,
    post the items to a stock account using the transaction key BSX and make an offsetting entry to a GR/IR clearing account. A price difference posting (transaction key PRD) is only used if the valuated material is subject to standard price control and if the order price (or invoice price) is different from the standard price. Transaction key KDM is required in Inventory Management for purchase orders in foreign currencies because of differences in exchange rates between goods receipts and invoice receipts, unless the material can not be debited or credited because it is subject to standard price control.
    The transaction keys EIN and EKG (and possibly FRE – see account determination for delivery costs) are only used in company codes where purchase account management is active (as required in France and Belgium for example).
    The transaction keys BSV, FRL, and FRN are only used for the Subcontracting item category.
    Value string WA14 is defined for deliveries without charge (movement type 511).
    The following scenarios are possible:
    Delivery without charge for material subject to moving average price control &#8594; No accounting document
    Delivery without charge for material subject to standard price control (and if the posting date is in the previous period – standard price in the posting period = standard price in the current period) &#8594; Inventory posting (receipt at standard price) and offsetting entry to price differences account
    Delivery without charge for material subject to standard price control, with posting date in the previous period and the standard price in the posting period is different to the standard price in the current period &#8594; Inventory posting (receipt at standard price) and offsetting entry to price differences account (posting in the previous period) &#8594; Stock correction posting and Revenue/expense from revaluation (posting in the current period)
    In the standard system, value string WA01 is assigned to goods issues and other goods receipts. The R/3 System uses an additional influencing factor, account grouping, to differentiate further between the various movements during account determination.
    Hope it will be Helpful 4 u.
    Reward Point if Useful.

  • Creating a variable whose name is the value of a String

    Hi guys
    i want to create java variables dynamically whose name is the
    value of String .
    Such as
    String str="object";
    now i want to ceate a variable of
    type int whose name will be "object".
    in what manner i can do this.

    i want to create java variables dynamically whose
    name is the
    value of String .
    Such as
    String str="object";
    now i want to ceate a variable of
    type int whose name will be "object".
    in what manner i can do this.
    You can't. The best you can do is create a Java source file and compile it on the fly.
    Could you tell us why you want to do this? I have no doubt at all that you are working with a bad design, and maybe we could help you fix it.

  • Variable to hold the value at run time

    Dear Friends,
         I have a requirement in customer ageing report to select a particluar record from the cube based on the record selected by the query. Is there any option for holding a value of the dimension selected by the query in to a variable at run time. kindly let me know if am not clear.
    Thanks
    Prem

    you want to :
    Exeute a query - this will select a particular record and this is to be used to select another reord from a cube. I assume that the seletion from the cube will also happen through a query - then try using a prequery - have a variable on the query on the cube which is filled using replacement path from the previous query..?

  • Purchase Order condition isn't calculating the value of refundable tax

    Hello Experts,
                          When i am inputting tax in invoice tab at item level footer in Purchase Order, and after that when i am calculating the taxable and the total amount the condition tab isn't displaying the tax value, the condition type is NAVS of tax in condition tab. Kindly suggest me i want to calculate tax.
    Thanks
    Harmandeep

    Hi flora
    Just get through the sequence .
    see the table fields ...
    1. From EKKO table take an entry which is having pricing conditions.
    Now in the fields list check out for field EKKO-KNUMV(document condition number).
    2.Take this condition number and now goto table KONV.
    Give the document condition number in the field  KONV-KNUMV and execute .
    This will lead to a list of document condition numbers and some other fields .
    3.Now check for field KONV-KNUMH ,KONV-KAWRT(quantity) and note the value KONV-KWERT  .
    (Remember this is at header level).
    This is ur condition record number.
    **comments
    Now from document condition number we got the condition record number (KNUMH).
    4. now since u want the item level tax procedure go to table KONP and give the condition record number and execute .
    This will give u a list of details .
    Now concentrate on KONV-KAWRT (scale quantity) KONP-KBETR(rate) as this table will store “Pricing  per UNIT “ so product of these two will give u the total pricing tax, for a particular condition type say PR00  .
    For that particular condition item .
    Check the pricing procedure .
    See t-code VK13 and check the pricing procedure .
    From me23 check the same PO num select the item and check the pricing conditions applicable .
    Select a particular pricing and goto condition->analysis->analysis pricing  ,
    Better take help of a SD functional consultant in the process.
    regards,
    vijay.

  • Populate variable 2 according to the value selected in variable 1

    Hello BW Experts,
    I have two variables sales area vsarea and sales org vsorg.
    eg: data:
    sales area area1 contains
        1) sales org org1
        2) org2
    sales area area2 contains
        1) org3
        2) org4
    req:
    first the user selects the values in the vsarea area1. then when he comes to select the variable vsorg it should show only show org1, org2. it should not show org3 and org4.
    possible solutions:
    -- 1) is this possible using the variable exit ?
    please suggest any solutions for the above problem.
    Thanks,
    BWer

    thanks for the suggestion.
    however what I wanted to do is somewhat different.
    variable selection sequence:
    sales area then sales org
    1) variable 1: sales area: user selects 1000 for sales area
    2) variable 2: sales org: I should only show 1001, 1002, 1003 sales org, which belong to 1000 sales area
    please suggest if there is already a solution for this.
    Thanks,
    BWer

  • To hold the value of a container in BPM

    Hi,
    How to access the value of the counter outside an  infinite loop in the BPM, i have to use the counter calculated in the first infinite loop in the next while loop.
    Let me know if any one has done this..
    thankx,
    Shree

    You mean inside the same BPM?
    If that's so, you can use the local container you are using as counter wherever you want in the BPM. So, you can change the container in a step and use the same container (read its value) in any steps after that.
    Regards,
    Henrique.

  • How to hold the value of a prompted password in a variable while file is open?

    I have this little VBA macro that uses ADODB to execute a SQL Server Agent job remotely.  It is in an Excel file, and there will be several other similar macros in the same Excel file.  They will be used at least 10 times, each time the user opens
    the Excel file.  If I leave it like this, the user will be prompted for the password every single time they run one of the macros.  How can I change it to instead prompt the user for the password value initially when they open the file, store it
    in a variable, and then utilize that variable value for the database connection every time they run one of the macros (to avoid repeated prompting)?  Also, are there any security concerns with my proposed approach?
    Sub Test_SSIS()
    Dim conn As Object
    Set conn = CreateObject("ADODB.Connection")
    conn.Provider = "sqloledb"
    conn.Properties("Prompt") = adPromptComplete
    conn.Open = "Data Source=MYSERVER;USER ID=JOHNDOE;"
    conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
    End Sub

    One possibility is to use the workbook_open event to prompt for and store the password temporarily in the registry. Add the following code to the thisworkbook module of the workbook
    Option Explicit
    Private Sub Workbook_Open()
    Dim strPassword As String
    strPassword = GetSetting("myApp", "Config", "Password", "")
    If strPassword = "" Then
    strPassword = InputBox("Enter password")
    SaveSetting "myApp", "Config", "Password", strPassword
    End If
    lbl_Exit:
    Exit Sub
    End Sub
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    RegKeyDelete "HKEY_CURRENT_USER\Software\VB and VBA Program Settings\myApp\Config\"
    If RegKeyDelete("HKEY_CURRENT_USER\Software\VB and VBA Program Settings\myApp\") = True Then
    MsgBox "Password cleared"
    Else
    MsgBox "Password not stored"
    End If
    lbl_Exit:
    Exit Sub
    End Sub
    Function RegKeyDelete(i_RegKey As String) As Boolean
    Dim myWS As Object
    On Error GoTo ErrorHandler
    Set myWS = CreateObject("WScript.Shell")
    myWS.RegDelete i_RegKey
    RegKeyDelete = True
    Exit Function
    lbl_Exit:
    Exit Function
    ErrorHandler:
    RegKeyDelete = False
    GoTo lbl_Exit
    End Function
    Then modify your macro code as follows:
    Sub Test_SSIS()
    Dim strPassword As String
    Dim conn As Object
    strPassword = GetSetting("myApp", "Config", "Password", "")
    If strPassword = "" Then
    strPassword = InputBox("Enter password")
    SaveSetting "myApp", "Config", "Password", strPassword
    End If
    Set conn = CreateObject("ADODB.Connection")
    conn.Provider = "sqloledb"
    conn.Open "DATA SOURCE=MYSERVER;USER ID=JOHNDOE;Password=" & strPassword & ";"
    conn.Execute "exec msdb.dbo.sp_start_job 'Test_remote_job_execution'"
    End Sub
    The workbook must obviously be saved as macro enabled
    This will then prompt once when the workbook is opened. When the macro is run it will read the password from the registry thus not requiring a prompt, unless for some reason the password is missing or nothing has been entered as a value in the first box.
    When the workbook is closed, the workbook before close event deletes the registry entries completely.
    The only snag to this is if the workbook is crashed, the registry entry is not removed and there will be no prompt next time, until the workbook is closed correc tly. This might not be an issue, if the users don't know about it, so hide your code from them.
    Graham Mayor - Word MVP
    www.gmayor.com

  • How to call two variable which are hold multiple value  in to for loop

    hi,
    i have 4 item ,Two Select List And Two Check Box .Class id And Section are select list and student id and subject id are check box .i want to insert More then one subject id in to table corresponding to more then one student id .
    eg. when i select class id 1 and section A then student id of class 1 and section A comes into Student id(check box item ) and all subject corresponding to class 1 comes into subject id( check box item).
    now i want to insert multiple selected subjects with respect to selected multiple student id in to table when i press submit Button.
    My table is
    CREATE TABLE "STUDENT_SUBJECT_DETAIL"
    (     "S_NO" NUMBER,
         "STUDENT_ID" NUMBER,
         "SUBJECT_ID" VARCHAR2(50),
         "SESION" VARCHAR2(50)
    i am using this Code
    DECLARE
    STU wwv_flow_global.vc_arr2;
    SUB wwv_flow_global.vc_arr2;
    begin
    STU:= wwv_flow_utilities.string_to_table(:P57_STUDENT_ID);
    SUB := wwv_flow_utilities.string_to_table(:P57_SUBJECT_ID);
    for i in 1..STU.count loop
    for i in 1..SUB.count loop
    insert into STUDENT_SUBJECT_DETAIL
    values(CLA_SUB_ID_SEQ.nextval,STU(i),SUB(i),:p57_SESION);
    end loop;
    end loop;
    END;
    Edited by: Manoj Kaushik on Nov 20, 2009 10:10 PM

    DECLARE
        STU wwv_flow_global.vc_arr2;
        SUB wwv_flow_global.vc_arr2;
    BEGIN
        STU:= wwv_flow_utilities.string_to_table(:P57_STUDENT_ID);
        SUB := wwv_flow_utilities.string_to_table(:P57_SUBJECT_ID);
        FOR i in 1..STU.count LOOP
            FOR i in 1..SUB.count LOOP
                insert into STUDENT_SUBJECT_DETAIL
                values(CLA_SUB_ID_SEQ.nextval,STU(i),SUB(i),:p57_SESION);
            end loop;
        end loop;
    END;This doesn't look right to me:
    1. You have 2 loops, and they are both using the variable i as a counter.
    2. Your insert needs to be in the form: insert into table (column names) values (values to insert)
    3. Why not use a trigger to get the nextval from the sequence?
    Trent
    Edited by: tr3nton on Nov 21, 2009 4:16 PM

  • PO structures or tables that hold the values at Routine level

    hi
    can any one tell me what are all the MM structures or tables that holds value of mode of transport (OIC_MOT) and Order acknowledgment requirement (KZABS) values at VOFM routine level.
    if we caunt find these values at the routine level through structures, is there any other method to get those values at the routine level
    vamsi

    hi Mav,
    it's normal to have + and - records in infocube, the way infocube work is always ADD/INSERT records, any changes to data will be - first then insert new value, e.g
    Data come from transaction
    Date           Customer     Order Qty
    12.12.2005     A            100
    Data go to infocube
    Date           Customer     Order Qty
    12.12.2005     A            100
    Then transaction change :
    Date           Customer     Order Qty
    12.12.2005     A            50
    so in infocube will have 3 records :
    12.12.2005     A            100
    12.12.2005     A           -100
    12.12.2005     A             50
    -- total = 50 (correct)
    so its' normal to have - in infocube
    you can eliminate these records by do infocube compression.
    hope this helps.

  • Why does my 2012 Retina Macbook Pro's trackpad become extremely unresponsive after I plug in a USB mouse? The only trackpad command that works is the left click, I can't select text or press down and hold the trackpad to do anything else until I restart.

    My trackpad becomes REALLY unresponsive after I plug in a USB mouse. It seems like the cursor is broken and stuck on a permanent left click or something. I'm unable to select text or do any other sort of action that requires you to hold down the trackpad and drag. Mouse icons don't update as I scroll over different text and links. The trackpad is usually stuck in this unresponsive state until I restart my macbook which is extremely inconvenient if I have to do this after every time I use a USB mouse. Are there any fixes to this?

    Melophage,
    I don't leave it outside. Usually when I leave it overnight, I do so under the same conditions as when I leave it plugged in, and this morning I only left it for about an hour in my house and it did the same thing.
    LowLuster,
    I actually have a new hard drive I bought a while back and have been meaning to switch it out with the one that's in there now. I'll follow your instruction, then make the switch I had planned on and report back.

Maybe you are looking for