>I've pulled a real boner!
>
>I've set maxwidth and maxLength to apparently a neg number and I cant modi the screen to change it. It wont open.
>
>I've tried changing the .sct but that just screwed it up more. How can I change a form without using "modi form xx"?
>
>Is there a way or do I have to delete it and start again--that I dont want to do!
Ronald,
I don't know a way to make it 'not open' by playing Max* properties. You can't set them to negative values (except default -1). Even if you did you could set them back from PEM sheet. If it's really a problem that you can't handle from there:
As Einar said you can open and modify its table.
use xx.scx
browse for lower(BaseClass) = 'form' && Check properties
use
Another alternative is to set it from command window.
Modify Form xx
-Go to command window and get a reference to form to set its props. ie:top,left
1)
aSelObj(aObj,1)
aObj[1].Left = 0
aObj[1].Top = 0
2)
_vfp.Objects(1).Objects(1).Left = 0
_vfp.Objects(1).Objects(1).Top = 0
If your form is not opening at all as a response to 'modi form' command then probably it's rendered useless. You can get a backup and check with:
use xx.scx
or:
do home()+'tools\hexedit\hexedit' with 'xx.scx' && and 'xx.sct'
If with hexedit what you see is all 00 00 ... sequences don't waste your time, it's gone. If you're using some kind of source control VFP automatically creates text version of your form (named xx.sca). Search for it. If you find you can recreate your form from it with scctext.prg.
Cetin