My code refers to the columns by name. The name was defined during design
time. I have asked about this before, but the suggestions did not work out.
I am using VFP 8 SP 1

Some of my customers are getting errors when they open screens with grids on
them. The code might say:
this.Grid1.col_code.setfocus()

The code crashes because when the grid was created it named the column
"Column1"
All of the names of the columns are lost.

Someone told me this is because I am loosing the recordsource on the grid,
after it has been assigned to the table. I was instructed to set the
recordsource = "" before I rebuild the cursor it was associated with. This
did not fix the problem. I am getting several customers with this problem.

Does anyone have any suggestion that might fix this issue? Also, does
anyone know if this is a known issue of Microsoft and if its fixed in VFP9?

Thanks for your help

--------------------------------
Dan Tallent

Re: Grid columns are loosing names during runtime by Dan

Dan
Mon Oct 10 12:39:30 CDT 2005

This is known, but it isn't an issue. It's by design. (So don't look for a
"fix". <g>)

Any time you close a grid's data source, all controls created from that
datasource are released. You're basically pulling the rug out from under the
grid.

Somewhere you're missing the save/restore of the datasource.

Dan


Dan Tallent wrote:
> My code refers to the columns by name. The name was defined during
> design time. I have asked about this before, but the suggestions did
> not work out. I am using VFP 8 SP 1
>
> Some of my customers are getting errors when they open screens with
> grids on them. The code might say:
> this.Grid1.col_code.setfocus()
>
> The code crashes because when the grid was created it named the column
> "Column1"
> All of the names of the columns are lost.
>
> Someone told me this is because I am loosing the recordsource on the
> grid, after it has been assigned to the table. I was instructed to
> set the recordsource = "" before I rebuild the cursor it was
> associated with. This did not fix the problem. I am getting
> several customers with this problem.
>
> Does anyone have any suggestion that might fix this issue? Also, does
> anyone know if this is a known issue of Microsoft and if its fixed in
> VFP9?
>
> Thanks for your help
>
> --------------------------------
> Dan Tallent



Re: Grid columns are loosing names during runtime by Dan

Dan
Mon Oct 10 13:10:07 CDT 2005

thx for the quick answer. Do you know if setting the recordsource to ""
before I reset the datasource fixes this issue? If so, I will revisit my
code to ensure it is being done.

Thx

Dan


"Dan Freeman" <spam@microsoft.com> wrote in message
news:u5Q$SGczFHA.720@TK2MSFTNGP15.phx.gbl...
> This is known, but it isn't an issue. It's by design. (So don't look for a
> "fix". <g>)
>
> Any time you close a grid's data source, all controls created from that
> datasource are released. You're basically pulling the rug out from under
the
> grid.
>
> Somewhere you're missing the save/restore of the datasource.
>
> Dan
>
>
> Dan Tallent wrote:
> > My code refers to the columns by name. The name was defined during
> > design time. I have asked about this before, but the suggestions did
> > not work out. I am using VFP 8 SP 1
> >
> > Some of my customers are getting errors when they open screens with
> > grids on them. The code might say:
> > this.Grid1.col_code.setfocus()
> >
> > The code crashes because when the grid was created it named the column
> > "Column1"
> > All of the names of the columns are lost.
> >
> > Someone told me this is because I am loosing the recordsource on the
> > grid, after it has been assigned to the table. I was instructed to
> > set the recordsource = "" before I rebuild the cursor it was
> > associated with. This did not fix the problem. I am getting
> > several customers with this problem.
> >
> > Does anyone have any suggestion that might fix this issue? Also, does
> > anyone know if this is a known issue of Microsoft and if its fixed in
> > VFP9?
> >
> > Thanks for your help
> >
> > --------------------------------
> > Dan Tallent
>
>



Re: Grid columns are loosing names during runtime by Anders

Anders
Tue Oct 11 00:03:47 CDT 2005

Hi Dan,
Does this KB article help?
http://support.microsoft.com/default.aspx?scid=kb;en-us;140653

