SET ALTER TO cFile ?

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

SET ALTER TO cFile ?

Post by Jimmy »

hi,

for Debug i use

Code: Select all | Expand

  SET ALTER TO "_LOGIT2.TXT"
   onDummy("Hello World")
   SET ALTER TO
 

and Function

Code: Select all | Expand

FUNCTION onDummy()
LOCAL iMax   := PCOUNT()
LOCAL i
LOCAL cText  := ""
LOCAL xValue

*   IF lDebug = .T.
      FOR i := 1 TO iMax - 1
         cText += Var2Char( PValue( i ) ) + CHR( 9 )
      NEXT
      cText += Var2Char( PValue( iMax ) )

      SET CONSOLE OFF
      SET ALTER ON

      ? cText

      SET ALTER OFF
      SET CONSOLE ON
*   ENDIF
RETURN NIL

but when call onDummy() under FiveWin i got a

Code: Select all | Expand

Messagebox(cText, "Alert")

and nothing is redirect to _LOGIT2.TXT :shock:

so how under FiveWin :?:
greeting,
Jimmy
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: SET ALTER TO cFile ?

Post by hmpaquito »

Hi,

? command is translated to msgbox alert in fivewin.ch

A workaround is change ? command for Qout() function

Regards
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

Re: SET ALTER TO cFile ?

Post by Detlef »

Hi Jimmy,

for debugging or log I use the following:
outside the Main function a static cLog := ""
Then all debug info I append to cLog += 'interesting info' + CRLF.
At the end I call msginfo( cLog ).

May be this could work for you too.
Regards,
Detlef
User avatar
Otto
Posts: 6413
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: SET ALTER TO cFile ?

Post by Otto »

Hello Jimmy,
there is also fwlog function.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: SET ALTER TO cFile ?

Post by Jimmy »

hi,
hmpaquito wrote:? command is translated to msgbox alert in fivewin.ch
A workaround is change ? command for Qout() function

AHA ...
thx for Workaroud
greeting,
Jimmy
Post Reply