答案在这里:http://www.foxtable.com/help/topics/1353.htm
For Each dt As DataTable In DataTables if dt.ConnectionName > "" Then dt.AllowEdit = False End ifnext