|
|
Description Syntax Return
Datatype Example Migration
CallByName Function - Visual Basic
6.0 (VB 6.0) |
| Executes a method of an object, or sets or returns
a property of an object. |
|
|
Syntax: |
CallByName(object, procname, calltype,[args()])
| Parameter |
Description |
| object |
Required; Variant (Object). The name of the object on which
the function will be executed. |
| procname |
Required; Variant (String). A string expression containing
the name of a property or method of the object. |
| calltype |
Required; Constant. A constant of type vbCallType representing
the type of procedure being called. |
| args() |
Optional: Variant (Array). |
Call Type Constants:
| Constants |
Value |
Description |
| vbMethod |
1 |
Indicates that a method has been invoked. |
| vbGet |
2 |
Indicates a Property Get procedure. |
| vbLet |
4 |
Indicates a Property Let procedure. |
| vbSet |
8 |
Indicates a Property Set procedure. |
|
Return Data type: |
|
|
Example: |
| Statement |
Result |
Remark |
| CallByName Text1, "MousePointer", vbLet,
vbCrosshair |
|
Set value to a Property |
|
CallByName (Text1, "MousePointer", vbGet)
|
2 |
vbCrosshair |
|
| CallByName (Text1, "MousePointer", vbGet)
= vbCrosshair |
True |
|
|
| CallByName Command1, "Move", vbMethod, 100, 200 |
|
Move to 100, 200 (x,y) |
|
|
|
|
|
| Migration from Visual Basic 6.0 (VB 6.0) to |
| |
CallByName Function in VB Script (VBS) |
| |
CallByName Function in JScript (JS) |
| |
CallByName Function in ASP (Active Server Page) |
| |
CallByName Function in PHP Script |
| |
CallByName Function in MS-Access |
| |
CallByName Function in MS SQL Server |
| |
CallByName Function in Oracle |
| |
CallByName Function in C Language |
| |
CallByName Function in C++ Language |
| |
CallByName Function in Foxpro |
| |
CallByName Function in Fortran |
| |
CallByName Function in MS Excel Sheet |
 |
| |
|
|
|