Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy cursor to another new cursor for update the first o
Message
 
 
À
20/06/2011 18:12:59
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01515215
Message ID:
01515216
Vues:
53
>Hello comunity
>
>i need the correct syntax to copy my current cursor to another new one for changing some values and after that i wnat to replace the primary cursor values with the new ones.
>Exemple:
>my current cursor name is tempccf and i have one column value call vencido (varchar), the value in there is "Vencido !?", i want to create a new cursor named Mycurs like this:
>1.copy the structure of tempccf
>2.copy all the values of tempccf to my new cursor Mycurs
>3.update Mycurs.vencido with 'Vencido'
>4.replace all the records of my tempccf cursor with all the records of my new cursor Mycurs.
>
>I put just a simple field column, because if i understand the correct way to do that , i can change all kind of values.
>
>Note : if i type
>select tempccf
>brow
>
>I see all the records on my original cursor.
>
>Anyone could help me, because i try some coding , like:
>select tempccf
>copy stru to mycrs
>use mycrs
>append blan
>brow
>
>i VFP give me an error "File is in use" line 3.
>
>Best regards,
>Luis Santos
SELECT * FROM myOldCursor into cursor myNewCursor READWRITE && Copies structure and inserts all records
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform