EOF method and how to use it

shafeaa
Member Posts: 54
hi ever one
where can i find EOF method and how can i use it
thanks
where can i find EOF method and how can i use it
thanks
0
Comments
-
shafeaa wrote:hi ever one
where can i find EOF method and how can i use it
thanks
I asume you mean table.EOF. There is no such metod. You have to use NEXT metod, which returns the number of record skiped. So when is no more records it returns 0.
The same thing is with file. All metods/functions retuns the number od bytes/characters read.
regards
BostjanL0 -
hi bostjanlThere is no such metod. You have to use NEXT metod
ok but there is somthing like this in the development exam?????????
i try to write somthing like this//xfile is file variable xfile.EOF or //jnlline is record variable jnlline.EOF
but the this error riseyou have specified an unknown variable
eof
if i use Eof like thisif jnlline.EOF then
it is possible that the previous code give true or false (boolean)?????
and thanks0 -
shafeaa wrote:hi bostjanl
ok but how can i use it?????????
i try to write somthing like this//xfile is file variable xfile.EOF or //jnlline is record variable jnlline.EOF
but the this error riseyou have specified an unknown variable
eof
if i use Eof like thisif jnlline.EOF then [quote] it is possible that the previous code give true or false (boolean)????? and thanks[/quote]
THERE IS NO EOF METOD IN NAVISON!
For tables use NEXT
table.SETRANGE(...
table.FIND('-');
REPEAT
// do something with table
UNTIL tabel.NEXT = 0; // move to next until EOF
And check C/SIDE help for more details on NEXT
======================================
NEXT
Use this function to step through a specified number of records and retrieve a record.
Steps := Record.NEXT([Steps])
Steps
Data type: integer
This function returns the number of records inspected which meet the criteria of any filters and the current key. This value can be less than Steps, depending on the number of records in the table. If the table is empty, the system returns zero and does not change Record.
Record
Data type: record
The record from which the system should begin the search.
Steps
Data type: integer
Used to define the direction of the search and how many records to step over.
======================================
For files check help for READ
======================================
f.READ
Use this function to read from an ASCII or binary file.
[Read] := f.READ(Variable)
Read
Data type: integer
This optional return value tells you the number of bytes read.
f
Data type: file
Use this variable to refer to the file.
Variable
Data type: any
The destination variable.
======================================
0 -
wow, no need to shout !
:-$Now, let's see what we can see.
...
Everybody on-line.
...
Looking good!0 -
There is no such metod. You have to use NEXT metod
this is weird :!: :!: :!: :!:
there is somthing like this in the development exam?????????0 -
GoMaD wrote:wow, no need to shout !
:-$
I wasn't shouting,..
I wrote in my first post, there there is no EOF and that he should use NEXT.
But since he didn't get it, I just wrote it again. A bit louder
It wasn't ment to be so loud. :oops:
I have to get another cup of coffe. Those monday mornings are killing me :evil:
BostjanL0 -
point taken, monday mornings are a pain in the $ss
Have a nice one!Now, let's see what we can see.
...
Everybody on-line.
...
Looking good!0 -
shafeaa wrote:
There is no such metod. You have to use NEXT metod
this is weird :!: :!: :!: :!:
there is somthing like this in the development exam?????????
Hi!
Weird? [-X
This is BASIC of table/record and file access. ](*,)
As I remembe there is a question in programing and/or develompnet exam about this.
regards
bostjanl0 -
There is no such metod. You have to use NEXT metodI wrote in my first post, there there is no EOF and that he should use NEXT.
But since he didn't get it, I just wrote it again. A bit louder
i get it in the first time but u read my post before i edit it look againthis is weird
there is somthing like this in the development exam?????????I have to get another cup of coffe. Those monday mornings are killing me
me too couse i faill in the exam yasterday
and u know what
i get 69%
reQuired score 70%
this exam killing my
](*,) ](*,) ](*,) ](*,) ](*,) ](*,) ](*,)0 -
shafeaa wrote:
There is no such metod. You have to use NEXT metodI wrote in my first post, there there is no EOF and that he should use NEXT.
But since he didn't get it, I just wrote it again. A bit louder
i get it in the first time but u read my post before i edit it look againthis is weird
there is somthing like this in the development exam?????????I have to get another cup of coffe. Those monday mornings are killing me
me too couse i faill in the exam yasterday
and u know what
i get 69%
reQuired score 70%
this exam killing my
](*,) ](*,) ](*,) ](*,) ](*,) ](*,) ](*,)
i am sorry if i make u angry
thanks0 -
The main clue to getting away with Navision, is to let go of almost all the TransactSQL and VB syntaxes you know!
I know it's hard but it's the only way
:-kNow, let's see what we can see.
...
Everybody on-line.
...
Looking good!0 -
//xfile is file variable
xfile.EOF
It is true that it seems odd that Navision is not using EOF in relation to files. But if you are using a file-variable you can test for the position in any file by using a combination of file.len, file.pos and file.read, where file denominates a file-variable.
File.len will return the length of any givin file in bytes (integer). File.pos will give you the current position (integer) and file.read will return how many bytes read (also integer). So if you know how long the file is, then it should be possible to get a "sort of" EOF by comparing file.read with file.len.0 -
hi
i cant remember this Quastion literally but i think i can help u to write it
again.
in fact there is 2 quastion in the development Exam about EoF.
ok lets see :twisted:
//i think this is the secound Quastion about EoF
//also i cant remember the answers literallybut i think
//wecan do it
Q7)Xfile.EoF how can u represent it in another way
(chose to answers) :?: :?: :?:
1.xfile.pos
2.xfile.read
3.xfile.len
4.file.read(file.pos)= file.len
5.file.read= file.len
// i dont remember if thier another answers so if u know anther way to represent Xfile.EoF even if it is not in the previous answers ](*,) ](*,) ](*,)0 -
MRQ wrote:Q7)Xfile.EoF how can u represent it in another way
1.xfile.pos
2.xfile.read
3.xfile.len
4.file.read(file.pos)= file.len
5.file.read= file.len
Hi it is Answer 4
Example:WHILE f.POS < f.LEN DO BEGIN f.READ(Zeile); ... END;
POS is indicating the Position in the File
LEN is the File Size.
The While Statement above works as long, pos is smaller then len.
If there are Equal you are at "EOF".Yours
Stephan0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions