if we have a Dialog with a Title which has spaces at the beginning and at the end the program breaks without an error message.
Best regards,
Otto
- Code: Select all Expand view
- #include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
local oDlg, oBtn, oGet, cName := space(10)
DEFINE DIALOG oDlg FROM 5, 5 TO 15, 40 TITLE " A Dialog Box" + space(100)
@ 2, 2 GET oGet VAR cName SIZE 50, 12 OF oDlg
@ 4, 2 BUTTON oBtn PROMPT "&Aceptar" OF oDlg SIZE 40,12 ;
ACTION ( oBtn:oJump := oGet, oGet:SetFocus() )
@ 4,10 BUTTON "&Cancelar" OF oDlg SIZE 40,12 ;
ACTION oDlg:End()
ACTIVATE DIALOG oDlg
return nil