Question about string constant in Hex display format

how to get a plus of 2 string constant which is display in Hex display like attahced, for example I have string "28" and "5D" in Labview which has been in Hex format, the plus of this 2 string should be "85" in Hex. pls help on this, thanks
Attachments:
1.jpg ‏21 KB

This'll work, too.  I'm afraid of casting types...
Jm
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
Attachments:
hex.png ‏2 KB
hex.vi ‏7 KB

Similar Messages

  • Question about String constant pool

    Is there is any function available to find how many Sring literal in String Constant pool

    Well, there's stuff like BCEL.
    But it may not do what you want.
    Why do you want to find out what's in the constant pool?

  • Question about using constant variables in Forms

    As I am still very new to Forms, please forgive my ignorance if the answer to my question is very simple. I am trying to figure out how to use constant variables within my Forms application. For example, if I want to setup return code constants for the application (mind me, these are examples):
    RC_SUCCESS CONSTANT PLS_INTEGER := 1;
    RC_FAILURE CONSTANT PLS_INTEGER := 0;
    RC_YEAR_DATA_NOT_FOUND := 50;
    Then in a module I created, if I wanted to check the return code against one of the constants I would do:
    DECLARE
    rc PLS_INTEGER;
    BEGIN
    GET_YEAR_DATA('2000', rc);
    IF rc = RC_YEAR_DATA_NOT_FOUND THEN
    -- Do some error handling
    END IF;
    END;
    I know that you can declare constants within individual procedures or packages but I can't see to find information on how to do this globally for the application. I've read about using global variables within Forms but the CHAR data type only and the fact the value can be changed doesn't really fit for this purpose. Am I missing something? Is there a config file or something for the webserver that can be used to set these up??
    Any help would be appreciated.
    Thanks

    To declare constants create a Package-Specification in a pll and deifne all your constants there, something like:
    PACKAGE PK_CONSTANTS IS
      RC_SUCCESS CONSTANT PLS_INTEGER := 1;
      RC_FAILURE CONSTANT PLS_INTEGER := 0;
      RC_YEAR_DATA_NOT_FOUND := 50;
    END;Then attach that pll to all your forms-modules, and use it like
    IF rc = PK_CONSTANTS.RC_YEAR_DATA_NOT_FOUND THEN
    END IF;A word about exceptions or errors: In my eyes its clearer (and in case of exceptions even better) to raise an exception than to hide it behind return-codes.

  • A question about 4:3 and 16:9 formats

    Hello:)
    I have finally bought a DV camcorder and therefore try to use the iMovieHD software properly now.
    What I realized after some filming is that the camcorder was originally set to 16:9, which now gives me a hard time when I try to compress into small formats.
    I mean, in expert settings, by sharing, some NTSC, PAL and HD sizes do have 16:9 versions, but these are already too big files, I'd rather choose something like 320x240.
    Is there some workaround I am missing? I also tried to find something about sreen format in the properties menus of the players, especially quicktime.
    Ah, and by the way, what would be a democratic compression format to publish small films on the internet, also easy to view with windows media player, for example?
    thanx for suggestions,
    gergely

    Ah - if it is cropped (vertical black lines either side) in the imovie screen - you may be dealing with non-widescreen files in the first place.....
    My widescreen films play in qt in widescreen
    try creating a new iM project in normal format - then dragging your clips across - maybe they will fit then....
    there is a shortcut to reimporting (hence not duplicating LARGE files):
    right click on the im project - select 'show package contents'
    your clips are in the 'media' file, stored as large DV files
    (edited ones as well as a copy of the originals)
    you can drag these to the media filder in the new project.
    Now, when you open the new project - it will tell you there are files in the trash, open the trash and drag the files back into the new clips pane.
    (obviously the old project will now be missing its big files)

  • Question about timeline navigation and the display list-

    I’ve got a movieclip called “rotatorProxy” that spans the entire timeline. I’ve got nav buttons that jump to various frames on that timeline. I need to get the display depth of rotatorProxy each time the nav buttons move the playhead. The AS3 code is easy enough:
    var zIndex:int = this.getChildIndex(getChildByName("rotatorProxy")) ;
    my problem is where to put it. If I put this code in any script that executes in the target frame, it works, but only if I hit the nav buttons slowly. If I bang on a single nav button rapidly, getChildByName("rotatorProxy”) can return null. I don’t know much about how the display list works but I assume the display list is rebuilt after every jump and the frame scripts are executing asynchronously, so it’s possible my getChildByName call is  executed before the display list is complete. Is there an event or some other handle that would allow me to call my code before the frame is rendered but after the display list is complete?

    Wow, thanks for the fast response...
    “if rotatorProxy exists in all frames, it should never return null.”
    That’s what I thought, but not what I’m seeing, rapidly jumping around on the timeline seems to confuse the player and it temporarily looses track of rotatorProxy.
    You can sort of see it in action here: http://www.appliedcd.com/newACT/act.html
    The zIndex is used to establish the depth of the rotating screens which have been added to the display list via AS. If you bang on the nav buttons quickly you’ll see the stacking order screw up, if you had been in the development environment you’d see the null error thrown.
    I’ll see if I can use the render event to sort this out. I know testing in the frame after the jump will work, but it’s cleaner if I can establish the proper stacking order before the first jump frame is rendered.

  • Question about the Microsoft's Wireless Display Adapter (WDA)

    Only one wireless display can be managed via Intel WiDi at a time.

    Hello guys, so my boss got a couple of these WDAs for the conference and training rooms to connect laptops to the TVs and projectors via wireless instead of cables, they work really nice and everything but he also asked me to look into connecting a single computer to two of these adapters at the same time (so sort of using two projectors as dual screen with one laptop for example), anybody has any idea about this? Been doing a little research here on my own but no answers so far, was wondering if anybody can shed some light here.
    But as far as i know, it's not possible, you will need to disconnect from the one you are currently connected to, then you can connect to the other dongle and vice-versa.
    let me know what you guys think.
    This topic first appeared in the Spiceworks Community

  • Question about string manipulation

    Hello, I am practicing with Java and trying to learn it, and have a quick question. I am trying to get the count on a string of numbers for after a decimal point. the numbers are generated as the result of a math, so I can't use index, since the location of the decimal changes based on the number imputed. I want to figure this out on my own, but have hit a wall here, i've spent the past few hours trying every string command I can think of, and haven't figured it out yet, anyone mind pointing me in the right direction for which string to use? Thanks in advance for any help you can provide!

    Is this what you want?
    public class Fallen{
      public static void main(String[] args){
        String number = "123.45678";
        String frac = number.substring(number.indexOf('.') + 1);
        System.out.println(frac + " length=" + frac.length());
        frac = number.replaceFirst("^.+\\.", "");
        System.out.println(frac + " length=" + frac.length());
    }

  • Question about string in xdoxslt

    Hi,
    When using xdoxslt i want to set a variable to store many fields which means the variable is a concat of the fields and it seems that the '||' is not allowed in xdoxslt.
    I find a function append_to() and uses it as below
    <?xdoxslt:set_variable($_XDOCTX,'PeopleCnt',xdoxslt:append_to($_XDOCTX,xdoxslt:get_variable($_XDOCTX,'PeopleCnt'),'sdfs'))?>
    and the output of PeopleCnt is still the original value.
    Is there anything wrong i have taken for this function or is there anyting else i can do?
    Thanks!

    This'll work, too.  I'm afraid of casting types...
    Jm
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
    Attachments:
    hex.png ‏2 KB
    hex.vi ‏7 KB

  • Easy question about String

    Hi!
    I have a string in a variable. how can I check if the String is composed just by numbers?
    thank you very much!

    Use the following method from Integer API
    parseInt
    public static int parseInt(String s)
                        throws NumberFormatExceptionParses the string argument as a signed decimal integer. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' ('\u002d') to indicate a negative value. The resulting integer value is returned, exactly as if the argument and the radix 10 were given as arguments to the parseInt(java.lang.String, int) method.If it throws NumberFormatException its alphanumeric else its numeric. You would however have to remove any spaces or commas etc. since they are not mumeric either

  • A question about String.hashCode()

    Why the implementation of hashCode() for String class using 31 as a base?

    Why the implementation of hashCode() for String class
    using 31 as a base?I think it's a magic number. It has been found to produce a reasonably even distribution over the int range.

  • A question about string.trim()

    I got a fragment of code as follows:
    String s = "abcd ";
    boolean a = (s.trim()=="abcd");
    boolean b = (s =="abcd ");
    Why a is false, b is true?

    The reason why the below code has true assigned to be is quite easy to explain:
    String s = "abcd";
    String y = "abcd";
    boolean b = (s == y);
    ...The String class has a "Pool" of strings. When you use String literals; the compiler automatically checks if it is in the String pool already and if it exists; a reference to that String is returned; if not a new entry in the pool is added and then you get a reference to that. This is only true for Stirng literals and String created using the intern() method.
    If you compile this code you will see that the strings are not equal:
    public static void main(String args[])
      String s = "abcd";
      String y = args[0];
      boolean b = (s == y);
      System.out.println(b);
    }This is because the "abcd" is in the String pool when your program starts; but because the value "abcd" passed in (is not created in the pool automaticlaly). Therefor they are two different String objects.
    This code block shows that you can add Strings to the pool. The intern() method checks to see if the String is in the pool already and if it is it will return you a reference to it; if not it will create one and then return it.
    public static void main(String args[])
      String s = "abcd ";
      String y = args[0].intern();
      boolean b = (s == y);
      System.out.println(b);
    }- Chris

  • Question about String initialization~~~

    String a = "sss";
    String b = "sss";
    the result of a==b is true .
    String a = new String("sss");
    String b = new String("sss");
    however , the result of a==b is false .
    why? the operator "==" compares WHAT of two object ??
    thanks , ;[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    == compare the reference of the object
    String s1 = new String("sss") creates a new String object at location xxxxxx, while
    String s2 = new String("sss") creates a new String object at location yyyyy.
    therefor xxxxxxx != yyyyyyyy
    by location..the memory address
    String s3 = "sss"; // java create a new String object "sss" at location zzzzzzzz and assign the reference to s3
    String s4 = "sss"; // java assign the reference (location zzzzzzzz) to s4
    so s3 == s4....
    noticed only one String object is created...s3 and s4 holds the reference to the 1st String created..though it is not clearly shown in th ecode...it actually look something like this
    String temp = new String("sss");
    String s3 = temp;
    String s4 = temp;

  • Question about string array?

    Hello,
    When passing Stting arrays to a function, is there anyto test if the array is emply?
    void testFucntion(String[] test){
    }

    Or test the array is null.
    if (test == null || test.length == 0)

  • Question about Pagination and Page Number Display

    I am trying to figure out a way to display just part of the
    pages if there are 50 or so pages. For examples if the user is on
    page 20 I would like to the numbers to display like this:
    1 ... 18 19
    20 21 22 ... 50
    I could do this through JavaScript I think, but I was
    wondering if the library itself could do something like this.
    Or if you already have something like this, send me the link
    to your site. :)
    www.kayak.com has a good example of this as well.
    Thanks.
    Robert

    Hello Robert,
    You can change the spry:if condition that may look like this:
    spry:if="{ds_CurrentRowNumber} != {ds_RowNumber} &&
    {ds_CurrentRowNumber} + 5 > {ds_RowNumber} &&
    {ds_CurrentRowNumber} - 5 < {ds_RowNumber}"
    Regards,
    Cristian

  • Another question about string!

    Hi,
    I want to return a function as true if all the characters in that string are hexDigit. false otherwise.
    & also another class should return as true if all the charaters are Digit. false otherwise i was using
    public boolean isDigit(String str)
    for (int i=0; I<str.length(); i++)
    if (str.charAt(i).isDigit)
    return true
    return false
    what's wrong with this code? what shall I use instead of this? can anyone Help please?

    The way you've written it, you'll be returning true as soon as the first digit in the string is found:
    // on first loop will check first char in string.
    if(str.charAt(i)isDigit)
    // first char in string is a digit so method returns true
    return true;
    [\code]
    You could change it so that you will return false when non-numerical character is found. If none is found you will fall out the loop and return true.if(!str.charAt(i).isDigit)
    return false;
    return true;
    [\code]
    Don't know if there's a method for checking hexDigit. If not use something like:
    if (str.charAt(x).isDigit || str.charAt(x) >='A' && str.charAt(x) <='F');
    [\code]

