Home > m > gui > ltpdaRepoGUI > callbacks > getTables.m

getTables

PURPOSE ^

SYNOPSIS ^

function tables = getTables(conn)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function tables = getTables(conn)
0002 
0003 mainfig = findobj('Tag', 'LTPDARepomainfig');
0004 
0005 % Get conn
0006 conn = getappdata(mainfig, 'connection');
0007 
0008 if ~isempty(conn)
0009   % get the databases
0010   q = 'show tables';
0011   curs = exec(conn, q);
0012   curs = fetch(curs);
0013 
0014   tables = curs.Data;
0015   close(curs);
0016 else
0017   tables = {'-'};
0018 end
0019

Generated on Fri 02-Nov-2007 19:39:27 by m2html © 2003