Using the delimiter

Use the delimiter option to specify a character that will halt the copying operation when it is read. In other words, the copy operation will only copy any characters that occur prior to the delimiter. Use the line option in conjunction with the delimiter to restrict the copy operation to a particular line.

  1. Change the pushbutton and the relqated function as follows:
    pushbutton([TOOLBAR], "Copy", {"process":text_copy});
    function text_copy() {
    	copytext({"totext":"z_copyto", "fromtext":"z_copyfrom", "delimiter":","});
    }
  2. Place some text into the z_copyfrom textbox, ending in the specified delimiter character. In our example, we used a comma.
  3. Click the pushbutton to initiate the copy operation.

The screen now appears as shown below: