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.56 MB
Time: 0.029 c
3-21990
Skyr
2001-12-04 03:58
2002.01.08
Problem with LookUp - margins


1-22057
AlexeyV
2001-12-19 03:34
2002.01.08
How to cause a dialogue


1-22227
Tosov
2001-12-15 10:43
2002.01.08
How to work with TInplaceEdit


1-22085
ProfiUgl
2001-12-19 15:24
2002.01.08
How to read command line options


14-22328
Novice
2001-11-02 14:48
2002.01.08
I already zadolbalsya !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!





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 Español 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