Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3

Thread: string

  1. #1
    Join Date
    Oct 2007
    Posts
    44

    string

    Hi,

    it's possible make this

    for example
    in input 1 I have this:
    C:\Documents and Settings\Encript.mpg

    and in input 2 I have this:
    C:\Encript files

    In this case I need to insert Encript.mpg after C:\Encript files and add "\"

    on final it's show: C:\Encript files\Encript.mpg in input 3.

    that is to do with all extensions of files, I have been ace walking laps with it and see no solution to make this. If anyone could help, I appreciate that.


    regards,
    WebCyb

  2. #2
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Here's something that might work for you, or at least give you some ideas.

    Code:
    inp1 = Input.GetText("Input1");
    inp2 = Input.GetText("Input2");
    
    inpx = String.ReverseFind(inp1, "\\", false); --find the cutoff pos in inp1
    lendiff = String.Length(inp1) - inpx + 1; -- find the length of the cutoff 
    
    inp3 = ""..inp2 ..String.Mid(inp1,inpx,lendiff); -- build the new string
    Input.SetText("Input3", ""..inp3);
    hth

  3. #3
    Join Date
    Oct 2007
    Posts
    44
    Many thanks holtgrewe

    works fine

Similar Threads

  1. DLL call with multiple string parameters
    By supertodd85 in forum Setup Factory 7.0
    Replies: 1
    Last Post: 12-14-2007, 03:09 PM
  2. Jukebox Enhancements
    By Zylo in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 01-13-2007, 07:39 PM
  3. table to string
    By ZenLunatic in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 09-26-2006, 11:49 AM
  4. Replies: 19
    Last Post: 05-23-2006, 11:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts