Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

WELL VERY INTERESTING QUESTION :)))) Find similar branches


Русский   (2001-12-18 17:03) [0]

// There is a class
TNetworkResource = class (TPersistent)
private
FdwScope: TResourceScope;
FdwType: TResourceType;
FdwDisplayType: TResourceDisplayType;
FdwUsage: TResourceUsage;
FlpLocalName: string;
FlpRemoteName: string;
FlpComment: string;
FlpProvider: string;
published
property dwScope: TResourceScope read FdwScope write FdwScope;
property dwType: TResourceType read FdwType write FdwType;
property dwDisplayType: TResourceDisplayType read FdwDisplayType write FdwDisplayType;
property dwUsage: TResourceUsage read FdwUsage write FdwUsage;
property lpLocalName: string read FlpLocalName write FlpLocalName;
property lpRemoteName: string read FlpRemoteName write FlpRemoteName;
property lpComment: string read FlpComment write FlpComment;
property lpProvider: string read FlpProvider write FlpProvider;
end;

was
// We have a variable of type TNetWorkResource
NetworkResource: TNetworkResource;
// We have a variable of type TNetResource
NetResource: TNetResource;
Question:
How to create something like NetResource: = NetworkResource?
I really do not want to translate each field, i.e .:
NetworkResource.dwScope: = NetResource.dwScope;
.



Digitman   (2001-12-18 17:48) [1]

No Only direct assignment of values ​​of individual fields.
TNetResource is a simple API structure, and TNetworkResource is your own class.



Русский   (2001-12-18 19:46) [2]

: - (((



Дремучий   (2001-12-18 20:36) [3]

register for your class method Assign, where you will do
the necessary assignments, and the program is no longer an assignment, but call
Assign - standard procedure ....
;)



False_Delirium   (2001-12-19 00:27) [4]

"Operators" look in help "The @ operator" ...
In C ++, the overloading of equality operators ...



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top





Memory: 0.55 MB
Time: 0.023 c
7:22434
tomas2001
2001-09-24 14:04
2002.01.08
File transfer via modem


1:22073
Hydramatt
2001-12-19 00:22
2002.01.08
DLL or BPL


3:21924
Andrei
2001-12-04 14:37
2002.01.08
DbLookUpComboBox


1:22239
Gayrus
2001-12-17 03:52
2002.01.08
TStatusBar


6:22293
Dark_Dan
2001-10-02 18:09
2002.01.08
Sockets must die !!!!!!!





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish