Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 To: Bhushan Sahni
  Where is Bhushan Sahni?
 Jabalpur/Mumbai
 India
 Bhushan Sahni
 Tags
Subject: RE: Pack a Cursor
Thread ID: 209217 Message ID: 209256 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Databases, Tables and SQL Server
Date: Friday, December 26, 2008 12:52:19 PM         
   


> >
> > I already told u anyway try this
> >
> > 
> > create cursor crsTemp ( name c(10))
> > insert into crsTemp values ("AAAAAA")
> > insert into crsTemp values ("AAAAAA")
> > insert into crsTemp values ("AAAAAA")
> > insert into crsTemp values ("AAAAAA")
> > go 2
> > delete
> > BROWSE
> > 
> > SELECT * FROM CrsTemp WHERE NOT DELETED() INTO CURSOR CrsTemp ReadWrite
> >  SELECT CrsTemp
> >  GOTO 2
> >  
> >  BROWSE
> >  
> > 

> > As koen said its not good to use recno() for any reference but some time you need it too :) better add a id field in cursor and replace that field with your own recno! with scan/endscan by set deleted on!
> >
> > Anil
> > My Blog
>
> Thanks Anil,
>
> that problem is solved but then another problem has arised that this cursor was a recordsource to grid and I hope rest need not to be explained.
>
> Regards
> Bhushan Sahni
> Millenium Softwares
> bhushan_sahni@yahoo.com
>
> Visual Foxpro a dream house for developers

Move the record pointer to whereever you want it to be. Then use

YourGrid.SetFocus
?YourGrid.ActiveRow

Regards
Tushar

ENTIRE THREAD

Pack a Cursor Posted by Bhushan Sahni @ 12/26/2008 7:40:57 AM
RE: Pack a Cursor Posted by Anil Sharma @ 12/26/2008 8:49:07 AM
RE: Pack a Cursor Posted by Bhushan Sahni @ 12/26/2008 9:11:43 AM
RE: Pack a Cursor Posted by Koen Piller @ 12/26/2008 9:20:54 AM
RE: Pack a Cursor Posted by Anil Sharma @ 12/26/2008 9:31:03 AM
RE: Pack a Cursor Posted by Bhushan Sahni @ 12/26/2008 10:17:38 AM
RE: Pack a Cursor Posted by Anil Sharma @ 12/26/2008 10:22:39 AM
RE: Pack a Cursor Posted by Bhushan Sahni @ 12/26/2008 10:28:10 AM
RE: Pack a Cursor Posted by Anil Sharma @ 12/26/2008 10:46:03 AM
RE: Pack a Cursor Posted by Stefan Wuebbe @ 12/26/2008 11:21:12 AM
RE: Pack a Cursor Posted by Bhushan Sahni @ 12/27/2008 6:04:30 AM
RE: Pack a Cursor Posted by tushar @ 12/26/2008 12:52:19 PM
RE: Pack a Cursor Posted by Koen Piller @ 12/26/2008 8:48:53 AM
RE: Pack a Cursor Posted by HYDER ZAMAN @ 12/26/2008 9:31:13 AM
RE: Pack a Cursor Posted by Anil Sharma @ 12/26/2008 9:32:35 AM
RE: Pack a Cursor Posted by Prajeesh Nair @ 12/26/2008 12:52:25 PM