# 这段程式那儿出错了呢?

Posted by meteor on July 03, 1998 at 20:53:28:

Dim ps As rdoPreparedStatement
Dim sSQL As String

sSQL = "{call stock.dbo.type (?),(?)}"
Set ps = cn.CreatePreparedStatement("", sSQL)

ps.rdoParameters(0).Direction = rdParamInput
ps.rdoParameters(1).Direction = rdParamInput
ps.rdoParameters(0).Value = cmbpro_sort.Text
ps.rdoParameters(1).Value = cmbpro_mark.Text

一些该设的我都已经设好了,且我如果只传递一个参数call store procedure(store procedure也只接受一个参数)
就可以了,可是当我要传递二个参数过去时,在 ps.rdoParameters(0).Direction = rdParamInput这一行开始就
错了,到底是那错了呢?

Follow Ups:

- Re: 这段程式那儿出错了呢? 纪文和 23:11:06 7/03/98 (0)