|
doubleclicked
|
|
Full name
|
pfc_w_filterextended.dw_function.doubleclicked
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event doubleclicked()
|
Name
|
Datatype
|
li_position
|
integer
|
ll_pos
|
long
|
ll_pos2
|
long
|
ls_syntax
|
string
|
event doubleclicked;call super::doubleclicked;//////////////////////////////////////////////////////////////////////////////
//
// Event: doubleclicked
//
// Description:
// Pastes the clicked function syntax into the filter expression
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
integer li_position
long ll_pos
long ll_pos2
string ls_syntax
if row > 0 then
ls_syntax = this.object.syntax[row]
li_position = mle_filter.Position()
mle_filter.ReplaceText (ls_syntax)
// Select expression between parenthesis
if li_position > 0 then
ll_pos = Pos (mle_filter.text, "(", li_position)
if ll_pos > 0 then
ll_pos2 = Pos (mle_filter.text, ")", li_position)
if ll_pos2 > 0 then
mle_filter.SelectText (ll_pos + 1, ll_pos2 - ll_pos - 1)
end if
end if
end if
end if
end event
Name
|
Owner
|
multilineedit.position |
multilineedit
|
multilineedit.replacetext |
multilineedit
|
multilineedit.selecttext |
multilineedit
|
systemfunctions.pos |
systemfunctions
|
datawindow.doubleclicked |
datawindow
|