-Anders

"Dan Tallent" <dtallent@NOTEarthlink.net> skrev i meddelandet
news:OMdqBVczFHA.1168@TK2MSFTNGP15.phx.gbl...
> thx for the quick answer. Do you know if setting the recordsource to ""
> before I reset the datasource fixes this issue? If so, I will revisit my
> code to ensure it is being done.
>
>



Re: Grid columns are loosing names during runtime by Dan

Dan
Mon Oct 10 15:27:48 CDT 2005

Maybe, It looks promising. I will test it out and let you know,'


Thx

Dan



"Anders" <anders@anders> wrote in message
news:OjeWXWdzFHA.1040@TK2MSFTNGP14.phx.gbl...
> Hi Dan,
> Does this KB article help?
> http://support.microsoft.com/default.aspx?scid=kb;en-us;140653
>
> -Anders
>
> "Dan Tallent" <dtallent@NOTEarthlink.net> skrev i meddelandet
> news:OMdqBVczFHA.1168@TK2MSFTNGP15.phx.gbl...
> > thx for the quick answer. Do you know if setting the recordsource to
""
> > before I reset the datasource fixes this issue? If so, I will revisit
my
> > code to ensure it is being done.
> >
> >
>
>



Re: Grid columns are loosing names during runtime by Dummy

Dummy
Tue Oct 11 03:48:26 CDT 2005

I seem to remember that's the fix, clear the datasource before
changing it and then reset it.

Of course, this is just the kind of problem that using views
sidesteps...

Mark


Re: Grid columns are loosing names during runtime by Dan

Dan
Tue Oct 11 06:58:36 CDT 2005

The code I put into place seems to work without any visible change to the
user.
I used "copy structure to GridFix" then set the recordsource to the new
table.

Thx for the help
Dan




"Dan Tallent" <dtallent@NOTEarthlink.net> wrote in message
news:uZ1J9hdzFHA.2540@TK2MSFTNGP09.phx.gbl...
> Maybe, It looks promising. I will test it out and let you know,'
>
>
> Thx
>
> Dan
>
>
>
> "Anders" <anders@anders> wrote in message
> news:OjeWXWdzFHA.1040@TK2MSFTNGP14.phx.gbl...
> > Hi Dan,
> > Does this KB article help?
> > http://support.microsoft.com/default.aspx?scid=kb;en-us;140653
> >
> > -Anders
> >
> > "Dan Tallent" <dtallent@NOTEarthlink.net> skrev i meddelandet
> > news:OMdqBVczFHA.1168@TK2MSFTNGP15.phx.gbl...
> > > thx for the quick answer. Do you know if setting the recordsource to
> ""
> > > before I reset the datasource fixes this issue? If so, I will revisit
> my
> > > code to ensure it is being done.
> > >
> > >
> >
> >
>
>



Re: Grid columns are loosing names during runtime by Dan

Dan
Tue Oct 11 07:02:14 CDT 2005

I would need well over 200 views for my application. This application is
very large.
Each screen is actually in its own seperate EXE file. This was done because
of the increasing size of the EXE when it was one large file. The total
filesize of all the EXEs now exceed 60 Megs.

Thx for the help
Dan


"Dummy Newgroup name" <nospam@nospam.org> wrote in message
news:VA.000014e2.0016b3df@vowleyfarm.co.uk...
> I seem to remember that's the fix, clear the datasource before
> changing it and then reset it.
>
> Of course, this is just the kind of problem that using views
> sidesteps...
>
> Mark
>



Re: Grid columns are loosing names during runtime by trw7at

trw7at
Tue Oct 11 12:01:33 CDT 2005

Dan Freeman seemed to utter in news:u5Q$SGczFHA.720@TK2MSFTNGP15.phx.gbl:

> This is known, but it isn't an issue. It's by design. (So don't look
> for a "fix". <g>)
>
> Any time you close a grid's data source,

[snip]

