Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00572149
Message ID:
00572165
Views:
43
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi everybody,
>>>
>>>When I need to create a form based on some table I use the following trick:
>>>
>>>1) I place table in DE (when I'm done, I remove it, because I always prefer to open them programatically).
>>>
>>>2) I drag and drop fields.
>>>
>>>3) I rename labels, fields, set autosize for labels to .t.
>>>
>>>4) I open form as a table and change classes from base classes to my classes.
>>>
>>>3 and 4 are tedious... I probably can adjust field mappings in Option/Tools, but I don't want to make them permanently, because my classes could change, etc.
>>>
>>>Do you know another trick to simply create forms?
>>>
>>>Thanks in advance.
>>
>>For 3 and 4 you could simply click on any control on form go to command window and run your nonregistered builder (or even write select block and execute) :
>>
>>aselobj(aForm,1)
>>aForm[1].Setall('Autosize',.T.)
>>etc
>>
>>Cetin
>
>Oops. I used this technique for grids, but haven't thought about using it here... I'll probably write a simple Builder to convert names, classes, etc.

Are you sure that it is more work to remap the classes from time to time, then manually change them hacking the SCX?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform