|
of_InsertDocument
|
|
Full name
|
pfc_u_rte.of_InsertDocument
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_InsertDocument(ref string)
|
Name
|
Datatype
|
ls_filename
|
string
|
public function integer of_InsertDocument (ref string as_filename);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_InsertDocument
//
// Access: public
//
// Arguments:
// as_filename string that will hold filename user selected, also a default filename
//
// Returns: integer
// 1 = success
// 0 = User cancelled from FileOpen dialog
// -1 = error
//
// Description:
// This function prompts the user to choose a file to open, then
// it inserts the document into the RTE.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
string ls_filename
if GetFileOpenName ("Insert File", as_filename, ls_filename, "", &
"Rich Text Format (RTF),*.rtf,Text Document,*.txt,All Files,*.*") = 1 then
return InsertDocument (as_filename, false)
else
return 0
end if
end function
Name
|
Owner
|
richtextedit.insertdocument |
richtextedit
|
systemfunctions.getfileopenname |
systemfunctions
|