/ Forums / Advansys Formativ / Creating Solutions with Formativ / Wants to create a folder using variable (Edit1.Text)

  • Creator
    Topic
  • #4411
    jhillenb
    Participant

      Hello try to use create a folder. Foldername should be base GW Folder + Foldername whiach was stored in varable (edit1.Text). I try a lot of things but I dont find a solution. can somebody help me please…

      iSyntax = “FolderCreate(“”Firstname Lastname BasisordnerAktenschrank(Edit1.Text)””;””Folder description””;0)

      Thanks.
      Best Regards
      Jürgen

    • Author
      Replies
    • #8118
      Support 3
      Participant

        you can use the ThrowToken method which uses the native GroupWise Token Commander to execute a given token. The return value from the token is given in the ResultValue parameter. See the Formativ Language Guide for more information.

        Your code above string format not correct, “Edit1.Text” added as string where its value should be added. See the updated sample code below:

          
          iSyntax = "FolderCreate(""Firstname Lastname BasisordnerAktenschrank" & Form1.Edit1.Text & """;""Folder description"";0)"
        
          msgbox groupwise.throwtoken(iSyntax, ireturnVal)
        

        Regards,
        Advansys Support

      Viewing 1 replies (of 1 total)
      • You must be logged in to reply to this topic.