Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# - Add and Update Records
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
C# - Add and Update Records
Miscellaneous
Thread ID:
01309187
Message ID:
01309187
Views:
78
Next newby question.

I want to create a basic data entry form. In past VFP applications I accepted the PK of the record in the Init of
the form. If the PK was passed, I loaded the record and entered Edit Mode. If no PK was passed, I assumed Add Mode.
I don't see why I cannot do the same in my C# app:
frmUser oUser = new frmUser();

// If creating a new user...
oUser.SetupForm();

// If opening an existing user...
oUser.SetupForm(iUserKey);

oUser.ShowDialog();
I'm open to other ideas on this.

Next, when I am going into Add Mode, do I first create a data set, then add a row? Or is there some other way.
An example would be helpful.

Many thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform