Convert an Integer variable to a tring

Hi everyone,
This Shake script below is part of a much bigger one that loads multiple SfileIns. I need to convert the integer data into a string to make it work. How can I do that ? Thanks in advance for your help.
string path = "/data/job/sequence";
string path2 = "[email protected]";
int num = 1;
string final = pathnumpath2;
SFileIn(final,
"Auto", 0, 0, "v1.1", "3", "");

I think you might want to try the -curve option, which is defined on page 1023 of the manual.
There is an example of its use with string substitution on page 1029.
(Note how the printf-type function syntax--e.g. %d--is used to convert integers into strings.
Hope that helps!

Similar Messages

  • Assign hexadecimal value to an Integer variable preceding with zero

    hi
    i need to pass an hexadecimal value, preceding with zero (0).
    like 0775
    the above hexadecimal value should be assigned to an integer variable. While i am trying to assign it, the output could be truncate the preceding zero value. Is it possible to do my requirement without truncating the preceding zero.?
    Edited by: sasi on Jul 23, 2012 7:09 PM

    I agree on that, this can not be carried out the way you explained.
    Either you store the hexadecimal value as a string, and convert it before arithmetic operations:
    int number = Integer.parseInt("0775", 16);
    Or you store it as an integer (no leading zero) and convert it to string as you display it:
    int number = 0x0775;
    System.out.printf("%1$04x", number);

  • How to convert a "text variable" to String with plugin

    Hello,
    I am currently developing a InDesign (CS5) plugin, where I need to manipulate text variable.
    From the plugin I want to convert the "text variable" to string (in principle I should use the method "VariableToString (..)" of "ITextVariable")"
    My problem is, how to find the text varial from its name (I think I should use the method "FindLocationsUsed(..)" of "ITextVariableSuite") and then convert it to String
    I don't know how to use interfaces ITextVariable and ITextVariableSuite
    Plugin implemented in C++ language
    thank you

         InputStreamReader in=new InputStreamReader(fis);
          StringWriter out=new StringWriter();
          char[] buffer=new char[8192];
          int sizeRead;
          while ( ( sizeRead=in.read(buffer, 0, 8192) ) != -1 )
            out.write(buffer, 0, sizeRead);
         String content=out.toString();

  • How to convert an int variable into String type

    hi everybody
    i want to know how to convert an interger variable into string variable
    i have to implement a code which goes like this
    Chioce ch;
    for(int i=0;i<32;i++)
    // here i need a code to convert the int variable i into a string variable
    ch.add(String variable);
    how do i convert that int variable i into a String type variable??
    can anyone help me?

    Different methods:
    int a;
    string s=a+"";or
    String.valueOf(int) is the better option because Int.toString() generated an intermediate object to get the endresult
    Ema

  • Convert an integer value that was created with the Excel DATEVALUE formula to a valid date?

    Hello everyone,
    How can I convert an integer value that was created with the Excel DATEVALUE formula to a valid date in SSIS?
    Is this even possible?
    For example:
    =DATEVALUE("8/22/2008") will format the cell to display 39682.
    Reading the column as a string to get the int value (39682) - how can I turn this into a valid date using SSIS and then importing the real date to sql server?
    Thank you!

    You can use Script component for this and convert your integer values to Date. An example here is following:
    CultureInfo provider = CultureInfo.InvariantCulture;
    string dateString = "08082010";
    string format = "MMddyyyy";
    DateTime result = DateTime.ParseExact(dateString, format, provider);
    Source: http://stackoverflow.com/questions/2441405/converting-8-digit-number-to-datetime-type
    Vikash Kumar Singh || www.singhvikash.in

  • How to convert an Integer to int

    Integer y = new Integer(1);
    int x = ????(y);
    What is the missing command to do the above conversion ?
    I've tried casting etc.
    It's mid nite and I'm still at work!
    Appreciate all help. Thanks!

    Integer is an Object. int is a primitive base type. to convert an Integer Object into an int:
    //let's say you read a line from a file, and the line is this
    5
    //normally, since files contain characters, you would call a method that reads in String Objects
    //so the 5 is actually a String, which you need to convert to an int to use for math, calculations,
    //expressions, etc.
    String blah = Keyboard.readLine();
    int x = Integer.parseInt(blah);
    // now x equals the int 5.
    hope this helps.

  • How to convert form Integer to Object

    How do I a convert from Integer to Object?

    ZIP codes are not integers because one does no
    arithmetic with them.Sure they do. Look at this zip code:
    90210-0001
    Looks like subtract 1 from 90210 to me. <joking/>Well US zip codes yes but Canadian zip codes are
    alpha numericbase 36 you mean.

  • How to convert nagative integer to positive integer.

    int i= (int)System.currentTimeMillis();
    System.out.println(i);
    The result is nagative
    such as;
    -585450145
    How to convert nagative integer to positive integer.

    Isn't it enough to multiply the integer with -1?!?
    Or did � understand something wrong?
    slaps head
    Yes, but an int is only 32 bits wide; a long is 64
    bits wide.
    The fact that the int is negative isn't "real" - it's
    because they cast it to the wrong type. System time
    in millis is returned as a long, and that's what it
    should be cast to.
    %Doh, I'll get me coat.

  • Convertion to integer from array and logical mask

    hi all.
    please look at my VI.
    1)i want to convert this array to 4 display. each displaywill show one element(=1 row, in this case) from the array. 
        how i do it ?
    2) i need to make logical mask  to those numbers. how i convert the integer number to binary and make this logical mask ?
    with best regards
    pro111
    Message Edited by pro111 on 12-02-2006 05:41 PM
    Attachments:
    Untitled 2.vi ‏6 KB

    Hi pro,
    I did not follow you and came up with another example while Christian was doing his.
    This is my guess at what I thought you were asking.
    Ben
    PS Christian, I am not trying to side step your example. I figured if I drew it up I should post.
    PPS talk about a post collision!
    Message Edited by Ben on 12-03-2006 12:32 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    ConvetI32.JPG ‏76 KB

  • Please help with integer variable matching frame numbers

    hi :-) , could someone please hepl a newbie ?
    I am trying to write a short AS3 script in CS4 that allows me to step backwards and forwards  through an animation.
    I have a stop button a play button , rewind button and a forward button.
    the buttons work ok apart from when I hit the rewind button sometimes it jumps to the start of the timeline rather than just step back a frame at a time.
    when I use the stop button and the timeline stops where it is, the rewind button steps back as required. but, if the rewind button is clicked first it jumps to the start of the timeline, I know the theory as to why I cant get this to work.  I need to know how to increment an integer variable (counter) to increment as the animation playes. i.e. the counter variable to match the frame number.  below is the code I have, could someone please tell me how to match an integer variable to the current frame and tell me where to insert the line of code on the listing. I have added a dummy line or psuedo line of code to show what I am trying to do, but the syntax is wrong .
    var counter = 1;
    gotoAndStop(counter);
    function setupevents()
        buttonplay.addEventListener(MouseEvent.CLICK, playbutton);
        buttonstop.addEventListener(MouseEvent.CLICK, stopbutton);
        buttonrewind.addEventListener(MouseEvent.CLICK, rewindbutton);
        buttonforward.addEventListener(MouseEvent.CLICK, forwardbutton);
    setupevents();
    //this is the dummy or psuedo line of code i mentioned in the question above....
    counter = frame;
    //function to play the movie
    function playbutton(event:MouseEvent)
        play();
    //function to stop the movie using the stop button
    function stopbutton(event:MouseEvent)
        stop();
    //function to step backwards through movie using the rewind button
    function rewindbutton(event:MouseEvent)
        if(counter > 1)
            counter = counter - 1
        gotoAndStop(counter);
    //function to step forward through movie using the forward button. I have used the value of 60 as this is the amount of frames in the timeline
    //I dont know if this is correct way to do things or not
    function forwardbutton(event:MouseEvent)
        if(counter < 60)
            counter = counter + 1
        gotoAndStop(counter);
    I know the code is rough and basic but any help would be greatly appreciated, I have tried to attach the .fla file for anyone who needs more info on this.  But this webpage returned an error "The content type of this attachment is not allowed."
    Auldy66

    var counter = 1;
    gotoAndStop(counter);
    function setupevents()
        buttonplay.addEventListener(MouseEvent.CLICK, playbutton);
        buttonstop.addEventListener(MouseEvent.CLICK, stopbutton);
        buttonrewind.addEventListener(MouseEvent.CLICK, rewindbutton);
        buttonforward.addEventListener(MouseEvent.CLICK, forwardbutton);
    setupevents();
    //this is the dummy or psuedo line of code i mentioned in the question above....
    counter = frame;
    //function to play the movie
    function playbutton(event:MouseEvent)
        play();
    //function to stop the movie using the stop button
    function stopbutton(event:MouseEvent)
        stop();
    //function to step backwards through movie using the rewind button
    function rewindbutton(event:MouseEvent)
    prevFrame();
    function forwardbutton(event:MouseEvent)
    nextFrame();

  • Unable to convert into integer

    Hi All,
    We are extracting data for BWstat but today our Process got failed, Can any help me out with issue ..
    From Eventcount field to Eventcount IOB .
    Unable to convert into integer
    Thanks,
    Stanzal

    Hi,
    1) Is this same data type for source and target fields ? try to change the source data and re load
    2) As you mentioned is that Keyfigure ? if so make sure that length of the data would not cross the limit .
    Regards,
    Satya

  • How to convert an Integer to byte[] without lose data?

    How to convert an Integer to byte[] without lose data?

    I use the following to convert any java Object to a byte array
    public static byte[] getBytes(Object obj) throws java.io.IOException
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            ObjectOutputStream oos = new ObjectOutputStream(bos);
            oos.writeObject(obj);
            oos.flush();
            oos.close();
            bos.close();
            byte [] data = bos.toByteArray();
            return data;
    }

  • How to convert an integer to a sting in an expression

    HI,
    I need the convert and integer to a sting in the following example
    In the post expression:
    Step.Result.ReportText = "This is channel No. " + Local.ChNo
    I get an error of unmatched type. (Local.ChNo is integer)
    CAn you show me how to convert the integer to string in this example?
    Thanks
    Rafi

    Hi Rafi,
    Step.Result.ReportText = "This is channel No. " + Str(Local.ChNo)
    or you can format the string Str(Local.ChNo, "%x")
    Check out the help within the function browser.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • To convert an integer into word

    How do I convert an integer into word in labview. That is for example my input is 100 and  I want "one hundred" as output. I am using Labview 2011.Please help me.............

    Quotient and remainder with an word-list and exponent with a exponent word-list.
    e.g. 123 = x
    log 123 = 2.1 ==> 2 rounded down = y
    While{
      quotient(x-10^y;10)=z
      Get wordlist(z)
      Get exponentlist(y)
      x=x-10^y
      y--
    Then it'll get a little messy with 11-20.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How use integer variable as object in query

    sir how use integer variable as object in query
    see my code
    Integer currentssgg = new Integer(tt.getValue().toString()); no error
    //yy.setValue(currentss); no error
    //yy.setValue(new Integer(tt.getValue().toString())); no eror
    getSessionBean1().getTripRowSet().setObject(1,currentssgg); giv error
    tripDataProvider.refresh();
    and how use string variable same as method
    please give me idea how use integer variable as object in query
    thank's
    aamir

    >> var mnu = 'menu1';
    this[mnu].onRollOver = function(){
    <<
    Close, but it needs to be like this:
    var mnu = 1;
    this["menu" + mnu].onRollOver = function(){
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

Maybe you are looking for

  • Error while running a KPI Watchlist in obiee 11g dashboard

    I am getting the following error while running a KPI Watchlist : *" Odbc driver returned an error (SQLExecDirectW) "* I added two KPI's (KPI 1 & KPI 2)into that Watchlist , one from the default "Sample Sales Lite" (sub 1) and another from sub 2 which

  • Airplay works fine in iTunes but not from the menu why?

    Hi Guys, I have read so many answers to the question about Airplay not working both here and the internet. Can someone give me the definative answer why I can Airplay from iTunes but not from the Macbook Pro itself i.e. no menu icon or setting to mir

  • ITS applications do not close sessions

    Hi all, we have ITS based version of ESS, as well as one BSP application, all integrated in EP 6.2. The problem is that applications do not close sessions, as it is pretty visible e.g. in transaction SM04. I checked the setting of ~disconnectOnClose=

  • Function Modules for Cycle Counting in Warehouse Management.

    Hi All, Can anyone provide me with a list of function modules related to Cycle Counting in Warehouse Management? Also, what is the procedure to find these in SE37? Many thanks in advance. avi

  • PCI video capturer........!!!!!S.O.S.!!!!!.........Please.

    Can be captured video of the connected disposotivo the entrance independently?. For example of a DVD player.... My Pci is Pinnacle Studio 500 PCI, and software is Studio 10 from Pinnacle too. THANKS.