Variable lost value

else if (invalue >= STAMP3S && invalue <= STAMP3E)
NSLog(@"Greater than 250,000 and leass than 500,000 StampDuty
\t\t3%%"
[lblIntrest setText:[NSString stringWithFormat:@"Stamp Duty:\t\t%@" , [currencyStyle stringFromNumber:stampN3]]];
NSLog(@"Prints
StampDuty value %@ ", [noStyleFormatter stringFromNumber:stampN3]);
NSLog(@"Prints
Purchase Price %.0f",
invalue);
NSLog(@"Prints stamp
duty %@ ", stampDuty);
NSNumber *stampDuty = [stampN3 retain];
// at this point stampDuty seems to have a value but looses it on
exit calculation
float
Beven = (invalue + SaleP + survey +
stampDuty etc etc
All
the
values
have been calculated BUT "stampDuty" goes into the calculation total as
zero
Notice
that stampDuty is a different color this must be
significant???

monalesa9876 wrote:
else if (invalue >= STAMP3S && invalue <= STAMP3E) {
NSLog(@"Greater than 250,000 and leass than 500,000 StampDuty           3%%");
[lblIntrest setText:[NSString stringWithFormat:@"Stamp Duty:          %@", [currencyStyle stringFromNumber:stampN3]]];
NSLog(@"Prints StampDuty value %@ ", [noStyleFormatter stringFromNumber: stampN3]);
NSLog(@"Prints Purchase Price %.0f", invalue);
NSLog(@"Prints stamp duty %@ ", stampDuty); // stampDuty #1
NSNumber *stampDuty = [stampN3 retain]; // stampDuty #2
// at this point stampDuty seems to have a value but looses it on exit
// Which stampDuty? #1 or #2
calculation
float Beven = (invalue + SaleP + survey + stampDuty etc etc </div>
Please, no "etc". You need to post more of this code is anyone is going to be able to figure anything out.
Please, post it between two lines of:
Don't use any other method.
You have two variables with the name "stampDuty". Your compiler must be issuing a warning about this. Even if the compiler isn't issuing a warning for some reason, I am!
<div class="jive-quote">Notice that stampDuty is a different color this must be significant???
Color has no significance. You must post more code.

Similar Messages

  • JUnit Test Debug: Static variable lost value!!!

    Hi, I am writing JUnit code.
    env: JDeveloper + JUnit Plugin + Selenium RC
    While I am debugging, I found the static variable lost between 2 different test, I mean a test is a @Test, do somebody know why??
    Thank you very much!!

    1.) The File you initialize in the method is not the same as the instance file variable that you initially initialized to null. You declared a new File in that method.
    2.) Read about layout managers. The behavior you are seeing is because of the default layout manager's behavior.

  • Lost value of a constant

    In the spec part of a package I define
    c_GTCON50_S CONSTANT VARCHAR2(1):='S';
    In a procedure in the body part I do:
    INSERT INTO IGIC_DECE_400_11_INCIDENCIAS
    ( ID_DECE_INCI, ID_DECE_400, COD_DECE_INCI,
    COD_DECE_NIVI, ACTIVA_INCIDENCIA,
    FECHA_INICIO_SIT_TRIB, FECHA_FIN_SIT_TRIB )
    VALUES
    ( GTSEQU_INCI.nextval, p_id_DECE400, p_incidencia,
    p_codDeceNivi, c_GTCON50_S, NULL, NULL );
    Do you see? I INSERT that constant... But when I inspect what I have in the table, I can see that record but the field corresponding to the constant IS NULL ??????
    Why?
    What's the reason for that "lost value" of a constant?
    This procedure of the package with that INSERT is executed by another package..
    I don't know if it is a clue...
    Edited by: pacoKAS on 31-mar-2010 14:13

    pacoKAS wrote:
    Thank you for your interest...
    But my CONSTANT is ONLY defined in the specification section of the package.... The "invoking" package has not defined a CONSTANT with the same name....A constant cannot be changed.
    SQL> create or replace package MyLibrary is
      2
      3          MY_CONSTANT     constant varchar2(5) := 'fixed';
      4
      5  end;
      6  /
    Package created.
    SQL>
    SQL>
    SQL> -- cannot change its value
    SQL> exec MyLibrary.MY_CONSTANT := 'gotya';
    BEGIN MyLibrary.MY_CONSTANT := 'gotya'; END;
    ERROR at line 1:
    ORA-06550: line 1, column 17:
    PLS-00363: expression 'MYLIBRARY.MY_CONSTANT' cannot be used as an assignment target
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL>
    There is a reason for the "loss of value" of the constant...
    But I don't know that reason....It cannot loose the value. Not possible. As shown above, you cannot change the variable's value - the reserve word "+constant+" does not allow it.
    The only other explanation is scope - you think you are referring to that constant, but within the current code unit's scope, the reference is to another variable. And that's the value that you see.
    This is of course assuming that you are diagnosing the problem correctly. A trigger could be responsible for changing the row's column value set by that constant via the INSERT statement. There could be an error (constraint violation for example) that is suppressed - so it seems that a row with that constant value is inserted, when it is not the case. Etc.

  • BW Query variable default value put in Crystal report variable question

    Why BW Query variable default value put in Crystal report variable for BO InfoView to open crystal report.
    I using Analyzer to open bw query,variables had default value ,but crystal report can't had variable default value ,and can't search variable  value.
    pho:
    [http://file.itpub.net/f/e38876ad4f6efb7e73980488e7d71f8d/4ae940e9/day_091029/20091029_2b04da1232144feba180OrB23SNvXtoT.gif/p/1.gif]
    [http://file.itpub.net/f/d93ddfe61e0eaf80429726c61f1a02ff/4ae940e9/day_091029/20091029_3211ffe04bf0302fbab5FRKnbwmH80p7.gif/p/BW_QUERY_Crystal.gif]
    Edited by: flying on Oct 29, 2009 8:20 AM

    I Know what to do .
    but Crystal report date variable value are Garbage characters "###".
    PHO:
    [http://file.itpub.net/f/39a8510104476707ae21c945db93ecba/4ae97949/day_091029/20091029_32dcbb7e7d99141483aesJ9KBJHXN0Kj.gif/p/2.gif]

  • How to assign a JSP variabl's value to a JavaScript variable?

    Hello,
    I want to assign a JSP variable's value to JAVASCRIPT variable.
    or how to assign JavaScript variable's value to JSP varialbe
    HOw do i do it ?
    can anyone please help?
    Regards and thanks for your time.
    Ashvini

    I want to assign a JSP variable's value to
    JAVASCRIPT variable.
    var jsVariable = <%=someVariable%>;
    or how to assign JavaScript variable's value to JSP
    varialbeYou can't. JSP is server-side and JavaScript is client-side. The JSP variables are never available on the client side for any sort of assignment.

  • Passing variable having value as whole SOAP request to command while invoking ODI WS call

    When passing variable in place of soap request message (variable value is whole SOAP request message prepared using procedure) in ODI Invoke WebService command like -->
    OdiInvokeWebService "-URL=url...." "-PORT_TYPE=..." "-OPERATION=..." "-RESPONSE_MODE=NEW_FILE" "-RESPONSE_FILE_CHARSET=UTF8" "-RESPONSE_XML_ENCODING=UTF-8" "-RESPONSE_FILE=..." "-RESPONSE_FILE_FORMAT=SOAP" "-HTTP_USER=..." "-HTTP_PASS=..."
    #SOAPREQUESTMESSAGE
    Gives error :
    ODI-1226: Step OdiInvokeWebService 1 fails after 1 attempt(s).
    ODI-1241: Oracle Data Integrator tool execution fails.
    Caused By: com.sunopsis.wsinvocation.SnpsWSInvocationException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '#' (code 35) in prolog; expected '<'
    at [row,col {unknown-source}]: [1,1]
        at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.loadFromXML(AbstractMessageImpl.java:333)
        at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.loadFromString(AbstractMessageImpl.java:348)
        at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.fromString(AbstractMessageImpl.java:403)
        at com.sunopsis.wsinvocation.client.impl.AbstractJWSDLParserImpl.fromXML(AbstractJWSDLParserImpl.java:272)
        at com.sunopsis.wsinvocation.client.impl.AbstractJWSDLParserImpl.getWebServiceRequestByOperation(AbstractJWSDLParserImpl.java:260)
        at com.sunopsis.dwg.tools.common.WebserviceUtils.getSOAPMessage(WebserviceUtils.java:94)
        at com.sunopsis.dwg.tools.common.WebserviceUtils.invoke(WebserviceUtils.java:138)
        at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java:327)
        at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3437)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1509)
        at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:44)
        at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:1)
        at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
        at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
        at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
        at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
        at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
        at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
        at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
        at java.lang.Thread.run(Thread.java:662)
    Thanks in anticipation...

    the used variable 'SOAPREQUESTMESSAGE' is being created in a procedure using jython.
    1. Can we use this variable (SOAPREQUESTMESSAGE) value in the next step that is while invoking web service request (can it persist) ?
    2. If not then how can we use this variable value to invoke ws request in next step ?
    Would like to appreciate help.
    Pls reply.

  • How can i pass a variable's value from PR to PFR

    Dear all,
    hope you are fine.
    i would like to pass a variable's value from PR to PFR.
    how can i do that.
    please suggest.
    in PR:
    String transactionId = (String) vo_trans.first().getAttribute("Getnexttrans");
    i would like to get this value to PFR.

    Mofizur,
    You can achieve the same using Session variable.
    If u are not executing the VO after PR. Then you will be able to get the same value as u are using in PR
    String transactionId = (String) vo_trans.first().getAttribute("Getnexttrans");
    Note - You have a few of the threads left open, mark it as answered if solved.
    Regards,
    Gyan

  • How to set variable default value by program?

    Dear all,
    We would like to set a BW variable default value by program (not using query designer).
    Do you have any ABAP sample code for this? I'm really new in ABAP programming.
    we are using BI 7.0
    Thank you for your help!
    Olivier DESFOUR

    Hi Olivier,
    FOllowing is the code which defaults calmonth to first month of the year to current month - 1.
    Data : input1(4) TYPE n,
           input3(2) TYPE n.
    WHEN 'YQV_FD'.
      if i_step = 1.
      input1 = sy-datum+0(4).
      concatenate input1 '01' into l_s_range-low.
      input3 = sy-datum+4(2) - 1.
      concatenate input1 input3 into l_s_range-high.
      l_s_range-sign = 'I'.
      l_s_range-opt = 'BT'.
      APPEND l_s_range TO e_t_range.
      endif.

  • Unexpected type  required: variable   found   : value

    Hello, these are my errors:
    PWC6197: An error occurred at line: 43 in the jsp file: /jsp/ListRedirect.jsp
    PWC6199: Generated servlet error:
    string:///ListRedirect_jsp.java:96: unexpected type
    required: variable
    found : value
    PWC6197: An error occurred at line: 43 in the jsp file: /jsp/ListRedirect.jsp
    PWC6199: Generated servlet error:
    string:///ListRedirect_jsp.java:96: incomparable types: java.lang.String and int
    ==================================
    any suggestions??
    <%      
    if (listData.getListURL()= null || listData.getListInfo() == 0)
              String baseUrl = "/content/listings.html?";
             String listUrl = null;
                  if (userData.isAgentType()) {
                    listUrl = parentPage + baseUrl + "ag_id=" + userData.getAgentID();
                  }  if (userData.isBrokerType()) {
                  listUrl = parentPage + baseUrl + "br_id=" + userData.getAdverID();
                  }  if (userData.isOfficeType()) {
                  listUrl = parentPage + baseUrl + "ag_id="= + userData.getAdverID();
                  } else {
                  listUrl = parentPage + "/content/homefinder.html";
                   if (listData.getListURL() && listData.getListInfo() == 1) {
                       listUrl = listData.getListURL();
               else {
                    listUrl = parentPage + "/content/homefinder.html";
    %>     

    mimsc wrote:
    if (listData.getListURL()= null || listData.getListInfo() == 0)
    The 1st part of this if statement is incorrectly an assignment, not a equation.
    Further on, this code belongs in Java classes like servlets, not in JSPs. This would not only introduce clean code separation, but also greatly improve debugging and maintenance.

  • Extract Variables and Values out of a String

    Hello Everbody!
    I have a question, hope that anyone can help me.
    I have a string of this kind: "frame= 2255 q=0.0 size= 2739kB time=75.0 bitrate= 299.3kbits/s"
    Know I want to deconstruct it and extract the variables and
    values written in there. There is some Whitespace in it.
    After the extraction it have to look like this:
    frame=2255
    q=0.0
    Greetz Christian

    What is a StringTokenizer?http://java.sun.com/j2se/1.5.0/docs/api/java/util/StringTokenizer.html
    Can you give me an
    example? Would be great! http://www.google.com/search?q=java+stringtokenizer+example
    You can first use space as the delimiter, to get tokens
    a=b
    c=d
    etc.
    Then you can tokenize each of those tokens on =.
    However, this doesn't work if you can have spaces around the = or inside the values:
    a = b
    c="d e f"
    If you can have this, you'll have to take a different approach. String.split might serve you better in that case, but you'll have to learn a bit about regex first.
    Sun's Regular Expression Tutorial for Java
    Regular-Expressions.info

  • Finding variable data value using fms

    hi experts
    i want find variable field value by using fms.pls help me
    exact scenerio is
    i want fetch the value tax amount of respective tax code from the Define tax Amount distribution form.
    eg.if suppose i tax code BED+VAT then i want get what is the calculated value of excise ,cess and and vat .i get the row tax amount.whwn i click tax amount filed i get tax amount distribution form from this form i want that particular valu
    what is exactsql for this

    Hi Sachin,
    No need to go FMS. Open any transcation screen. For eg., Open Sales Order, goto Form Setting -> Table Format. Please check the field column like "Tax Only".
    Then open any SO, check it out this Link, u will get the full information and tax break etc...
    Thanks
    SAGAR

  • UCCX 8.5.1 - Expression editor and a variable string value error

    I receive the followng error when trying to create a varialbe string value using the expression editor. The string value that I am trying to create is used with the Create URL Document Object. The popup error states 'Unable to parse expression: Couldn't repair and continue the parsing on token #ID 'FindCaseByCaseNumber' (line 1, col:24)'  The string value is "<Message MessageType="FindCaseByCaseNumber" Source="APIMessage" ReferenceNumber="1" NodeID="1" UserID="1"><CaseNumber>"05-CP-001842"</CaseNumber></Message>". The editor will not let me save the string value with quotation marks being used in the string value, exampe "FindCaseByCaseNumber". When I remove the quotation marks from the string value the editor will save the value but then the variable will not work.
    Has anyone encountered this same problem or know what to replace the "" to terminate the string value? I have tried brackets, but this does not work. Any suggestions are greatly appreciated!

    I found my answer. It appears that ${}, #{}, and ' will let you add a sub-variable to a variable string value.

  • Value "JCO CALLS" for variable "E2E Metric Type Variable(multiple values)"

    Hello Experts, 
    Workload analysis for java components doesnot show any data.
    more over get "JCO CALLS" for variable "E2E Metric Type Variable(multiple values)"  error.
    my setup wizard completed without any error.
    Any suggestions ?
    Thanks & Regards
    Sankar

    Hi Sankar,
    have a look at my post in no data for Jco in E2E thread.
    Hope this helps.
    Regards,
    Shyam

  • Variable has value ??.DP0.D003??  in WEBi

    i have a report which was created by somebody else, need to udnerstand it. it has a formula variable  thats shows value ABS(??DP0.D0003??) i am lost where this value came from as its not in the dimension or the variables created. could it be an underlying cube and if it is . dont see it under edit for query.
    i understand the DP0 must be for the data provider, which is being referenced inside a Webi formula but how do we find the D0003 dimension from WEBi for the data provider.
    any body has ever used a cube inside a variable and how do you get the value with ??
    i found an document but still doesnt explain how one get the dimension values?
    https://www.sulissystems.co.uk/pdfs/Sulis%20Systems%20Webi%20Documenter%20Example%20Output.pdf

    yes i did , it seemed the report was moved from a different system and the underlying query was missing some objects. thats why the Webi report came up with the ?? Dp0.D*****?? for characteristics and key figures. It couldnt find its source fields from the query. once the query was moved with the right fields. the objects got remapped and started to show. it was just interesting as i have never seen that one before. thanks for the insight.

  • Loop through a model to get variables and values

    I use an AS model (named AppGlobals.as) to store the application variables. I need to replace the hard-coded values of the elements to ones pulled from a database. As such, I need to iterate through the model to find all the elements that match my query results and then set the value of the elements to those returned from the database query.
    My current issue is that I have no clue how to iterate through the model to get the elements so that I can use them a parameters for my query. An example of AppGlobals.as follows...
    package com.models
              [Bindable]
              public class AppGlobal
                        public var appAnnualMaintenanceAlert:String="The System is unavailable due to routine annual maintenance!  Please check back after 2:00 PM Eastern on  January 1, 2012!";
                        public var appAnnualMaintenanceStart:Date=new Date(2012, 11, 31, 18, 0, 0, 0);
                        public var appAnnualMaintenanceEnd:Date=new Date(2013, 0, 1, 14, 0, 0, 0);
                        public var appYearPrevious:String="2011";
                        public var appYear:String="2012";
                        public var appYearNext:String="2013";
                        public var dttm_landing_expected:String="1/1/2012 12:00:00 AM";
    How can I iterate through the model to find all the var names and then match them with my query to return the corresponding values?  Any help is appreciated.
    Thanks!
    Lee

    Hi,
    "elided" and "hidden" both have UI purpose (make the UI lighter) but are quite different:
    "elided" is a static attribute of property groups (readonly, and After Effects never changes the value internally).
              The children of an elided group are not necessarily elided.
    "hidden" is NOT an attribute, is dynamic, and "undocumented".
              The After Effects UI hides everything that is not needed in the layer property tree (for instance the material option group is hidden when the layer is not 3D, since it is not used anyway).
              Hidden groups and properties are still there though and can be accessed by script, one can read their values and attributes, scout their property subtree, but one cannot set anything on them nor select them (in both cases an error is generated).
              And the children of a hidden group are hidden.
    Since there is no attribute corresponding to "hidden", it is uneasy to know whether a property is hidden or not. I can only see a case by case "treatment".
    For instance:
    is myLayer.layerStyle hidden ? <===>  !myLayer.layerStyle.canSetEnabled
    is myLayer.transform.xRotation hidden ? <===>  !myLayer.transform.xRotation.canSetExpression
    is myLayer.mask hidden ? <===> myLayer.mask.numProperties===0
    is myShapeLayer.content hidden ? <===> false (never hidden, even if empty)
    etc...
    Xavier.

Maybe you are looking for

  • Error 1335 the cabinet file data4.cab is corrupt and cannot be used, what do i have to do

    error 1335 teh cabinet file data4.cab is corrupt and cannot be used, what do i have to do

  • Problem in copying the territory id to the follow-up document

    Hi, I have sales order with all the partners determined with all the territories attached to them. Now I am trying to create a follow-up document from it. I am facing the following two issues: 1. It is copying the partners to the follow-up document w

  • Help Containing Image in IE - CSS Issue.

    I'm trying to get this site running and am in need of a little help. I have a fading image that seems to play nice in everything but IE. Instead of staying within it's wrapper it floats off to the right and I have no idea how to fix this one. Feel fr

  • SAP DMS Link to Inspection Lot QALS

    Hi experts, Can anyone tell me how to implement the Object Link to inspection lot. Am using EHP 6.and found that there are some notes to be implemented note. Does anyone have worked with the DMS Object link with Inspection lot. request you to kindly

  • Selected areas disappearing when punching in

    Hey, all, new problem here. Using 9.1.7 on 10.6.8 64-bit on an 8-core Mac Pro. During recent sessions, when punching in, all previously selected regions go away, leaving a blank comp track. Obviously a real problem in a session with lots of quick-swi