copymemory(@dest,@source,length(source));
@作取地址用
The @ operator returns the address of a variable, or of a function, procedure, or method; that is, @ constructs a pointer to its operand. For more information about pointers, see Pointers and pointer types. The following rules apply to @.If X is a variable, @X returns the address of X. (Special rules apply when X is a procedural variable; see Procedural types in statements and expressions.) The type of @X is Pointer if the default {$T杴 compiler directive is in effect. In the {$T+} state, @X is of type ^T, where T is the type of X.
If F is a routine (a function or procedure), @F returns F抯 entry point. The type of @F is always Pointer.When @ is applied to a method defined in a class, the method identifier must be qualified with the class name. For example,@TMyClass.DoSomethingpoints to the DoSomething method of TMyClass. For more information about classes and methods, see Classes and objects.
@作取地址用
The @ operator returns the address of a variable, or of a function, procedure, or method; that is, @ constructs a pointer to its operand. For more information about pointers, see Pointers and pointer types. The following rules apply to @.If X is a variable, @X returns the address of X. (Special rules apply when X is a procedural variable; see Procedural types in statements and expressions.) The type of @X is Pointer if the default {$T杴 compiler directive is in effect. In the {$T+} state, @X is of type ^T, where T is the type of X.
If F is a routine (a function or procedure), @F returns F抯 entry point. The type of @F is always Pointer.When @ is applied to a method defined in a class, the method identifier must be qualified with the class name. For example,@TMyClass.DoSomethingpoints to the DoSomething method of TMyClass. For more information about classes and methods, see Classes and objects.
解决方案 »
- 入库的添加功能中 同时添加单身和单头怎样写代码
- 批处理文件相关,急急急.....(第一次登陆CSDN)
- 需要加密的字符多,加完密之后字符少,然后解密后还原到原来的字符串。有这样的加密解密算法吗?
- DBcombobox显示记录问题!
- 我想问一下delphi里面的汉字怎么在别的软件里识别?
- 哪里有<Delphi 6/Klyix 2 Soap/Web Service 程序设计篇>下载?
- 怎样写一个拨号上网的程序并能通过SQL语句互传数据呢?
- 关于ADOTABLE的问题请教!
- 关于inputQuery
- messagedlg能不能显示中文?例如显示“确定”,而不是“ok”
- 如何用delphi6控制excel?急啊~~~~~~~~~~!
- 将去做SAP ABAP4平台编程,用过的请进。up有分。
若X為一變量, @X返回X的地址;
若F為一Fnction或Procedure, @F返回F的入口點,@F的類型總是Pointer;
若@作用于類的方法時,則必須用類名限定方法名:
@TMyClass.DoSomething,它指向TMyClass的方法DoSomething.
(註: 以上引用 Object Pascal 參考手冊Ver1.0)
建議看一看Object Pascal基本語法(若愿意,把Email地址放上來,我可以給你丟過去!).
[email protected]