3
// This file is part of sciGUI toolbox
4
// Copyright (C) 2004 Jaime Urzua Grez
5
// mailto:jaime_urzua@yahoo.com
8
// This program is free software; you can redistribute it and/or modify
9
//it under the terms of the GNU General Public License as published by
10
//the Free Software Foundation; either version 2 of the License, or
11
//(at your option) any later version.
15
[%_nams,%_vol]=who('get');
18
u=file('open',TMPDIR+'/browsevar.txt','unknown');
19
for %_k=1:size(%_nams,1)
21
execstr('%_typ=type('+%_nams(%_k)+')')
22
if (%_typ<=10) then execstr('%_sz=size('+%_nams(%_k)+');'),end
23
if ((%_typ==17)|(%_typ==16)) then
24
execstr('%_tt=getfield(1,'+%_nams(%_k)+')');%_tt=%_tt(1);
25
ierr=execstr('%_sz=%'+%_tt+'_size('+%_nams(%_k)+')','errcatch'); // ?
26
if ierr<>0 then %_sz='?',end
29
fprintf(u,"<d>%d {%s} %d {%s}",%_typ,strcat(string(%_sz),' by '),%_vol(%_k),%_nams(%_k));
31
fprintf(u,"<m>%d %d %d",sz(1),sz(2),sz(2)/sz(1)*100);
35
tmpDir=strsubst(TMPDIR,'\','/');
36
TK_EvalStr('sciGUIBrowseVar ""'+tmpDir+'""');