>>>>Hello, I would like to use the form wizard to start a form on a dbf that has about 50 fields. This is so I do not manually have to create a slew of 50 textboxes & labels. Once the outlay is created, I want to customize it but it is from another class that doesn't allow me the freedom I would have if I manually created it. Example, I want to open a dbf, go to record 99 then run the form and have the form display record 99's data.
>>>
>>>After creating the form with wizard in init :
>>>
>>>select yourtable
>>>go 99
>>>
>>>Or better have a parameter in init :
>>>
>>>lparameters tcAlias,tnRec
>>>go tnRec in (tcAlias)
>>>
>>>*thisform.butoons.navrefresh() etc
>>>
>>>
>>>You could then call :
>>>
>>>do form with 'TableName', 99
>>>
>>>Cetin
>>
>>That may work, if I could get the hardcoded alias in each of the fields out of there, which is the dbf name that was used iduring the wizard.
>
>Tim,
>I just tried this and worked :
>
>
>lparameters tnRecno
>go tnRecno
>with ThisForm.BUTTONSET1
> .TopFile = .f.
> .EndFile = .f.
> .Navrefresh()
>endwith
>dodefault()
>
I called :
>do form myWizForm with 99
>and it went to rec 99.
>Cetin
I should have told you, I got rid of the buttonset. I handle those things other ways. Can this still work?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."