dataport request form

How does one add a request form to a dataport without losing the ability to name the file? There is previous post about this, but it points to a page that is no longer available.

Create your own request form with a TextBox for the file name. The TextBox must have a Control ID of 1 and the AssitEdit property set to yes. You also need to create a text variable to hold the file name and set the source expression of the TextBox to this text variable. In the OnPreDataport trigger add the following line:

CurrDataport.FILENAME := FileNameVar; 

Search for “Common dialog box without COMDLG32.OCX” on NOLUG

Thanks for your help. That worked great.