Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying scx files at run time
Message
From
28/04/1999 15:38:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Modifying scx files at run time
Miscellaneous
Thread ID:
00213162
Message ID:
00213162
Views:
59
My end users need to add/remove, position and resize a label, textbox and
combobox based objects in forms, change their controlsources.
Unfortunately, MODIFY FORM command will not work in standalone exe.

Previously, I stored those form object specification in separate table and
use this.addobject(), .top=, .controlsource= etc. in form init to create those objects.
However, controlsource binding seems to be very slow in vfp: it takes 4 seconds every time to open EACH invoice!

I studied the scx file and found that I need to add a record for each
object and set its properties in the properties memo field.
Also, last record in the scx file must be special, of type comment.

So I plan to make a program which allows user to add/remove fields by deleting and adding records in scx file.
I don't need to change events/methods, so there is no need to compile.

Is object instantion from scx file, without addobject, faster?
I discovered that special COMMENT record must be always last in scx file.
Are there some other restrictions to scx order?
Are there such kind of screen designer for available for end user?
Andrus
Next
Reply
Map
View

Click here to load this message in the networking platform