Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Basic Q - Inputting and retrieving Data from a table
Message
From
08/11/2004 13:17:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/11/2004 12:43:21
Carl Dobson
Reference Point Computers
Overbury, Tewks, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00959255
Message ID:
00959268
Views:
9
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform