| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi...
I am trying to find a way to access components properties with string variable... for example : procedure .... var strComponent :String; strClass :String; NewRef :TComboBox; begin strComponent := 'ComboBox1'; strClass := 'TComboBox'; NewRef := FindComponent(strComponent) as FindClass(strClass); NewRef.Visible := False; end; ... but FindClass() returns a TPersistentClass value! Huh, I don't know if it is possible to do what I am trying to do, but if somebody does have an idea please share it with me! If U ask why!? I had an idea to store components names and some propertie values in a database so I can reconfigure, say a form, in a runtime! It is so easy to do this in some C language, there has to be a way in Delphi as well! |
![]() |
| Viewing: Tutorialized Forums > Desktop Programming > Delphi > Is it possible to access a component properties with a string variable !? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|