Using The Tag Property

Please discuss general Delphi programming topics here.

Using The Tag Property

Postby Don Simmonds » January 17th, 2006, 3:07 pm

Will somebody please assist me with an example of how to attach a Record or an array to the Tag property of an object

Thank you
Don
Don Simmonds
Member
Member
 
Posts: 2
Joined: January 17th, 2006, 3:03 pm

Postby Johnny_Bit » January 17th, 2006, 6:47 pm

Code: Select all
TRecord=record
..
PRecord=^TRecord

var
prDummy: PRecord
..

Component.Tag=Integer(prDummy)
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby Don Simmonds » January 17th, 2006, 7:38 pm

Thank you Johnny_bit
Problem solved it worked perfectly even though I didn't quite understand the line with the pointer (unless it declared a variable to hold the pointer?)

Regards
Don :D
Don Simmonds
Member
Member
 
Posts: 2
Joined: January 17th, 2006, 3:03 pm


Return to Delphi Programming

Who is online

Users browsing this forum: Bing [Bot] and 15 guests

cron