>Hello Cetin, I took a look at the unde program you suggested but it's not what I require. What it does is generate code to open tables and set relations, what my code "did" was generate class definitions for all de objects e.g.
>
>if I had a view called view_claims in my forms de, my program would create a prg file containing the code below, which enabled me to specify what DE and cursor class I wished to use
>
>
>Define Class MyDEClass as PK_VFPDEBase
> InitialSelectedAlias = "view_claims"
> Name = "PKDataenvironment"
> Function Init()
> This.NewObject("CursorClaims","pkCSRUpdate")
> With This.CursorClaims
> .Comment = "Claim Headers"
> .Alias = "view_claims"
> .BufferModeOverride = 5
> .Database ="employee.dbc"
> .CursorSource = "view_claims"
> .Name = "CursorClaims"
> EndWith
> DoDefault()
> EndFunc
>EndDefine
>
>
>I suppose I better get coding as I've got lots of forms to do, thanks for your help
I didn't check them but I think Nancy's link should be the one.
Cetin