Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Basic Q - Inputting and retrieving Data from a table
Message
De
08/11/2004 13:17:29
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/11/2004 12:43:21
Carl Dobson
Reference Point Computers
Overbury, Tewks, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00959255
Message ID:
00959268
Vues:
10
>Project has: 1xForm, 6xtext boxes, 1xSave button, 1xExit & 1 Table.
>I need to write a name in the text bars, then when the cmdbutton is pressed it will write the 6 textbox.values into the 6 fields in the table.
> The table (company) is in the Data Enviroment of the form I am unsure what I need to do next...

* Button click
1)
* Field names from your table, textboxes from form mapping one to one
with thisform
  insert into company 
  (field1, ... ,field6) values ;
  (.txt1.Value, ... , .txt6.Value)
endwith
2)
* Instead of using textboxes you drag&dropped
* fields from DE on form with right mouse and selected "Create multiple..."
* and set compnay table buffermodeoverride=5
TableUpdate(2,.t.,"company")
3) There are more effective ones but longer in code. Later.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform