Jump to content

typecast


Guest

Recommended Posts

Message from: "schweppes"

 

Hi,

 

how do i do this

with findComponent('B'+inttostr(counter)) as TUniButton do begin

 

works ok in vcl

 

Thanks

 

 

 

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5505 (20101005) __________

 

The message was checked by ESET NOD32 Antivirus.

 

http://www.eset.com

 

 

 

 

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

"schweppes" .

> Hi,

>

> how do i do this

> with findComponent('B'+inttostr(counter)) as TUniButton do begin

>

 

 

Please use explicit typecast as below:

 

TUniButton(findComponent('B'+inttostr(counter));

 

 

.

 

Link to comment
Share on other sites

Message from: "schweppes"

 

Thank You, works 100%

 

"Farshad Mohajeri" wrote in message

news:fFrTOSJZLHA.1928@anaxagvs227...

>

> "schweppes" .

>> Hi,

>>

>> how do i do this

>> with findComponent('B'+inttostr(counter)) as TUniButton do begin

>>

>

>

> Please use explicit typecast as below:

>

> TUniButton(findComponent('B'+inttostr(counter));

>

>

> __________ Information from ESET NOD32 Antivirus, version of virus

> signature database 5505 (20101005) __________

>

> The message was checked by ESET NOD32 Antivirus.

>

> http://www.eset.com

>

>

>

 

 

 

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5505 (20101005) __________

 

The message was checked by ESET NOD32 Antivirus.

 

http://www.eset.com

 

 

 

 

.

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...