小编Mat*_*Max的帖子

有人可以解释下面的代码是做什么的吗?

我目前正在开发一个用经典asp编写的项目.我之前使用过这种语言,但是我已经生锈了.

在该代码中,我看到以下函数调用: Result = SwapOEMPart(sItem)

当我看到SwapOEMPart时,我看到了这个:

function SwapOEMPart(oemPart)
  // Do a bunch of stuff
  oemPart = objRS("CCIPartNo") <-- this is the result of the stuff
end function
Run Code Online (Sandbox Code Playgroud)

那是做什么的?它是否用oemPart的值填充Result?它是否会改变sItem的值(类似于通过引用传递)?或者它可能完全不同.

我熟悉通过将函数名设置为要返回的值来从asp函数返回数据,但在这种情况下,他们正在更改它们传入的参数的值,然后才结束函数.

asp-classic

1
推荐指数
1
解决办法
104
查看次数

标签 统计

asp-classic ×1