Description
Inserts a named input field at the insertion point in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.InputFieldInsert ( inputfieldname )
| 
                                            
                               Argument  | 
                           
                                            
                               Description  | 
                        
|---|---|
| 
                                            
                               rtename  | 
                           
                                            
                               The name of the RichTextEdit control in which you want to insert an input field  | 
                        
| 
                                            
                               inputfieldname  | 
                           
                                            
                               A string whose value is the name of input field to be inserted. The name does not have to be unique  | 
                        
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If inputfieldname is null, InputFieldInsert returns null.
Usage
There can be several input fields with the same name. Fields of a given name all have the same data value. When you call InputFieldChangeData for a named input field, all fields with that name are changed.
Examples
If there is a selection, InputFieldInsert replaces the selection with the field.
rte_1.selecttext(1,2,1,5)
rte_1.inputfieldinsert("lastname")See also


