//====================================================================
// Event: wfc_n_cst_dwsrv.of_isunique()
//--------------------------------------------------------------------
// Desc: CHECK IF the passed Array is unique in the datawindow...
hello,i do as this:
1\create 2 tables ,sys_module,sys_point
and in the 2 tables,save the data just like the base menu
eg:
table1\sys_module:
row moudlename
-----------
1 file
-----------
2 edit
table2\sys_point:
row modulename...
in the datawindow's event itemchanged|rowfocuschanged,
datawindowchild ldwc_SCR
String ls_APP
IF dw_1.getchild('SCR',ldwc_SCR) = 1 THEN
ls_APP = dw_1.getitemstring(dw_1.getrow(),'APP')
IF ISNULL(ls_App) THEN ls_App = ''
IF Trim(ls_App) <> '' THEN
ls_Filter = ...//builder filter...
thanks
if a sheet is opened ,you can use window.bringtotop = true to active the sheet.
find the function mf_open_sheet(string name) in the object m_mdi_first_next,i added some test script:
w_mdi_first_next_sheet w_instance
window list[]
integer cnt,i
string temp
if mf_is_open(name) then // if...
hi,i May Find another way to check if en object is exists.
String ls_libraries[]
String ls_LibraryList
ls_LibraryList = GetLibraryList(),
of_parsetoarray(ls_LibraryList ',',ls_libraries[])//a custom function to parse a string to an array
ClassDefinition cd_windef
cd_windef =...
hi,
you are right,if opening the same sheet,the classname() returns same,i suggest you declaring an instance Variables to Flag diffent instance Sheet And Show in the Title,then you can nevigate one to another using the Window's Title,you can refer to the Sybase PowerBuilder Code Examples...
hi
em_1.text = '123412345612341'
//1?Declare
Long ll_StartPos = 1
String ls_OldChar, ls_NewChar, ls_Mask
//2?Get The EditMask's Mask And Replace "X" to "@"
ls_Mask = em_1.Mask
ls_OldChar = "X"
ls_NewChar = "@"
// Find the first occurrence of ls_OldChar.
ll_StartPos = Pos(ls_Mask...
hi,
you can build a statusbar at the bottom of the Frame LIKE Windows OS,when you open a sheet,register the window in the status bar,when the window is registered,"create" and show a button in the statusbar datawindow,and in the datawindow's buttonclicked event ,get current clicked window's...
oh , it's a popup window without titlebar.
if you are interesting about the source code,you can email to me(pauling_li@163.com),or contact me by icq(224-380-985)
hi,The Primary DW'S itemchanged event is useless?
or maybe you can do this with a user event using the "pbm_command".and write the script :
datawindowchild ldwc_child
GetChild("dddw style column name in the primary dw",ldwc_child)
IF hwndchild = Handle( ldwc_Child ) THEN
CHOOSE CASE...
hi,it's an actual messagebox created in PB.
i download the example's sourcecode from internet,the Author's name you can find on the screenshot,He is Rjh,not myself[thumbsup],but maybe we can discussing about this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.