#XCOMMAND WEB [DO] WHILE <fin> [<v:VAR,VARS> <params,...>] [<i:END DO,ENDDO,END> <id>([<params2,...>])] => ;
if eval( <{fin}> ) ;;
do while .t. ;;
if memvar->qs_data_run:nNext == 2 ;;
elseIf memvar->qs_data_run:nNext == 1 ;;
if !memvar->qs_data_run:bucle( <{fin}> ) ;;
endIf ;;
else ;;
exit ;;
endIf ;;
endDo ;;
else ;;
endIf
web DO WHILE lCont vars cAlias, lRet, lCont, nWait end ocus(lRet, lCont, nWait)resultif eval( {|| lCont} ) ; while .T. ; if memvar->qs_data_run:nNext == 2 ; elseIf memvar->qs_data_run:nNext == 1 ; if !memvar->qs_data_run:bucle( {|| lCont} ) ; endif
Second the #define and #undef doesn't work fine with #xcommand#XCOMMAND miDefine <def> => #DEFINE <def>_aaa "hola"
Seems to me that the function will crash, because can enter in an infinite loop.
"Yes, it's some strange programming, but it's what I need to try to modify as little as possible sources that are already working correctly,"
Using things like this, you never will want to modify source code, because will be more difficult each day.
Why not to call a simple function, besides create a new function on each source code?
José M. C. Quintas
--
You received this message because you are subscribed to the Google Groups "Harbour Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-devel/d5840795-7c40-4896-91af-cb9c96492b4dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-devel/c74a099a-c96d-f1c2-1974-a57baaa62e49%40gmail.com.
May be anything like this?
#include "myfunction.ch"
----myfunction.ch----
STATIC TheFunction(....)
DO WHILE .T.
...
ENDDO
José M. C. Quintas
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-devel/e0660e2b-e67c-4220-afd6-e92ffe62c61an%40googlegroups.com.