nil        
还有 Tgroupbox  什么类型呃

解决方案 »

  1.   

    nil是空指针,TGroupBox是一个类(class).
      

  2.   

    nil是空指针,TGroupBox是一个类(class).
    如果你还不知道类和类型的区别,就看一点关于面向对象的书吧。
    如果你有《设计模式》这本书,里面有非常精僻的解释--类和类型的区别
      

  3.   

    nil,空指针,可以赋给任何一个指针变量,包括对象。
    TGroupBox是一个类,同时又是一个可视控件。
      

  4.   

    把想控制的窗体代码事件发不发生要.OnMouseMove := nil
    如果发生是什么语句和ture fasle那样的
      

  5.   

    这个问题最好看delphi的帮助。其实金山词霸就告诉你nil是什么意思,它的汉语意思是零。
      

  6.   

    这是别人的解释我不大懂OnMouseMove := nil设为有效无效的语法
      

  7.   

    delphi的帮助对nil的注解To see how pointers work, look at the following example.1    var2      X, Y: Integer;   // X and Y are Integer variables
    3      P: ^Integer;     // P points to an Integer
    4    begin
    5      X := 17;         // assign a value to X
    6      P := @X;         // assign the address of X to P
    7      Y := P^;         // dereference P; assign the result to Y
    8    end;Line 2 declares X and Y as variables of type Integer. Line 3 declares P as a pointer to an Integer value; this means that P can point to the location of X or Y. Line 5 assigns a value to X, and line 6 assigns the address of X (denoted by @X) to P. Finally, line 7 retrieves the value at the location pointed to by P (denoted by ^P) and assigns it to Y. After this code executes, X and Y have the same value, namely 17.
    The @ operator, which we have used here to take the address of a variable, also operates on functions and procedures. For more information, see The @ operator and Procedural types in statements and expressions.The symbol ^ has two purposes, both of which are illustrated in our example. When it appears before a type identifier?^typeName梚t denotes a type that represents pointers to variables of type typeName. When it appears after a pointer variable?pointer^梚t dereferences the pointer; that is, it returns the value stored at the memory address held by the pointer.
    Our example may seem like a roundabout way of copying the value of one variable to another梥omething that we could have accomplished with a simple assignment statement. But pointers are useful for several reasons. First, understanding pointers will help you to understand Object Pascal, since pointers often operate behind the scenes in code where they don抰 appear explicitly. Any data type that requires large, dynamically allocated blocks of memory uses pointers. Long-string variables, for instance, are implicitly pointers, as are class variables. Moreover, some advanced programming techniques require the use of pointers.Finally, pointers are sometimes the only way to circumvent Object Pascal抯 strict data typing. By referencing a variable with an all-purpose Pointer, casting the Pointer to a more specific type, and then dereferencing it, you can treat the data stored by any variable as if it belonged to any type. For example, the following code assigns data stored in a real variable to an integer variable.type  PInteger = ^Integer;
    var
      R: Single;
      I: Integer;
      P: Pointer;
      PI: PInteger;
    begin
      ...
      P := @R;
      PI := PInteger(P);
      I := PI^;
    end;Of course, reals and integers are stored in different formats. This assignment simply copies raw binary data from R to I, without converting it.
    In addition to assigning the result of an @ operation, you can use several standard routines to give a value to a pointer. The New and 
    GetMem procedures assign a memory address to an existing pointer, while the Addr and Ptr functions return a pointer to a specified address or variable.
    Dereferenced pointers can be qualified and can function as qualifiers, as in the expression P1^.Data^.The reserved word nil is a special constant that can be assigned to any pointer. When nil is assigned to a pointer, the pointer doesn抰 reference anything.
      

  8.   

    Nil  是什么??Nil ,空也,虚无,什么也没有,虚无虚无虚无,零不是虚无.保留字nil 是一个特殊常量,可赋给任何指针(类型)。当nil 被赋给一个指针时,指针不表示任何东西。