Maybe you are looking for

  • Issue in COPA Report Creation

    Dear All, I ave an issue in creation of COPA repor in KE30 We have created all P&L item as cost element except 1.Change in WIP for WIP calculation in Product Costing 2. Price Difference (OBYC- PRD) Variance will be calculated from settlement profile

  • Creation of custom infotype

    Hi all, I have a requirement wherein i need to create a infotype. In this infotype if the Anzhl value of absence quota type  is reduced the relavent quota types which are linked to it should also get reduced. Actually when a leave is approved, the qu

  • My ipod touch just stop working the screen is blue I cannot re-set it but the time is correct and it keeps up-dating

    My IPOD Touch just stop working - I was listening to music and it stop.  I cannot power it down or re-start it.  The time is correct and that is I can see at the top of the screen of the IPOD along with the battery info

  • Importing Photos From iPhone to iPhoto - Lost Photos

    Just wanted to mention that I lost about 10 pictures during an import to iPhoto. When I plugged in the iPhone, iPhoto popped up, as normal. I chose "Select all" and when it was done, I chose "Delete files" from phone. Then the progress bar got stuck

  • Forwarding login screen over SSH

    Hi, I am trying to forward my Solaris login screen to my PC running an X server. I want to forward the login screen that says "Welcome to <hostname> Solaris Please enter your user name" How do I go about this? What is the file in Soalris that boots t