Switch to unified view

a/samples/tablescreen.tcl b/samples/tablescreen.tcl
1
#!/bin/sh
1
#!/usr/bin/env wish
2
# @(#$Id$  
3
# Generate a standard access screen from all a table's columns
4
5
# The following nonsense is required because mysqlwish dumps core when 
6
# SQLDBTYPE is ODBC, reason unknown.
7
# The following lines are executed by sh, not by wish because of the
8
# backslashes... Puke loudly
9
#\
10
case "A$SQLDBTYPE" in 
11
#\
12
  A|AMYSQL) exec /usr/local/bin/mysqlwish "$0" "$@";;
13
#\
14
*) exec wish "$0" "$@";; 
15
#\
16
esac
17
2
18
package require sqlsc
3
package require sqlsc
19
4
20
# Things that you may want to change
5
# Things that you may want to change
21
set username "";set hostname "";set password ""
6
set username "";set hostname "";set password ""