Over this one until I'm bald (been bald for 30 years). Compile time error 415 "statement expects = sign", but with other's code it compiles fine.
If I change "PBFormsRichEdit()" to A& = PBFormsRichEdit() the error goes away but then I get error 461 "array not dimensioned." PBforms.Inc is included in main code.
PS: using pbwin9
Code:
FUNCTION ShowDIALOG5(BYVAL hParent AS DWORD) AS LONG LOCAL lRslt AS LONG LOCAL hDlg AS DWORD LOCAL hFont1 AS DWORD '========================= error 415 here ========================= PBFormsRichEdit() ' Load RichEdit '============================================================== DIALOG NEW hParent, "View Code", 101, 70, 391, 218, %WS_CHILD OR _ %WS_CLIPSIBLINGS OR %WS_CLIPCHILDREN OR %WS_VISIBLE OR %DS_CONTROL OR _ %DS_3DLOOK OR %DS_NOFAILCREATE OR %DS_SETFONT, %WS_EX_LEFT OR _ %WS_EX_LTRREADING OR %WS_EX_RIGHTSCROLLBAR, TO hDlg CONTROL ADD PBFormsRichEdit(), hDlg, %IDC_ViewCodeTxtbx, "View Code", 0, 0, 390, _ 215, %WS_CHILD OR %WS_VISIBLE OR %WS_TABSTOP OR %WS_HSCROLL OR _ %WS_VSCROLL OR %ES_LEFT OR %ES_MULTILINE OR %ES_AUTOHSCROLL OR _ %ES_AUTOVSCROLL OR %ES_WANTRETURN, %WS_EX_LEFT OR %WS_EX_LTRREADING OR _ %WS_EX_RIGHTSCROLLBAR hFont1 = PBFormsMakeFont("Courier New", 10, 400, %FALSE, %FALSE, %FALSE, _ %ANSI_CHARSET) CONTROL SEND hDlg, %IDC_ViewCodeTxtbx, %WM_SETFONT, hFont1, 0 DIALOG SHOW MODELESS hDlg, CALL ShowDIALOG5Proc TO lRslt DeleteObject hFont1 FUNCTION = lRslt END FUNCTION
PS: using pbwin9
Comment