Just a heads-up to any confused readers... there is no "DataSource"
property on a grid. Grid's have a "RecordSource" property. DataEnvironment
objects have a "DataSource" property.

-- TRW
_______________________________________
t r w 7
at
i x dot n e t c o m dot c o m
_______________________________________

Re: Grid columns are loosing names during runtime by Dennis

Dennis
Wed Oct 12 08:43:25 CDT 2005

Dan,

I know you have solved your problem, but may I propose an alternate
solution. I use Andy Kramek's Using a "Safe Select" to preserve your grid
to avoid similar problems. It can also be found on Andy's blog over at
Foxite.com

Hope that helps

Dennis Longfellow

"Dan Tallent" <dtallent@NOTEarthlink.net> wrote in message
news:eJkIfobzFHA.904@tk2msftngp13.phx.gbl...
> My code refers to the columns by name. The name was defined during design
> time. I have asked about this before, but the suggestions did not work
> out.
> I am using VFP 8 SP 1
>
> Some of my customers are getting errors when they open screens with grids
> on
> them. The code might say:
> this.Grid1.col_code.setfocus()
>
> The code crashes because when the grid was created it named the column
> "Column1"
> All of the names of the columns are lost.
>
> Someone told me this is because I am loosing the recordsource on the grid,
> after it has been assigned to the table. I was instructed to set the
> recordsource = "" before I rebuild the cursor it was associated with.
> This
> did not fix the problem. I am getting several customers with this
> problem.
>
> Does anyone have any suggestion that might fix this issue? Also, does
> anyone know if this is a known issue of Microsoft and if its fixed in
> VFP9?
>
> Thanks for your help
>
> --------------------------------
> Dan Tallent
>
>



Re: Grid columns are loosing names during runtime by Dennis

Dennis
Wed Oct 12 10:26:16 CDT 2005

This is a multi-part message in MIME format.

------=_NextPart_000_0134_01C5CF17.62560850
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Let us see if I can get the link correct this time:

http://weblogs.foxite.com/andykramek/archive/2005/03/19/174.aspx

Dennis Longfellow

"Dennis Longfellow" <drlongfellowxxx@xxx.directrac.com> wrote in message =
news:OaxgvLzzFHA.1252@TK2MSFTNGP09.phx.gbl...
> Dan,
>=20
> I know you have solved your problem, but may I propose an alternate=20
> solution. I use Andy Kramek's Using a "Safe Select" to preserve your =
grid=20
> to avoid similar problems. It can also be found on Andy's blog over =
at=20
> Foxite.com
>=20
> Hope that helps
>=20
> Dennis Longfellow
>=20
> "Dan Tallent" <dtallent@NOTEarthlink.net> wrote in message=20
> news:eJkIfobzFHA.904@tk2msftngp13.phx.gbl...
>> My code refers to the columns by name. The name was defined during =
design
>> time. I have asked about this before, but the suggestions did not =
work=20
>> out.
>> I am using VFP 8 SP 1
>>
>> Some of my customers are getting errors when they open screens with =
grids=20
>> on
>> them. The code might say:
>> this.Grid1.col_code.setfocus()
>>
>> The code crashes because when the grid was created it named the =
column
>> "Column1"
>> All of the names of the columns are lost.
>>
>> Someone told me this is because I am loosing the recordsource on the =
grid,
>> after it has been assigned to the table. I was instructed to set =
the
>> recordsource =3D "" before I rebuild the cursor it was associated =
with.=20
>> This
>> did not fix the problem. I am getting several customers with this=20
>> problem.
>>
>> Does anyone have any suggestion that might fix this issue? Also, =
does
>> anyone know if this is a known issue of Microsoft and if its fixed in =

