Hi all,
I can create objects using macro substituion:
@ nRow, 140 LABEL &cGLabel ;
I tried release them using the same but failed. How should I do it?
cGLabel := 'Main.Label_'+AllTrim(Str(nI),1)+'.Release'
&cGLabel
Thanks.
Release objects using macro
Moderator: Rathinagiri
Re: Release objects using macro
Hi,raymanw wrote:Hi all,
I can create objects using macro substituion:
@ nRow, 140 LABEL &cGLabel ;
I tried release them using the same but failed. How should I do it?
cGLabel := 'Main.Label_'+AllTrim(Str(nI),1)+'.Release'
&cGLabel
Try
cForm := "Main"
cGLabel := "Label_"+AllTrim(Str(nI),1)
DoMethod(cForm, cGLabel, "Release")
Hope that helps
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Release objects using macro
Thanks Grigory.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Release objects using macro
Hi gfilatov
It worked. Thanks.
It worked. Thanks.
Re: Release objects using macro
Hi,
How can I use the same to enable/disable an object?
Thanks.
How can I use the same to enable/disable an object?
Thanks.
Re: Release objects using macro
I think, you can use Visible property:
SetProperty(cWindowName, cControlName, "VISIBLE", .f.)
SetProperty(cWindowName, cControlName, "VISIBLE", .f.)
Re: Release objects using macro
Hi mol,
Thanks for the solution.
Thanks for the solution.