Using quotation in a an output string

How would one use qoutation if u wanted output to show as follows "You were correct!"
as the code
"" You were correct !"" is clearly not correct

Use the backslash for escape characters:
"\" You were correct !\"" Edit: I'm too slow!
Edited by: Encephalopathic on Jan 6, 2008 10:53 AM

Similar Messages

  • How can I substitute characters in a string when the same characters are used in both input and output strings

    Hi Numbers users,
    I am trying to get Numbers 2.3 on OS X (10.9.1) to convert  cells containing variable length strings composed of 6 letters, A, B, C, a, b, c into a second string containing the same 6 lettersusing the rule A to c, B to b, and C to a and vice versa, so for example cell A1 might contain string "AcBbCaaB" and I want Numbers to convert this into "cAbBaCCb" in cell B1. I have tried to use the SUBSTITUTE function (nested) without success so far as I end up with the letters either all uppercase or all lowercase. I understand why this is happening and maybe it isn't possible using SUBSTITUTE. Does anyone know if there is another function I can use to do this?
    Thanks, Hugh.

    you can use this method:
    Add a new table, called "Translator", show as the bottom table:
    Enter the data in columns B anc C as shown
    cell A1 contains:
    "=CODE(B1)"
    select cell A1 and fill down
    For the table on top enter your code in column A.  The converted code will be in column B.  Make sure there are enough columns (I went out to column AD):
    B2=R2&S2&T2&U2&V2&W2&X2&Y2&Z2&AA2&AB2&AC2&AD2
    C2=LEN(A2)
    D2=MID($A2, COLUMN()−2, 1)
    select D2, copy,
    select cells D2 thru P2, paste
    R2=IFERROR(VLOOKUP(CODE(D2), Translator::$A:$C, 3, 0), "")
    select R2, copy,
    select cells R2 thru AD2, paste
    select B2 thru AD2 and fill down as needed
    You can hide columns C thru AD

  • ActiveX server output strings

    I'm working on creating an ActiveX server executable with a number of interfaces. Each interface includes at least a couple methods that need to provide string output. The canonical prototype for such a method would simply accept a pointer to char for the output parameter:
    HRESULT method1(char *outputString);
    The ActiveX server editor dialog for method entries provides options for both input and output strings. If I specify outputString as an "output string", the prototype that's generated is:
    HRESULT method1(char **outputString);
    If I specify that it is an "input string", I get the desired prototype in the generated server code, but the corresponding controller code method specifies this parameter as "const char *", meaning that it can only be read, not written; so this isn't workable.
    If I specify that is an "output char", I also get the desired prototype, but in this situation, the generated code only copies 1 character into the output string; so this isn't workable either.
    So I've tried using the prototype produced for "output string" (see above). My server implementation for this method refers to *outputString, e.g.,
    strcpy(*outputString, "Hello");
    to populate the output parameter. On the client side, I pass in the address of a pointer-to-char that points to a string, e.g., &op where:
    char output[1024];
    char *op = output;
    Each time I invoke this corresponding client-side operation, the server crashes; *outputString in the strcpy function call evaluates to NULL. I'm sure I must have something wrong with my approach here. Is there a preferred approach for handling output strings in an ActiveX server?
    Many thanks in advance!

    I don't know if this is helpful at all, but there is an example that uses output strings, SimpleEXE.cws. It may be beneficial to see how it is handled there. The method in question is the Add method in the IString interface. 
    Steven

  • I never used LabView but need to generate a RS-233 serial output string that contains an IRIG timestamp based on a contact closure. Is LabView an appropriate tool to do this? How much does it cost to get started with the product?

    I never used LabView but need to generate a RS-233 serial output string that contains an IRIG timestamp based on a contact closure. Is LabView an appropriate tool to do this? How much does it cost to get started with the product?

    Labview isn't cheap, but it would certainly allow you to build a program (set of vi's - virtual instruments) that would do what you describe. Where would the timecode information come from? Your vi, or program, would: Start up, initialize the serial port, loop until a trigger happened, read the timecode (from where?), output that timecode out the serial port in a loop until you pressed the stop button. There is a free evaluation of Labview software available from NI - the base product itself runs about $995.
    - Dave

  • How do I use the print function to output a numeric variable with a fixed amount of leading zeroes

    I need to create an output from a T-SQL query that picks a numeric variable and uses the print function to output with leading zeroes if it is less than three characters long when converted to string.  For example if the variable is 12 the output should
    be 012 and if the variable is 3 the output should be 003.
    Presently the syntax I am using is PRINT STR(@CLUSTER,3) .  But if @CLUSTER which is numeric is less than three characters I get spaces in front.
    Please help!

    >> I need to create an output from a T-SQL query .. <<
    NO! NO! In RDBMS, we have a presentation layer that handles displays. We do not ever do it in the database. This is fundamental. But more than that, the purpose of PRINT is for debugging in T-SQL and never for output.
    You are still writing 1960's COBOL or BASIC, but you want to to it in SQL.  You probably picked the wrong data type (a numeric that should be a string) and are trying to repair your design error.  
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Output strings from loop into one string

    im trying my best to explain my problem so ber in mind:)
    hey having a bit of trouble with outputing strings from loop
    example
    i typed ab into the textbox
    the output should be 12
    but since it is in a loop it would only output the last string and in this case is 2
    im trying to get both strings from the loop and output strings from loop into one string.
    here is some of my code to understand my problem
    // characters a to f
         char[] charword = {'a','b','c','d','e','f'};
         String charchange ;
      // get text from password textbox
                          stringpassword = passwordTextbox.getText();
                          try {
                          // loop to show password length
                          for ( int i = 0; i < stringpassword.length(); i++ ){
                          // loop to go through alfabet     
                          for (int it = 0; it < charword.length; it++){
                             // if char equals stringwords
                               if (stringpassword.charAt(i) == charword[it]){
                                    System.out.print("it worked");
                                    // change characters start with a
                                    if (charword[it] == 'a'){
                                         charchange = "1";
                                    // change to 2
                                    if (charword[it] == 'b'){
                                         charchange = "2";
                                        }

    Not sure how you are displaying the result but you could display each value as soon as you find it.
    if (charword[it] == 'a'){
        System.out.print("1");
    }If it is in a text field then use append. Or if you really need a String with the entire result then use concatenation.
    if (charword[it] == 'a'){
        charchange += "1";
    }

  • Error using LISTAGG function to aggregate the strings.

    HI
    I am using LISTAGG function to aggregate the strings but throws a error ORA - 19011
    The output of the aggregated function exeeds the varchar limit.
    I dont know how to change it to a LOB.
    Can you please help me.
    This is the code.
    I have used both the functions.
    RTRIM(XMLAGG(XMLELEMENT(e,FDCT.USER_NAME || ' ')).extract('//text()'), ' ')
    or
    LISTAGG(FDCT.USER_NAME, ',') WITHIN GROUP (ORDER BY FDCT.USER_NAME)
    Edited by: 787819 on Jun 22, 2011 1:46 PM

    If a function returns a VARCHAR2, then it will error (or sometimes truncate depending on function) when reaching the limit of the datatype.
    Perhaps an alternative would be to write your own user-defined aggregate function that works with a CLOB.
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10765/aggr_functions.htm#ADDCI2120
    A comma-separated string over 32767 in length sounds of dubious value to me anyway...

  • Can formula node take string input and output string?

    I am wondering if the formula node can take string input variable and output string variable after calculation. otherwise I have to output integers and then use case structure to select different output strings, that is kind of redundant in coding.
    ping

    If you are just trying to read lines that have mixed formatting, you don't need any script nodes.
    Can you attach a tpyical flne and a description of the desired read operation so we have a better idea what you are trying to do? Do all lines have the same overall format?
    LabVIEW Champion . Do more with less code and in less time .

  • VISA Read Losing Characters off the end of the output string

    Hi,
    So I am writing a VI to take an output string of data from an ardunio Uno and parsing it. I am using the Read Visa vi to grab the string from output of the device. In the end I will be connecting a device that actually gives value in this type of string  format : (#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,0*).
    So after a large number of loops, the program starts to drop the last few characters of the string that it outputs. So the string output from Visa Read will read something like (#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,). The only way to fix this problem after it has occured is to completely close labview (all the way). Once I open it again and start running the program, all is fine in the world.
    Anyone ever have this issue? I have been trying to debug this in different ways and the only weird symptom that I have other than the Visa Read function losing a few characters of the string is the fact that looking at the Bytes at Port after I Visa Read, is that it starts showing five bytes instead of zero. 
    attached is my most recent attempt at solving this issue. 
    Note:  The Ardunio outputs a string of this format every 2 seconds with the values being incrimental over a specified range.(#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,0*) 
    Solved!
    Go to Solution.
    Attachments:
    Ardunio(StringOutput).vi ‏36 KB

    So i did a long data collect and It looks like ever 43minutes and 24 seconds the system goes from cutting off the last 5 characters to not cutting off the last 4 characters.
    As I cant see how Labview would be causing that, I am going to try and dig into the Ardunio and solve that issue... hopefully when thats done I can simplfy my code like you guys pointed out.
    Thanks!
    Attachments:
    overnight_11_18.csv ‏3001 KB
    Overnight.png ‏146 KB

  • WLS 11g. Dynamic webservice client. Input is complext type. Output String.

    Hi,
    I used Webservice annotations to generate a WS (as given in WLS documentation). I am creating a dynamic client but when I invoke the client I get error.
    @WebService(name="ErrorHandlerPortType", serviceName="ErrorHandlerService")
    public class ErrorHandler {
         @WebMethod()
         public String callErrorHandler(ErrorMessage message) {
              try {
                   System.out.println("Producer: " + message.getProducer());
                   return "Here is the descirption: '" + message.getErrorDescription() + "'";
              } catch (Exception ex) {
                   ex.printStackTrace();
                   return "Caught Exception";
    public class ErrorMessage implements java.io.Serializable {
         private String consumer;
         private String producer;
         private String errorCode;
         private String errorDescription;
    WSLD which got generated.
    - <WL5G3N0:definitions name="ErrorHandlerServiceDefinitions" targetNamespace="http://katz/integration/esb/errorhandling/ws" xmlns="" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://katz/integration/esb/errorhandling/ws" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/">
    - <WL5G3N0:types>
    - <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://katz/integration/esb/errorhandling/ws" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://katz/integration/esb/errorhandling/ws" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:import namespace="java:katz.integration.esb.errorhandling.datatype" />
    - <xs:element name="callErrorHandler">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="message" type="java:ErrorMessage" xmlns:java="java:katz.integration.esb.errorhandling.datatype" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    - <xs:element name="callErrorHandlerResponse">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="return" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    - <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="java:katz.integration.esb.errorhandling.datatype" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://katz/integration/esb/errorhandling/ws" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    - <xs:complexType name="ErrorMessage">
    - <xs:sequence>
    <xs:element minOccurs="1" name="Consumer" nillable="true" type="xs:string" />
    <xs:element minOccurs="1" name="Producer" nillable="true" type="xs:string" />
    <xs:element minOccurs="1" name="ErrorCode" nillable="true" type="xs:string" />
    <xs:element minOccurs="1" name="ErrorDescription" nillable="true" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    </WL5G3N0:types>
    - <WL5G3N0:message name="callErrorHandler">
    <WL5G3N0:part element="WL5G3N1:callErrorHandler" name="parameters" />
    </WL5G3N0:message>
    - <WL5G3N0:message name="callErrorHandlerResponse">
    <WL5G3N0:part element="WL5G3N1:callErrorHandlerResponse" name="parameters" />
    </WL5G3N0:message>
    - <WL5G3N0:portType name="ErrorHandlerPortType">
    - <WL5G3N0:operation name="callErrorHandler" parameterOrder="parameters">
    <WL5G3N0:input message="WL5G3N1:callErrorHandler" />
    <WL5G3N0:output message="WL5G3N1:callErrorHandlerResponse" />
    </WL5G3N0:operation>
    </WL5G3N0:portType>
    - <WL5G3N0:binding name="ErrorHandlerServiceSoapBinding" type="WL5G3N1:ErrorHandlerPortType">
    <WL5G3N2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <WL5G3N0:operation name="callErrorHandler">
    <WL5G3N2:operation style="document" />
    - <WL5G3N0:input>
    <WL5G3N2:body parts="parameters" use="literal" />
    </WL5G3N0:input>
    - <WL5G3N0:output>
    <WL5G3N2:body parts="parameters" use="literal" />
    </WL5G3N0:output>
    </WL5G3N0:operation>
    </WL5G3N0:binding>
    - <WL5G3N0:service name="ErrorHandlerService">
    - <WL5G3N0:port binding="WL5G3N1:ErrorHandlerServiceSoapBinding" name="ErrorHandlerPortTypeSoapPort">
    <WL5G3N2:address location="http://127.0.0.1:7100/ErrorHandlingWebservice/ErrorHandler" />
    </WL5G3N0:port>
    </WL5G3N0:service>
    Client Code:
    QName serviceName = new QName("http://katz/integration/esb/errorhandling/ws","ErrorHandlerService");
         ServiceFactory factory = ServiceFactory.newInstance();
         Service service = factory.createService(serviceName);
         QName port = new QName(qnamePort);
         Call call = service.createCall();
         QName operationName = new QName("http://katz/integration/esb/errorhandling/ws","callErrorHandler");
    call.setOperationName(operationName);
    QName messageDatatype = new QName("java:katz.integration.esb.errorhandling.datatype");
    call.addParameter("message", messageDatatype, ErrorMessage.class, ParameterMode.IN);
    call.setReturnType(XMLType.XSD_STRING);
    call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,URI_ENCODING);
                        call.setTargetEndpointAddress(endpoint);
                        ErrorMessage errMsg = FormErrorMessage.getMessage("EXCEL", "PMM", "EXL123", "Trial Error Message");
                        System.out.println("Going to invoke......");
                        Object[] params = { errMsg };
                        Double result = (Double)call.invoke(params);
    I am getting the error:
    javax.xml.rpc.JAXRPCException: failed to invoke operation 'callErrorHandler' due to an error in the soap layer (SAAJ); nested exception is: Message[ failed to serialize class katz.integration.esb.errorhandling.datatype.ErrorMessageweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class katz.integration.esb.errorhandling.datatype.ErrorMessage class context=TypedClassContext{schemaType=java:katz.integration.esb.errorhandling.datatype}]StackTrace[
    javax.xml.soap.SOAPException: failed to serialize class katz.integration.esb.errorhandling.datatype.ErrorMessageweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class katz.integration.esb.errorhandling.datatype.ErrorMessage class context=TypedClassContext{schemaType=java:katz.integration.esb.errorhandling.datatype}
         at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:339)
         at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:304)
         at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:651)
         at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:209)
    Please help. I have got stuck here for last couple of days.

    Hi,
    You can try to add this property setting in client code:
    System.setProperty("javax.xml.rpc.ServiceFactory", "weblogic.wsee.jaxrpc.ServiceFactoryImpl");
    Meanwhile, the line:
    QName messageDatatype = new QName("java:katz.integration.esb.errorhandling.datatype");
    should be:
    QName messageDatatype = new QName("java:katz.integration.esb.errorhandling.datatype", "ErrogMessage"); ?
    Thanks,
    Kevin

  • SAPFM06P - Can this program be used for triggering a Smartform Output??

    Hi Experts!
    I researched a lot and came to a conclusion that Program SAPFM06P can only be used trigger either a SAP SRIPT Output or a PDF FORM output. It cannot be used to trigger a SMARTFORM output directly as there is no code in it to trigger a SMARTFORM.
    My understanding:
    I will have to either create an Enhancement to the Program or a Zcopy of SAPFM06P where I need to write the logic in form routine ENTRY_NEU to call a SMARTFORM.
    Please tell me if my understanding is correct and please guide me if there is any easier way to achieve the same functionality.
    Thanks for help!
    Greetings,
    Amit

    Hi,
        U can Copy this standard Program to ZProgram and Insert the FM SSF_FUNCTIONMODULE_NAME and call ur smartform and assign the same combination to the Output type Given to u in NACE Transaction..
    This is the Driver Program which I used for PO Smartform
    [http://vjkvijaya.blogspot.com/2009/03/puchace-order-smartform-driver-program.html]
    Regards,
    Vijaya Lakshmi.T

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • Using usb mic with logic output stops

    using usb mic with logic output stops

    Aggregate devices are setup in the Audio/Midi setup of OSX Utilities, (Not in Logic). It gives you a way of having for than one audio i/o device. Once you have set up your aggregated devices in Audio/Midi, when you start Logic you will need to go into Audio preferences and choose the Aggregate device.

  • Cp4 AS3 - using Javascript to generate a text string

    I'm a complete Javascript beginner, so please forgive me if this is a stupid question!
    I need to generate a pseudo random text string. I'm using the unpatched version of Cp4, AS3, Internet Explorer 7
    I've had a look at Captivate.Dev.com and the w3schools site to try to understand how to pass variables & basic javascript, and this is what I've come up with:
    var objCP = document.Captivate;
    function GenerateCode(){
    var rngen = new Array(8);
    var tgits = new Array(8);
    var cdrtn="";
    var lpdx=0;
    var mulier=1;
    for (lpdx=0;lpdx<=5;lpdx++){
    rngen[lpdx]=(Math.floor(Math.random()*9)+1);
    mlier=mulier*(rngen[lpdx]);
    tgits[lpdx]=rngen[lpdx]+"";
    cdrtn=cdrtn+tgits[lpdx];
    rngen[6]=(mlier%17)%10;
    rngen[7]=(mlier%13)%10;
    for (lpdx=6;lpdx<=7;lpdx++)
    tgits[lpdx]=rngen[lpdx]+"";
    cdrtn=cdrtn+tgits[lpdx];
    objCP.cpEISetValue('MyJavascriptVariable', cdrtn);
    GenerateCode();
    I've created a user variable called MyJavascriptVariable , put the code above in the On Slide Enter, Execute Javascript window on the first slide, and on the second a simple caption box showing the variable contents.
    However, when I press F12 I get an orange playbar at the top of the window, and in the middle the preloader and the captionbox (without the return value) flickering. i.e. classic sign of wrong AS version.
    If I change to AS2 the movie progresses ok, but the value the caption reports back for MyJavascriptVariable is blank.
    I know my core code works correctly - if I use the w3school's tryit editor with the code after the function declaration up to the closing curly before the objcCP line, with an addeded document.write to show the variable it works fine.
    It's clearly something to do with the way I'm declaring/passing the function or the way Cp runs the javascript. But what?
    Any help greatfully appreciated!
    Thanks

    Hi Jon,
    You are right... it works great on the W3Schools site.  Although in Cp, you ran into quite an issue using the modulus operater (%).  Looks like Cp needs the encoded version of this operator which is (%25).  Also, if you're using Cp4, then when you go to set the caption, you want to use objCP.cpSetValue();  Cp5 uses cpEISetValue.  I also try to use single quotes when working with strings.
    Here's the updated code:
    var objCP = document.Captivate;
    function GenerateCode() {
    var rngen = new Array(8);
    var tgits = new Array(8);
    var cdrtn='';
    var lpdx = 0;
    var mulier=1;
        for (lpdx=0; lpdx<=5; lpdx++){
            rngen[lpdx]=(Math.floor(Math.random()*9)+1);
            mlier=mulier*(rngen[lpdx]);
            tgits[lpdx]=rngen[lpdx]+'';
            cdrtn=cdrtn+tgits[lpdx];
    rngen[6]=(mlier %25 17) %25 10;
    rngen[7]=(mlier %25 13) %25 10;
       for (lpdx=6; lpdx<=7; lpdx++){
            tgits[lpdx]=rngen[lpdx]+'';
            cdrtn=cdrtn+tgits[lpdx];
    objCP.cpSetValue('MyJavascriptVariable', cdrtn);
    GenerateCode();
    This looks like some really crazy math.
    Let me know if this helps.
    Jim Leichliter

  • How to get the list of Used Quotations & Non Used Quotations

    Hi MM Gurus,
    How to get the list of Used Quotations & Non Used Quotations.
    i am not talking about Open quotation ,closed quotation..
    if once i created PO through quotation it should be used quotation. i not created PO through quotation
    it s should be Non used quotation. how to get this list through when we create PO  through ME21N
    document over view. is there any opetion in Dynamic selection or somthing ..???
    Thanks in Advance..
    Anthyodaya.

    ok.

Maybe you are looking for