Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности

Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
03.11.2003, 11:16
|
|||
|---|---|---|---|
Список методов |
|||
|
#18+
Народ, никто не в курсе, как получить список published методов класса? адрес например можно при помощи MethodAddress , а список всех? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
03.11.2003, 11:35
|
|||
|---|---|---|---|
Список методов |
|||
|
#18+
procedure GetMethodList( FromClass: TClass; MethodList: TStrings ); overload; type PPointer = ^Pointer; PMethodRec = ^TMethodRec; TMethodRec = packed record wSize: Word; pCode: Pointer; sName: ShortString; end; var MethodTable: PChar; AClass: TClass; MethodRec: PMethodRec; wCount: Word; nMethod: integer; begin MethodList.Clear; AClass := FromClass; while AClass <> nil do begin //Get a pointer to the class's published method table MethodTable := PChar( Pointer( PChar( AClass ) + vmtMethodTable )^ ); if MethodTable <> nil then begin //Get the count of the methods in the table Move( MethodTable^, wCount, 2 ); //Position the MethodRec pointer at the first method in the table //(skip over the 2-byte method count) MethodRec := PMethodRec( MethodTable + 2 ); //Iterate through all the published methods of this class for nMethod := 0 to wCount - 1 do begin //Add the method name and address to the MethodList TStrings MethodList.AddObject( MethodRec.sName, MethodRec.pCode ); //Skip to the next method MethodRec := PMethodRec( PChar( MethodRec ) + MethodRec.wSize ); end; end; //Get the ancestor (parent) class // The easy way: AClass := AClass.ClassParent; end; end; ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
03.11.2003, 11:38
|
|||
|---|---|---|---|
Список методов |
|||
|
#18+
srf2000 спасибки большое, чичас проверим ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=58&mobile=1&tid=2116115]: |
0ms |
get settings: |
8ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
31ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
2ms |
| others: | 249ms |
| total: | 359ms |

| 0 / 0 |