>> VFP9?
>>
>> Thanks for your help
>>
>> --------------------------------
>> Dan Tallent
>>
>>=20
>=20
>
------=_NextPart_000_0134_01C5CF17.62560850
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial size=3D2>Let =
us see if I can=20
get the link correct this time:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://weblogs.foxite.com/andykramek/archive/2005/03/19/174.aspx"=
>http://weblogs.foxite.com/andykramek/archive/2005/03/19/174.aspx</A></FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Dennis Longfellow</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Dennis Longfellow" &lt;</FONT><A=20
href=3D"mailto:drlongfellowxxx@xxx.directrac.com"><FONT face=3DArial=20
size=3D2>drlongfellowxxx@xxx.directrac.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;=20
wrote in message </FONT><A=20
href=3D"news:OaxgvLzzFHA.1252@TK2MSFTNGP09.phx.gbl"><FONT face=3DArial=20
size=3D2>news:OaxgvLzzFHA.1252@TK2MSFTNGP09.phx.gbl</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; Dan,<BR>&gt; =
<BR>&gt; I know=20
you have solved your problem, but may I propose an alternate <BR>&gt;=20
solution.&nbsp; I use Andy Kramek's Using a "Safe Select" to preserve =
your grid=20
<BR>&gt; to avoid similar problems.&nbsp; It can also be found on Andy's =
blog=20
over at <BR>&gt; Foxite.com<BR>&gt; <BR>&gt; Hope that helps<BR>&gt; =
<BR>&gt;=20
Dennis Longfellow<BR>&gt; <BR>&gt; "Dan Tallent" &lt;</FONT><A=20
href=3D"mailto:dtallent@NOTEarthlink.net"><FONT face=3DArial=20
size=3D2>dtallent@NOTEarthlink.net</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote in=20
message <BR>&gt; </FONT><A=20
href=3D"news:eJkIfobzFHA.904@tk2msftngp13.phx.gbl"><FONT face=3DArial=20
size=3D2>news:eJkIfobzFHA.904@tk2msftngp13.phx.gbl</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt; My code refers to the columns by name.&nbsp; =
The name was=20
defined during design<BR>&gt;&gt; time.&nbsp; I have asked about this =
before,=20
but the suggestions did not work <BR>&gt;&gt; out.<BR>&gt;&gt; I am =
using VFP 8=20
SP 1<BR>&gt;&gt;<BR>&gt;&gt; Some of my customers are getting errors =
when they=20
open screens with grids <BR>&gt;&gt; on<BR>&gt;&gt; them.&nbsp; The code =
might=20
say:<BR>&gt;&gt; this.Grid1.col_code.setfocus()<BR>&gt;&gt;<BR>&gt;&gt; =
The code=20
crashes because when the grid was created it named the =
column<BR>&gt;&gt;=20
"Column1"<BR>&gt;&gt; All of the names of the columns are=20
lost.<BR>&gt;&gt;<BR>&gt;&gt; Someone told me this is because I am =
loosing the=20
recordsource on the grid,<BR>&gt;&gt; after it has been assigned to the=20
table.&nbsp;&nbsp; I was instructed to set the<BR>&gt;&gt; recordsource =
=3D ""=20
before I rebuild the cursor it was associated with. <BR>&gt;&gt;=20
This<BR>&gt;&gt; did not fix the problem.&nbsp; I am getting several =
customers=20
with this <BR>&gt;&gt; problem.<BR>&gt;&gt;<BR>&gt;&gt; Does anyone have =
any=20
suggestion that might fix this issue?&nbsp; Also, does<BR>&gt;&gt; =
anyone know=20
if this is a known issue of Microsoft and if its fixed in <BR>&gt;&gt;=20
VFP9?<BR>&gt;&gt;<BR>&gt;&gt; Thanks for your =
help<BR>&gt;&gt;<BR>&gt;&gt;=20
--------------------------------<BR>&gt;&gt; Dan =
Tallent<BR>&gt;&gt;<BR>&gt;&gt;=20
<BR>&gt; <BR>&gt;</FONT></BODY></HTML>

------=_NextPart_000_0134_01C5CF17.62560850--


Re: Grid columns are loosing names during runtime by Dan

Dan
Thu Oct 13 06:31:04 CDT 2005

