comparison m-toolbox/classes/@repogui/cb_select_db.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % CB_SELECT_DB callback when the user selects a database
2 %
3 % M Hewitson 22-09-08
4 %
5 % $Id: cb_select_db.m,v 1.2 2011/04/08 08:56:26 hewitson Exp $
6 %
7 function cb_select_db(varargin)
8
9 % Handles
10 myh = varargin{1};
11 mainfig = varargin{end};
12
13
14 % get selected server
15 val = get(myh, 'Value');
16 strs = get(myh, 'String');
17 db = strs{val};
18
19 % Set server
20 eh = findobj(mainfig.handle, 'Tag', 'RepoguiDatabaseEdit');
21 set(eh, 'string', db);
22
23 end