Setting the x / y position of a window
Publicado: Sab Ene 29, 2005 12:14 am
Hola a todos,
while setting the x / y position of a window I get the error message:
> ----------------------message------------------------------- -
TAPPLICATION:ERROR(179)
Fehler BASE/1004 Message not found: TAPPLICATION:NCLIENTWIDTH
Argumente: ()
>----------------------end of message-------------------------
The piece of code looks like this:
> ----------------------code---------------------------------- -
METHOD FormCreate( oSender, pcStartWith ) CLASS formMain
local cBearbNr := "", cIniFile := "", cStartWith := ""
BSetDebug(DEBUG)
if PCount() > 1
cStartWith := pcStartWith
endif
Self:nTop := 0
Self:nLeft := 0
Self:nHeight := Screen:nHeight
begin sequence
if !BAppInit()
MsgAlert("Init failed", "Cancel")
slDoAsk := FALSE
oSender:Close()
break
endif
if !OpenDatei(TRUE) // open persistant database files
MsgAlert("Could not open files", "Cancel")
slDoAsk := FALSE
oSender:Close()
break
endif
if !BLLogin(Self) // Login dialog
slDoAsk := FALSE
oSender:Close()
break
endif
if Empty(cStartWith)
cIniFile := BSetConfFile()
cBearbNr := ProfileString(cIniFile, "Default", "User", "")
cStartWith := ProfileString(cIniFile,
AllTrim(Upper(cBearbNr)),
"StartWith", "")
endif
do case
case cStartWith == "ADR"
AP100()
case cStartWith == "PRO"
PP100()
otherwise
if MsgYesNo("Applet to start with not valid: " + cStartWith +;
"Start with address applet?")
AP100()
endif
endcase
end
RETURN Nil
>----------------------end of code----------------------------
while setting the x / y position of a window I get the error message:
> ----------------------message------------------------------- -
TAPPLICATION:ERROR(179)
Fehler BASE/1004 Message not found: TAPPLICATION:NCLIENTWIDTH
Argumente: ()
>----------------------end of message-------------------------
The piece of code looks like this:
> ----------------------code---------------------------------- -
METHOD FormCreate( oSender, pcStartWith ) CLASS formMain
local cBearbNr := "", cIniFile := "", cStartWith := ""
BSetDebug(DEBUG)
if PCount() > 1
cStartWith := pcStartWith
endif
Self:nTop := 0
Self:nLeft := 0
Self:nHeight := Screen:nHeight
begin sequence
if !BAppInit()
MsgAlert("Init failed", "Cancel")
slDoAsk := FALSE
oSender:Close()
break
endif
if !OpenDatei(TRUE) // open persistant database files
MsgAlert("Could not open files", "Cancel")
slDoAsk := FALSE
oSender:Close()
break
endif
if !BLLogin(Self) // Login dialog
slDoAsk := FALSE
oSender:Close()
break
endif
if Empty(cStartWith)
cIniFile := BSetConfFile()
cBearbNr := ProfileString(cIniFile, "Default", "User", "")
cStartWith := ProfileString(cIniFile,
AllTrim(Upper(cBearbNr)),
"StartWith", "")
endif
do case
case cStartWith == "ADR"
AP100()
case cStartWith == "PRO"
PP100()
otherwise
if MsgYesNo("Applet to start with not valid: " + cStartWith +;
"Start with address applet?")
AP100()
endif
endcase
end
RETURN Nil
>----------------------end of code----------------------------