Results 1 to 4 of 4

Thread: Working Form Tutorial?

  1. #1
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default Working Form Tutorial?

    Hey There!

    I was wondering if anyone knock of a script that has a custom form or a working form tutorial?

    I looked through the SRLPlayerForm in srl lib but I think that is a bit too much for me to learn how to make a from just from reading that. I just needed a form to take a string, that's it.

    If anyone could help or just point me to the right direction that would be so greatly appreciated!
    Oh Hai Dar

  2. #2
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    I think Simba has some function that makes this easy for you. Might be called InputQuery iirc
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  3. #3
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    That's fantastic, I'll definitely look into that!

    In the mean time I've found this https://villavu.com/forum/showthread.php?t=112942 to be a great help.

    But this unfortunately brought up a new question... how do you convert Tmemo content to string array? I've googled it and most of the result I get does not work for simba.

    For example
    Simba Code:
    Var
      Memo: TMemo;

    /*Insert random stuff into this Memo*/

    Begin
      Writeln(Memo.Lines[0]);
    End.

    It crashes and gives out this error:
    Unknown declaration "Lines"...

    Does anyone know how to read the data from TMemo?
    Last edited by Main; 08-21-2018 at 09:11 PM.
    Oh Hai Dar

  4. #4
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Everything is prefixed with get/set with no array indexing.

    Simba Code:
    Memo.getLines().getStrings(0)
    Memo.getLines().getText()
    etc...

Thread Information

Users Browsing this Thread

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

Posting Permissions

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