Hi all!
I hit on an interesting "feature" of NAV:
Create a table 'MyTable' with an Integer field 'ID' as primary key, and a second field 'Comment' of type 'Text'.
Set the property 'AutoIncrement' to 'Yes'.
Fill the table adding texts to the second field.
You'll get an error "MyTable ID '6776' already exists."
Any idea?
Gerald
0
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RECORD.INIT does not initialize the primary key. You will have to have code:
ID:=0;
http://mibuso.com/blogs/davidmachanick/