|
pfc_propertysyntax
|
|
Full name
|
pfc_u_tabpg_dwproperty_srvrowselection.pfc_propertysyntax
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event pfc_propertysyntax()
|
Name
|
Datatype
|
lb_desired
|
boolean
|
li_cnt
|
integer
|
li_excludecount
|
integer
|
li_index
|
integer
|
li_rc
|
integer
|
li_styledesired
|
integer
|
li_upper
|
integer
|
lnv_conversion
|
n_cst_conversion
|
ls_exclude
|
string
|
ls_excludecols
|
string[]
|
ls_syntax
|
string
|
event pfc_propertysyntax;call super::pfc_propertysyntax;//////////////////////////////////////////////////////////////////////////////
//
// Function: pfc_propertysyntax
//
// Access: Public
//
// Arguments: None
//
// Returns: String
// The syntax required to create the currently selections.
// '!' in error
//
// Description:
// Create the required syntax to match the current selections.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.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_upper
integer li_cnt
integer li_rc
integer li_styledesired
integer li_index
integer li_excludecount=0
string ls_excludecols[]
string ls_exclude
string ls_syntax
boolean lb_desired
n_cst_conversion lnv_conversion
// Validate references.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
Return '!'
End If
If IsNull(idw_requestor.inv_rowselect) or Not IsValid(idw_requestor.inv_rowselect) Then
Return '!'
End If
// -- Start the service. --
ls_syntax += 'This.of_SetRowSelect(True)~r~n'
// -- Style. --
li_styledesired = ii_style - 1
Choose Case li_styledesired
Case idw_requestor.inv_rowselect.SINGLE
ls_syntax += '~r~nThis.inv_rowselect.of_SetStyle(inv_rowselect.SINGLE)'
Case idw_requestor.inv_rowselect.MULTIPLE
ls_syntax += '~r~nThis.inv_rowselect.of_SetStyle(inv_rowselect.MULTIPLE)'
Case idw_requestor.inv_rowselect.EXTENDED
ls_syntax += '~r~nThis.inv_rowselect.of_SetStyle(inv_rowselect.EXTENDED)'
Case Else
ls_syntax += '~r~nThis.inv_rowselect.of_SetStyle('+String(li_styledesired)+')'
End Choose
// -- Keyboard. --
lb_desired = cbx_keyboard.Checked
ls_syntax += '~r~nThis.inv_rowselect.of_SetKeyBoard('+lnv_conversion.of_String(lb_desired)+')'
Return ls_syntax
end event