I don't know if anyone is interested, but I thought I'd give you an update.
After watching most of Bob Tabor's course (or perhaps that should be his 'sales spiel') on C# I dived right in.
Initial progress was actually blinding. I reached my first milestone of being able to create a self-updating application that could find new versions of itself on the web or locally on a LAN, could search for SQL servers, locate appropriate databases and even create the first inklings of a new database a little ahead of schedule.
Then I ground to a complete halt.
A simple three column table and a DataGridView. C# equivalent of the VFP grid.
The client is very, very keen to have a spreadsheet-like interface wherever possible - C# has a nice tool, and it has a 'NewRow' feature at the bottom, just like Access does... but it behaves very strangely to a VFP programmer. It took me a long, long time to understand that you have to think 'disconnected' from the database. It's like the whole model is based on allowing errors and then letting the database reject things when you commit them, rather than validating them and then being 99.99% sure that your data will be successfully written.
That is a gross over simplification, but it is how I was working.
Last night I had a little ephithemy though, and found a way to get the DataGridView to work like VFPs - writing back to the SQL db on (what seems like) a record by record basis. The only snag is that you need two unique fields to do it, the regular ID primary key (which the DataGridView doesn't want to give you when you add new records) and another unique element to do validation against.
I've not tested it against significant datasets yet - it may prove woefully slow - but for my first table it is working ok - I think...
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
After watching most of Bob Tabor's course (or perhaps that should be his 'sales spiel') on C# I dived right in.
Initial progress was actually blinding. I reached my first milestone of being able to create a self-updating application that could find new versions of itself on the web or locally on a LAN, could search for SQL servers, locate appropriate databases and even create the first inklings of a new database a little ahead of schedule.
Then I ground to a complete halt.
A simple three column table and a DataGridView. C# equivalent of the VFP grid.
The client is very, very keen to have a spreadsheet-like interface wherever possible - C# has a nice tool, and it has a 'NewRow' feature at the bottom, just like Access does... but it behaves very strangely to a VFP programmer. It took me a long, long time to understand that you have to think 'disconnected' from the database. It's like the whole model is based on allowing errors and then letting the database reject things when you commit them, rather than validating them and then being 99.99% sure that your data will be successfully written.
That is a gross over simplification, but it is how I was working.
Last night I had a little ephithemy though, and found a way to get the DataGridView to work like VFPs - writing back to the SQL db on (what seems like) a record by record basis. The only snag is that you need two unique fields to do it, the regular ID primary key (which the DataGridView doesn't want to give you when you add new records) and another unique element to do validation against.
I've not tested it against significant datasets yet - it may prove woefully slow - but for my first table it is working ok - I think...
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.