函数assigned的含义是什么,跟她的用法,高手帮帮忙,谢谢!!!

解决方案 »

  1.   

    目标对象是否被可以访问(存在性的判断)没什么例子的,一般是组件内部使用的
    assigned为True就表示对象可以访问
      

  2.   

    assigned(proc)主要判断proc的值是不是为空
      

  3.   

    if assigned(Form1) then Form1.showmodal
      

  4.   

    嘿嘿,我把帮助贴出来,请楼下翻译
    function Assigned(var P): Boolean;DescriptionUse Assigned to determine whether the pointer or procedure referenced by P is nil. P must be a variable reference of a pointer or procedural type. Assigned(P) corresponds to the test P<> nil for a pointer variable, and @P <> nil for a procedural variable.Assigned returns False if P is nil, True otherwise.Note: Assigned can't detect a dangling pointer--that is, one that isn't nil but no longer points to valid data. For example, in the code example for Assigned, Assigned won't detect the fact that P isn't valid.
      

  5.   

    assigned:(var P) Boolean;描述使用assigned决定是否指针或程序叁考的藉着 P 是无。 P 一定是一个变数一个指针或程序的类型叁考。 分配 (P) 符合测试 P<> 无为一个指针变数 , 和 @ P<>为一个程序的变数无。分配了回返错误的如果 P 是无, 真实的以别方式。注意:分配不能发现一个吊动指针-- 是,除了对有效的数据没有较长的点之外不是无的一个。 举例来说, 在密码例子中为分配, 分配将不发现事实 P 不是有效
    =========================================================
    金山快译真烂,楼上的付工资