Nope.
I renamed CLEARSELECT to OLD.CLEARSELECT and did UDTEXECUTE
"OLD.CLEARSELECT" so as to not have a recursion issue, but had no luck
I tested it as follows:
PROGRAM CLEARSELECT:
<1> UDTEXECUTE "OLD.CLEARSELECT"
Compiled and successfully tested on the command line:
:SELECT TEST
3 records selected to list 0.
>CLEARSELECT
:
However, running it inside a program fails:
EXECUTE "SELECT TEST" CAPTURING OUTPUT
EOL = 0
LOOP
READNEXT KEY ELSE EOL = 1
UNTIL EOL
CRT "Processing record: ":KEY
EXECUTE "CLEARSELECT"
REPEAT
Results in:
Processing record: AA
Processing record: AB
Processing record: AC
I tried every other combination I could think off (only 3 :)).
1) Overloaded CLEARSELECT as a program that just has the Unibasic
CLEARSELECT call
2) Overloaded CLEARSELECT as a program that just has the Unibasic
CLEARSELECT ALL call
3) Creating an empty file and having the overloaded CLEARSELECT do a
select on that.
But all failed. Oh well. More work keeps more people employed :)
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Colin Alfke
Sent: Tuesday, 13 October 2009 3:34 PM
To: 'U2 Users List'
Subject: Re: [U2] EXECUTE 'CLEARSELECT'
What about "overloading" the CLEARSELECT voc item so that it runs a
program that does a UDTEXECUTE "CLEARSELECT".
You wouldn't have to update your programs, plus when you upgraded to a
version without this issue, you could easily remove the workaround.
Note: I didn't test it to see how well/if it would work.
Hth
Colin Alfke
Calgary, Canada
###########################################################################################
The information transmitted in this message and attachments (if any) is
intended only
for the person or entity to which it is addressed. The message may contain
confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of
or taking of any action in reliance upon this information by persons or
entities other
than the intended recipient is prohibited. If you received this in error,
please
contact the sender and delete the material from any computer.
The intended recipient of this e-mail may only use, reproduce, disclose or
distribute
the information contained in this e-mail and any attached files with the
permission of IMB.
###########################################################################################
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users