Cuec
asked on
Read the contents of a text file into form
I want to fill in a form with contents of a text document.The text document has a template consisting of the form field names. I want to search for keywords and then pull out the relevant information and insert them into the approperiate fields. I'll like to know what the best way of doing this is and specifically, how to read the contents of the textfile.
I have so far done:
@Command([EditGotoField];" Body");
FileName:=@Prompt([LOCALBR OWSE];"Sel ect the Text file";"Please select the Text document";"";"";3);
@Command( [EditInsertText];FileName; "1");
@Command( [EditInsertFileAttachment] ;FileName; "1")
but that dumps an attachment into the field.
....any ideas how to do this?
I have so far done:
@Command([EditGotoField];"
FileName:=@Prompt([LOCALBR
@Command( [EditInsertText];FileName;
@Command( [EditInsertFileAttachment]
but that dumps an attachment into the field.
....any ideas how to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.