Beginner Output To Question

crjunk

Member
I'm not having much luck on finding out how to do this. I'm new to Progress and I'm still not very familiar with the syntax.

I'm writing data out to a text file. I want to give the text file a 4 digit random number, but I can't figure out how to pass this to the OUTPUT TO statement. This is what I've come up with so far:

ASSIGN tmpFileName = "C:\Temp\" + STRING(RANDOM(1000,9999)) + ".txt".

OUTPUT TO tmpFileName.

Thanks,
CR Junk
 

crjunk

Member
Thanks tekstylez! That did it. I had tried using the VALUE statement earlier, but it didn't seem to work. Maybe I had something wrong in my code. Oh well, it work now.

Thanks again!
CR Junk
 
Top