Re: sharing variables and arrays in different comboboxes in a form
- From: "Piddepadde" <Piddepadde@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 1 May 2005 23:38:05 -0700
If I declare a private array in the forms load or init method - can I use
that array in a valid method of a combobox in that form or should I declare
it somewhere else..
(think I have tested this with no success)
/Patrik
"Anders Altberg" wrote:
> Any array or variable created in a procedure is scoped to that procedure and
> released when that procedure finishes. A Private variable can still be seen
> in a procedure called from the procedure where it was created (unless the
> theres a PRIVATE declaration in the subprocedure).
> Make the array a Form property or possibly a property of a combobox.
> THIS.ADDPROPERTY("arr(1)")
> SELECT ... INTO ARRAY This.arr
>
> -Anders
>
> "Piddepadde" <Piddepadde@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:C96F2CB2-A631-4850-B3A5-2DC71B1C82E9@xxxxxxxxxxxxxxxx
> > I am rewriting an application from foxpro 2.6 to vfp 9 and have some
> problem
> > to understand the way to sharr variables and arrays in different
> comboboxes
> > in the same form.
> >
> > When I create an array, using SQL select command, in a "valid" method in
> one
> > combobox I can't use it (see the contents) in another combox methods.
> > I think that I have missed something basic...
> >
> > Is there any basic, initally command that has to be set in order to use
> > arrays and variables trough a forms different objects... ?
> >
> > /Patrik
>
>
.
- Follow-Ups:
- Re: sharing variables and arrays in different comboboxes in a form
- From: Anders Altberg
- Re: sharing variables and arrays in different comboboxes in a form
- From: Stefan Wuebbe
- Re: sharing variables and arrays in different comboboxes in a form
- References:
- sharing variables and arrays in different comboboxes in a form
- From: Piddepadde
- Re: sharing variables and arrays in different comboboxes in a form
- From: Anders Altberg
- sharing variables and arrays in different comboboxes in a form
- Prev by Date: Re: Foxpro2.6 Disappears
- Next by Date: How to call a program from VFP, but run on seperate window?
- Previous by thread: Re: sharing variables and arrays in different comboboxes in a form
- Next by thread: Re: sharing variables and arrays in different comboboxes in a form
- Index(es):
Relevant Pages
|