Results 1 to 4 of 4

Thread: Tranferring variables to a new thread

  1. #1
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Tranferring variables to a new thread

    When making a safe procedure, let's just say I have something like this:

    SCAR Code:
    program example;
    var
      i : string;

    procedure SomeProc(z : string);
    begin
      writeln(z);
    end;

    procedure NewThread(i : string);
    var
      V : TVariantArray;
    begin
      setarraylength(V, 1);

      ThreadSafeCall('SomeProc', V);
    end;

    begin
      i := 'This is a thread test';
      NewThread(i);
    end.

    how can I make it put the i as parameter for the procedure thats called in the safe thread? And no, don't just mean the text but the entire variable .

    It would save me a lot of trouble if this were possible.

    It's been a while... but I'm BACK!!!

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Yea I couldn't figure this out either, which is why I went to multiple scars with ISM.

  3. #3
    Join Date
    Oct 2006
    Location
    I'm a figment of your imagination
    Posts
    422
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No tranfering vars in SCAR???? Man, I just hope it's in the next SCAR.

    I think it's a bug inside SCAR, because when I try it with text only it works. Might go and pm that to freddy. Poor guy already has enough work to do .

    It's been a while... but I'm BACK!!!

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm not saying it doesn't exist in SCAR, I'm just saying I would like to know too.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Variables
    By Jackrawl in forum OSR Help
    Replies: 4
    Last Post: 12-04-2007, 04:30 PM
  2. Variables..
    By doritoz in forum OSR Help
    Replies: 19
    Last Post: 09-03-2007, 03:10 AM
  3. how to use variables in typebyte
    By zenma in forum OSR Help
    Replies: 8
    Last Post: 08-15-2007, 06:47 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
  •