OK, let's change a question a bit. Here we have a code to find the first match of a Grid filename which has a character "!" (#33) using function pos().
begin
var 'i','n' end;
$n:=grid.numrows;
for $i:=0;$i<$n; $i++ do
if pos(#33, grid.cell(fn,$i))<>0 then
// check file names for "!"
return($i+1+#32+grid.cell(f,$i)+#32);
// ASCII code for space is #32
endif;
next;
return('-');
end
But the code gives no answer. Could you help with this? Documentation description for the pos() function is quite minimal. I guess that's where the problem lies.