Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning 'Display Class' to default
Message
From
25/09/1997 19:26:23
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051592
Message ID:
00051696
Views:
39
>>Back when I was young and foolish, I entered the type of control (TextBox, Spinner, etc.) that I wanted to display for many of the fields in my tables rather than leaving them as . These are known as the "Display Class" and can be seen in the bottom left corner of the MODI STRU screen.
>>
>>Since then I learned about subclassing (TextBox -> MyTextBox) and how to get VFP to point to them through tools/options/field mapping. Life is good except I now realize that the "Display Class" version is overriding my field mapping, and I want to get rid of the Display Class version.
>>
>>It seems that they are stored in the DBC in the "Property" field in a Memo. OK so far, but the Memo structure seems to be undocumented, and it holds the field comment and other things as well as some unprintable characters. I can make all the changes manually (returning TextBox to ) through MODI STRU but I really don’t want to even think about that.
>>
>>Any thoughts on how to set all the "Display Class" information back to would be welcome.
>>
>>Bob
>
>Bob, after making a backup (or 2) of your DBC files, open the DBC as a table (USE MyDBC.DBC) and then use the STRTRAN() function to do a mass change.
>
>HTH
>Barbara


Thanks for responding Barbara.

That was my original plan, and may yet work, but I'm blocked with the replacement part. To put in a instruction, we won't be using the word "Default" itself. What's needed is either some unprintable characters representing Default, or nothing at all (I don't yet know which). I tried to figure out what was being used, but as there are more of those little boxes (the unprintable characters) immediately following where the Display Class is stored, I wasn't sure that reverse engineering this one was possible.

Without documentation on the structure of the Memo field in MyDBC.Property we may be blocked from traditional data manipulation approaches such as STRTRAN(). I'm still working on it, but would welcome any more thoughts.

Bob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform