Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I append without opening the edit window?
Message
De
28/06/2001 09:50:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/06/2001 13:08:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00524283
Message ID:
00524653
Vues:
18
>>I want to make a copy of a record in a table and add it to the same table. I know that I can set carry on and just use the append command to do this but it opens the edit window. The only way to append without opening the edit window that I know of is to use append blank but then I have to use replace commands to fill the blank fields. How can I append without opening the edit window?
>>
>>Thanks in advance,
>>Justin
>
>select mytable
>scatter memvar memo
>insert into myTable from memvar
>
>Beware with PKs.
>Cetin

Better yet, use the NAME clause. Adapting the example above:
select mytable
scatter memvar memo name loRecord
loRecord.MyField1 = <some specific value>
...
append blank
* if a PK is assigned automatically (default value) when inserting a record:
loRecord.MyPK = MyPk
*
gather name loRecord
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform