montypython1
Technical User
Greetings,
What is the best way to import a text file into a form?
FILETOSTR() works, but it does not allow the use of "thisform." properties. I receive the error "THISFORM can only be used within a method".
Isn't there a way to import the text file so that when the user clicks the button, it thinks it is running within the form method? This would allow me to use form properties, rather than having to pass parameters.
This is important to me because I need a flexible way to allow the same button on a specific form to do different things for different customers (ex: the same button would run program "A" for one user, then run program "B" for another user, then run program "C" for another user, and so on). Then, if a customer needs a custom report, it would be a simple matter of distributing a unique text file for each customer.
Any assistance is greatly appreciated.
Thanks,
Dave Higgins
What is the best way to import a text file into a form?
FILETOSTR() works, but it does not allow the use of "thisform." properties. I receive the error "THISFORM can only be used within a method".
Isn't there a way to import the text file so that when the user clicks the button, it thinks it is running within the form method? This would allow me to use form properties, rather than having to pass parameters.
This is important to me because I need a flexible way to allow the same button on a specific form to do different things for different customers (ex: the same button would run program "A" for one user, then run program "B" for another user, then run program "C" for another user, and so on). Then, if a customer needs a custom report, it would be a simple matter of distributing a unique text file for each customer.
Any assistance is greatly appreciated.
Thanks,
Dave Higgins