Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Containers into a Form - Please Help!
Message
From
29/05/2001 04:49:50
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Adding Containers into a Form - Please Help!
Miscellaneous
Thread ID:
00512094
Message ID:
00512094
Views:
40
Hi all,

I'm dumb in OOP but I have to work on it now ;-( *sigh*

I have a form. I need to write a program to add some container objects into it(number of containers is depends on the form size), where each container contains another 3 textbox objects. All needs to be defined in runtime except the form itself. The content of the textboxs also needs to be updated every 5 seconds(so have to consider the ControlSource)..

I have made some simple code for practice, trying to add a label object into the form, but still fail :-(

this is my code:
  do form main && created in project
  main.addobject("Label_1", "RM_TYPE")
  main.show

  define class RM_TYPE as label
    Procedure init
      This.Caption = "Testing"
    Endproc
  enddefine
What should I do?

Also, is it possible to use "AddObject()" command in the Form's event codes(such as Init, load, activate... etc.)?

I'm having serious problem now, any help would be greatly appreciated.. Thank you very mcuh!!
error(503): file structure failure, signature file corrupted.
Next
Reply
Map
View

Click here to load this message in the networking platform