This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C5CFC8.11A34A10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The change I have made works on my system. It has been difficult to =
reproduce the problem my customers were experiencing. I know these =
errors are occuring because the error trap mechanism I wrote into the =
project sends the details of the errors to one of our servers. =20

I will need to release this new method to see if the problem is truly =
fixed. If not, I will be on the hunt for additional help. I'll take a =
look at your link to make sure it doesn't go away.

Thanks

Dan
=20


"Dennis Longfellow" <drlongfellowxxx@xxx.directrac.com> wrote in message =
news:OxZ5MF0zFHA.2008@TK2MSFTNGP10.phx.gbl...
Let us see if I can get the link correct this time:

http://weblogs.foxite.com/andykramek/archive/2005/03/19/174.aspx

Dennis Longfellow

"Dennis Longfellow" <drlongfellowxxx@xxx.directrac.com> wrote in =
message news:OaxgvLzzFHA.1252@TK2MSFTNGP09.phx.gbl...
> Dan,
>=20
> I know you have solved your problem, but may I propose an alternate=20
> solution. I use Andy Kramek's Using a "Safe Select" to preserve =
your grid=20
> to avoid similar problems. It can also be found on Andy's blog over =
at=20
> Foxite.com
>=20
> Hope that helps
>=20
> Dennis Longfellow
>=20
> "Dan Tallent" <dtallent@NOTEarthlink.net> wrote in message=20
> news:eJkIfobzFHA.904@tk2msftngp13.phx.gbl...
>> My code refers to the columns by name. The name was defined during =
design
>> time. I have asked about this before, but the suggestions did not =
work=20
>> out.
>> I am using VFP 8 SP 1
>>
>> Some of my customers are getting errors when they open screens with =
grids=20
>> on
>> them. The code might say:
>> this.Grid1.col_code.setfocus()
>>
>> The code crashes because when the grid was created it named the =
column
>> "Column1"
>> All of the names of the columns are lost.
>>
>> Someone told me this is because I am loosing the recordsource on =
the grid,
>> after it has been assigned to the table. I was instructed to set =
the
>> recordsource =3D "" before I rebuild the cursor it was associated =
with.=20
>> This
>> did not fix the problem. I am getting several customers with this=20
>> problem.
>>
>> Does anyone have any suggestion that might fix this issue? Also, =
does
>> anyone know if this is a known issue of Microsoft and if its fixed =
in=20
>> VFP9?
>>
>> Thanks for your help
>>
>> --------------------------------
>> Dan Tallent
>>
>>=20
>=20
>
------=_NextPart_000_000B_01C5CFC8.11A34A10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1515" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>The change I have made works on my=20
system.&nbsp;&nbsp;&nbsp;It has been difficult to reproduce the problem =
my=20
cust</FONT><FONT face=3DArial size=3D2>omers were =
experiencing.&nbsp;&nbsp;&nbsp;I=20
know these&nbsp;errors are occuring because the error =
trap&nbsp;mechanism I=20
wrote into the project sends the details of the errors&nbsp;to&nbsp;one =
of our=20
servers.&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I will need to release this&nbsp;new =
method to see=20
if the problem is truly fixed.&nbsp; If not, I will be on the hunt for=20
additional help.&nbsp;&nbsp; I'll&nbsp;take a look at your link to make=20
sure&nbsp;it doesn't go&nbsp;away.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Dan</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV>
<DIV>"Dennis Longfellow" &lt;<A=20
href=3D"mailto:drlongfellowxxx@xxx.directrac.com">drlongfellowxxx@xxx.dir=
ectrac.com</A>&gt;=20
wrote in message <A=20
href=3D"news:OxZ5MF0zFHA.2008@TK2MSFTNGP10.phx.gbl">news:OxZ5MF0zFHA.2008=
@TK2MSFTNGP10.phx.gbl</A>...</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2>Let us see if I=20
can get the link correct this time:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
=
href=3D"http://weblogs.foxite.com/andykramek/archive/2005/03/19/174.aspx"=
>http://weblogs.foxite.com/andykramek/archive/2005/03/19/174.aspx</A></FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Dennis Longfellow</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Dennis Longfellow" &lt;</FONT><A=20
href=3D"mailto:drlongfellowxxx@xxx.directrac.com"><FONT face=3DArial=20
size=3D2>drlongfellowxxx@xxx.directrac.com</FONT></A><FONT =
face=3DArial=20
size=3D2>&gt; wrote in message </FONT><A=20
href=3D"news:OaxgvLzzFHA.1252@TK2MSFTNGP09.phx.gbl"><FONT face=3DArial =

