Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browse Fields with ClassLibs & disappearing Class Column
Message
From
20/02/2007 07:48:36
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Browse Fields with ClassLibs & disappearing Class Column
Miscellaneous
Thread ID:
01197216
Message ID:
01197216
Views:
67
Hi All,

I got a funny result recently when using Browse Field to hack vcx-es. What works, is (I simplified the example):
Use MyClasslib.VCX
m.lcBrowseWindowName = Alias()
Browse Nowait Fields ;
  objname   :20,;
  Class     :20,;
  classloc  :15,;
  BaseClass :20,;
  Parent    :20 ;
  Name oBr
oBr.SetAll("DynamicBackColor", "Iif( reserved1 = 'Class', RGB(0,255,255), RGB(255,255,255))", "column")
Activate Window &lcBrowseWindowName
but the Memo fields just contain the word Memo. As I wanted to have the contents of the Memo Fields displayed in the textboxes, I tried it with
Use MyClasslib.VCX
m.lcBrowseWindowName = Alias()
Browse Nowait Fields ;
  objname   = Alltrim(objname)   :20,;
  class     = Alltrim(Class)     :20,;
  classloc  = Alltrim(classloc)  :15,;
  baseclass = Alltrim(BaseClass) :20,;
  parent    = Alltrim(Parent)    :20 ;
  Name oBr
oBr.SetAll("DynamicBackColor", "Iif( reserved1 = 'Class', RGB(0,255,255), RGB(255,255,255))", "column")
Activate Window &lcBrowseWindowName
it works except that all at a sudden, the column Class disappeared. Does anybody have any idea, why it disappeared and how I can convince the second Browse to show the Class-column as well?

Any help welcome!

Hans
Next
Reply
Map
View

Click here to load this message in the networking platform