# Re: 如何宣告

Posted by j on October 17, 1999 at 11:07:04:

In Reply to: 如何宣告 posted by Kenmy on October 17, 1999 at 01:52:32:

: >如何让您的应用程式永远在画面的最上层
: >(1) 首先请先宣告API的Function:
: >Declare Function SetWindowPos Lib "User32" (ByVal hWnd As _
: >Integer, ByVal hWndinsertafter As Integer, ByVal x As Integer, ByVal Y _
: >As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As _
: >Integer) As Integer

: 请问要在哪里宣告呢？麻烦一下各位先进帮帮我，谢谢！

在模组里宣告，把程式码放在模组里
或是在 Declare 字串前加上 Private 字串就可以一般程序下宣告

Follow Ups:

- Re: 什么是编译错误引数不为选择性(optional)？ Kenmy 23:19:42 10/17/99 (1)
  - Re: 什么是编译错误引数不为选择性(optional)？ 小v 09:20:35 10/18/99 (0)