Results 1 to 4 of 4
  1. #1

    Default Integer to string?

    Seems like a really simple question, but I haven't been able to find any way to convert an int to a string in unrealScript. Is there a function for it?
    Thanks.

  2. #2
    Palace Guard
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    3,940

    Default

    The quick and easy Java-cheating-like style:

    MyString = MyInt $ "";


    $ concatenates strings without inserting a space in between and "" is just an empty string.
    Our Loop, which art in source code, hallowed be thy keyword.
    Thy condition come, thy instruction be done, in RAM as it is in cache.
    Increment us this day our daily counter,
    and forgive us our typos, as we also have forgiven our compilers.
    And lead us not to the nullpointer but deliver us from bugs.
    For thine is the API, the GUI, and the CLI while(true).
    Semicolon;
    Please don't send me questions about how to do something in the UDK via PM. That is better discussed in the forums and we only have limited PM storage.

  3. #3

    Default

    Edit, nevermind, stupid question. Got it sorted, thanks for your help.
    Last edited by adam753; 04-26-2012 at 10:08 AM.

  4. #4
    Banned
    Join Date
    Feb 2011
    Location
    BXL/Paris
    Posts
    2,169

    Default

    IntString = string(YourInt);


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.