08-21-2020 10:27 AM
Hello,
I'm working on a test setup where the user enters data about the UUT they're about to test. Stuff like model number, serial number, tester name, and whether the test is an initial test or final test. I'd like all this data to automatically be used to create the output file name.
Something like: S16-10_SN1234_Mike_Initial Test
What's the easiest way to do this?
Thanks,
Jay
Solved! Go to Solution.
08-21-2020 10:39 AM
Use Format Into String to build a file name with all of your parameters. You can then use Build Path to add that file name to the destination folder path to create a full path for the file.
08-21-2020 10:40 AM
08-21-2020 10:43 AM
@crossrulz wrote:
Use Format Into String to build a file name with all of your parameters. You can then use Build Path to add that file name to the destination folder path to create a full path for the file.
So I've currently got the user's responses formatted into a string, but how do I add in underscores in the right places?
Thanks,
Jay
08-21-2020 10:45 AM - edited 08-21-2020 10:46 AM
Here's the actual code I use to generate a report file for you to use as an example. As far as adding underscores, just put them into your format string.