Options

Select an attachmant

ntnt Member Posts: 160
Hi all,

anybody can tell me, how i turn a textbox into a textbox with the button to select a file in winddows directories, and keep the path to the file.

Thanks.

Comments

  • Options
    DenSterDenSter Member Posts: 8,304
    Depending on which button you want, it will appear if you write code in any of the OnDrilldown, OnLookup or OnAssistEdit events of the textbox. To browse for a file, you use codeunit 412 - Common Dialog Management. Set the SourceExpr property of the textbox to a textvariable and fill the variable with the return value of the codeunit's OpenFile function.
  • Options
    ntnt Member Posts: 160
    thanks.

    and the textvariable will stay with the path to the browsed file, right?
Sign In or Register to comment.