size=3D2>news:OaxgvLzzFHA.1252@TK2MSFTNGP09.phx.gbl</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; Dan,<BR>&gt; =
<BR>&gt; I=20
know you have solved your problem, but may I propose an alternate =
<BR>&gt;=20
solution.&nbsp; I use Andy Kramek's Using a "Safe Select" to preserve =
your=20
grid <BR>&gt; to avoid similar problems.&nbsp; It can also be found on =
Andy's=20
blog over at <BR>&gt; Foxite.com<BR>&gt; <BR>&gt; Hope that =
helps<BR>&gt;=20
<BR>&gt; Dennis Longfellow<BR>&gt; <BR>&gt; "Dan Tallent" =
&lt;</FONT><A=20
href=3D"mailto:dtallent@NOTEarthlink.net"><FONT face=3DArial=20
size=3D2>dtallent@NOTEarthlink.net</FONT></A><FONT face=3DArial =
size=3D2>&gt; wrote=20
in message <BR>&gt; </FONT><A=20
href=3D"news:eJkIfobzFHA.904@tk2msftngp13.phx.gbl"><FONT face=3DArial=20
size=3D2>news:eJkIfobzFHA.904@tk2msftngp13.phx.gbl</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>&gt;&gt; My code refers to the columns by name.&nbsp; =
The name=20
was defined during design<BR>&gt;&gt; time.&nbsp; I have asked about =
this=20
before, but the suggestions did not work <BR>&gt;&gt; out.<BR>&gt;&gt; =
I am=20
using VFP 8 SP 1<BR>&gt;&gt;<BR>&gt;&gt; Some of my customers are =
getting=20
errors when they open screens with grids <BR>&gt;&gt; on<BR>&gt;&gt;=20
them.&nbsp; The code might say:<BR>&gt;&gt;=20
this.Grid1.col_code.setfocus()<BR>&gt;&gt;<BR>&gt;&gt; The code =
crashes=20
because when the grid was created it named the column<BR>&gt;&gt;=20
"Column1"<BR>&gt;&gt; All of the names of the columns are=20
lost.<BR>&gt;&gt;<BR>&gt;&gt; Someone told me this is because I am =
loosing the=20
recordsource on the grid,<BR>&gt;&gt; after it has been assigned to =
the=20
table.&nbsp;&nbsp; I was instructed to set the<BR>&gt;&gt; =
recordsource =3D ""=20
before I rebuild the cursor it was associated with. <BR>&gt;&gt;=20
This<BR>&gt;&gt; did not fix the problem.&nbsp; I am getting several =
customers=20
with this <BR>&gt;&gt; problem.<BR>&gt;&gt;<BR>&gt;&gt; Does anyone =
have any=20
suggestion that might fix this issue?&nbsp; Also, does<BR>&gt;&gt; =
anyone know=20
if this is a known issue of Microsoft and if its fixed in <BR>&gt;&gt; =

VFP9?<BR>&gt;&gt;<BR>&gt;&gt; Thanks for your =
help<BR>&gt;&gt;<BR>&gt;&gt;=20
--------------------------------<BR>&gt;&gt; Dan=20
Tallent<BR>&gt;&gt;<BR>&gt;&gt; <BR>&gt; <BR>&gt;</FONT>=20
</BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000B_01C5CFC8.11A34A10--