

Set File_Field_Current_Value of hoDD Field Customer.Name to sName this uses a Field parameter with a File_field message. If you mix these, errors will occur which will be hard to trace. Whichever method you use, you must make sure that you always only use the Field keyword with Field properties and that you only use the File_Field keyword with File_field properties. You are more likely to use the File_field keyword when you are programming outside of a Data Dictionary class or object. Also, you can use this method if you simply don’t want to worry about the difference between File and File_Field and you would prefer to use a single syntax that works in all situations. Why use the File_Field method? Use the File_Field keyword syntax if you might be sending the DDO message to a DDO that does not own the field. Note that all of the properties within a Data Dictionary class use this syntax.

Pagesafe versus filesafe rapidweaver code#
When writing code within a Data Dictionary class or object you can usually use the Field keyword method. Also, this method is slightly more efficient than the File_Field method, although the difference in efficiency is probably imperceptible. Why use the Field method? Use the Field keyword syntax if you are sure you are sending the message to the correct DDO and you want to type a little less code. The File_Field keyword converts its following File.field parameter into two parameters: a file number and a field number. In the above example, you could send the message to the OrderHea DDO and that DDO would properly redirect the message to the Customer DDO. If the file number is not the same as the DDO’s main file, the DDO will search the DDO structure for a DDO that owns this table and redirect the message to that DDO. When you use the File_Field variant of this message, the DDO that handles this message is passed both a file number and a field number. The Field keyword converts its following File.field parameter to a single field value – the file number is assumed to be the table of the DDO receiving the message. If it is not, no error will result, but the wrong field will be updated.

In the above example, the DDO receiving the message must be the Customer DDO. When you use the Field variant of this message the DDO that receives the message must be the DDO that owns the file-number passed after the field parameter. Their usage depends on which DDO is receiving the message. These messages perform the same function. Set Field_Current_Value of hoDD Field Customer.Name to sName Set File_Field_Current_Value of hoDD File_Field Customer.Name to sName For example, you could set a DDO’s Field value with one of these two lines: Most DDO field properties have two types of messages, a Field property and a File_Field property. File versus File_Field File versus File_Field
