Subject Re: VARIABLE DECLARATION
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Mon, 16 Apr 2018 13:22:02 -0700
Newsgroups dbase.getting-started

On 4/16/2018 12:39 PM, MUSTANSIR GHOR wrote:
> Dear Mervyn
>
> Thank you for detail reply. May God bless you. I hope you feeling well.
>
> The between form and data objects are very clear. Thanks once again.
>
> However I will keep on asking , I am sorry but you are our Doctor.
>
> I have a set of radiobuttons. Each button selection needs to assigns a datasource property of a combobox to a table field NAME based of radio button selection. Although these tables (for each radio button) are different but their field structures are same.
>
> The confusion is do i need to create for all 5 tables , 5 queries in the constructor code at begining of class and assign at radio but event appropiate rowset.fields["NAME"] to datasource of cbitem
>
> OR
>
> I create query here (of course I worder this query will not be associated with form) and assign it to datasource property of cbitem. Will this work because query created here will vanish at the of event.
>
> The difference in both in my opinion is 1st one  takes up more memory than 2nd one.

If the table names are the only difference, then you should be able to
just assign the tablename to the query from whichever radiobutton you're
using.

I am not sure I understand the problem ...

Ken


--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm