difference between record data type and record ref data type

monir_asianmonir_asian Member Posts: 80
edited 2012-05-15 in NAV Three Tier
what is the difference between record data type and record ref data type and when we should use this?


I think record ref is better for function.

which one is better for which purpose?

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    A RecordRef object references a record in a table. Typically, you use a RecordRef object in functions that must apply to more than one table, not to a specific table. For example, you could use a RecordRef object in a function that loops through several tables or as a parameter of a function that is called for records of different tables.

    The RecordRef object can refer to any table in the database. Use the OPEN Function (RecordRef) to use the table number to select the table that you want to access, or use the GETTABLE Function (RecordRef) to use another record variable to select the table that you want to access.

    If one RecordRef variable is assigned to another RecordRef variable, then they both refer to the same table instance.
Sign In or Register to comment.