Query first_tool / last_tool
Hi guys
I wanted to create a file with def_tool – and I made it.
But I’d like to add a header before the first tool and a footer after the last one.
But I can’t make it!
If I enter the number of the first and the last tool as a query, it works:
@def_tool
{nl,'!!open file='program_number'.TXT!!'}
if tool_number eq 1 ; T1 ist first_tool -
{nl}
{'---------- Kopfzeile ---------- '}
{nl}
{nl}
{nl,'!!close file='program_number'.TXT!!'}
endif
{nl,'!!open file='program_number'.TXT!!'}
{nl}
{'P', tool_number}
{' T', tool_number }
{' L','400'}
{' R'(tool_offset)}
{' ('}
{''upper(tool_user_type)}
{' '(tool_offset*2)}
{')'}
{nl,'!!close file='program_number'.TXT!!'}
{nl,'!!open file='program_number'.TXT!!'}
if tool_number eq 4 ; T1 ist last_tool
{nl}
{nl}
{nl,'---------- Fusszeile ---------- '}
endif
{nl,'!!close file='program_number'.TXT!!'}
endp
;-------------------
What does the query have to look like if I want to have a header before “first_tool” and a footer after “last_tool”?
Help!
Thanks in advance
Banditman