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

#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