# Re: Get Data Type Problem

Posted by 纪文和 on June 17, 1998 at 23:12:55:

In Reply to: Get Data Type Problem posted by 普罗米修斯 on June 17, 1998 at 19:55:41:

: 当以 db.Fields(1).Type 方法读取某栏位的形态时,其传回的值不是预期的"Integer, Long, Double......." 等, 而只是数字, 请问正确该怎么作 ?

您必须依传回之数字,再用 Select Case 去判断

8 ---Date/Time
10 ---Text
12 ---Memo
1 ---Yes/No
3 ---Integer
4 ---Long
5 ---Currency
6 ---Single
7 ---Double
2 ---Byte
11 ---Long Binary (OLE Object)
至于详细内容请查 VB HELP -- Type Property (Data Access)

Follow Ups: