File Length in NAV RTC XMLPort

shibilyshibily Member Posts: 89
edited 2012-08-15 in NAV Three Tier
Hi,
I am using an XMLport and i tried to import a flat file data into NAV tables.
I have a requirement to find the Length of the file which i am importing.
I wrote the following code

Global Variables :-
TextFile [ File]
FileLength [Integer]


TextFile.OPEN(currXMLport.FILENAME);
FileLength := TextFile.LEN;
TextFile.CLOSE;

I am getting the error "The Specified Path is Invalid"

How to solve this.

Thanks in advance.

Comments

Sign In or Register to comment.