Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen lock
Message
De
05/10/2005 06:45:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
04/10/2005 20:27:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01056105
Message ID:
01056185
Vues:
32
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform