It looks like you're new here. Sign in or register to get started.
//Hardcode path to save output file. FilePath := 'C:\'; FDate := "G/L Entry".GETRANGEMIN("Posting Date"); FName := 'BanK+FORMAT(FDate,0,'<Month,2><Filler Character,0><Day,2><Filler Character,0><Year4>') +'.txt' ; FileName := FilePath + FName;
CurrDataport.FILENAME := FilePath + FName;
CurrDataport.FILENAME := 'C:\Filename.txt';
Hanen wrote: I put it on the postdataport item, but it didn't work Any suggestions?
Comments
I wouldn't actually call that hardcoding by the way. Hardcoding would be something like
Help
Hanen TALBI
2. In what trigger do you put your code? - I put code like that in trigger: Dataport - OnPreDataport() and it works.
3. Check your string "FName"value in debugger.
regards,
Depro
Any suggestions?
Hanen TALBI
http://www.BiloBeauty.com
http://www.autismspeaks.org
Hanen TALBI