Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

FileExists – PB Docs 126 – PowerBuilder Library

FileExists – PB Docs 126

FileExists event

Description

Occurs when a file is saved in the RichTextEdit control and
the file already exists.

Event ID

Event ID

Objects

pbm_renfileexists

RichTextEdit

Parameters

Argument

Description

filename

The name of the file

Return Values

Long. Return code choices (specified
in a RETURN statement):

  • 0 Continue
    processing

  • 1 Saving of document is canceled

Usage

The SaveDocument function can trigger the
FileExists event.

Examples

This script for FileExists checks a flag to see if
the user is performing a save (which will automatically overwrite
the opened file) or wants to rename the file using Save As. For
the Save As case, the script asks the user to confirm overwriting
the file:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x