#200070 - 2010-09-27 02:10 PM
Re: it maps ok, it doesnt map ok.
[Re: baggies1]
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
|
The "?" is a shortcut for a CR/LF sequence, which is usually at the end of a line. Coders that are used to BASIC sometimes think of it as a PRINT statement, since "?" is a BASIC shortcut for PRINT. As such, it winds up at the beginning of the line.
Running Kix32 /f will flush the cache without needing a reboot, but the data is already cached for that sesssion. There are ways to manually flush the cache by deleting a registry key.
The SANITY UDF will scan your code and look for common errors in syntax, including mismatches of quotes, parens, and paired expressions like If/EndIf. Get the copy from my web site as it was updated recently and the copy here is over a year old.
A simple way to write a debug log is to use one of the message UDFs. I just posted fMsg() today. Define a global var called $MSG_LOG_ to point to the log file, then add $MsgTxt = 'this is a message... the error was' + @ERROR
fMsg($MsgTxt, , 0, 16) This will write the message only to the log file. You can even do something fancy:$MsgTxt = 'An error occurred while mapping drive D:'
$LogTxt = 'Drive D:, \\server\share, ' + @SERROR
$fMsg($MsgTxt, $LogTxt) which will write a short message to the screen and a more detailed message to the log.
Be sure to Del $Msg_Log_ after you define it, otherwise it will keep gathering data from each login session into a single file.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
|
Top
|
|
|
|
it maps ok, it doesnt map ok.
|
baggies1
|
2010-09-27 12:14 PM
|
Re: it maps ok, it doesnt map ok.
|
Richard H.
|
2010-09-27 12:16 PM
|
Re: it maps ok, it doesnt map ok.
|
baggies1
|
2010-09-27 12:18 PM
|
Re: it maps ok, it doesnt map ok.
|
baggies1
|
2010-09-27 12:21 PM
|
Re: it maps ok, it doesnt map ok.
|
Glenn Barnas
|
2010-09-27 12:24 PM
|
Re: it maps ok, it doesnt map ok.
|
baggies1
|
2010-09-27 12:30 PM
|
Re: it maps ok, it doesnt map ok.
|
Glenn Barnas
|
2010-09-27 01:00 PM
|
Re: it maps ok, it doesnt map ok.
|
baggies1
|
2010-09-27 01:09 PM
|
Re: it maps ok, it doesnt map ok.
|
baggies1
|
2010-09-27 01:22 PM
|
Re: it maps ok, it doesnt map ok.
|
Glenn Barnas
|
2010-09-27 02:10 PM
|
Re: it maps ok, it doesnt map ok.
|
baggies1
|
2010-09-27 02:32 PM
|
Re: it maps ok, it doesnt map ok.
|
Glenn Barnas
|
2010-09-27 01:07 PM
|
Re: it maps ok, it doesnt map ok.
|
baggies1
|
2010-09-27 12:59 PM
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 823 anonymous users online.
|
|
|