Can anyone point me to some code in Help or elsewhere which will give me a
start on how to add an object to a form?  
THISFORM.AddObject  
You might want to look at using a GRID for this. You can put a combobox in a
grid.  

Where should I put the code on the form - Init?   
Have the form.init call form.mycustommethod, and maintain your code there.
(events should always call methods methodology)  

Each combobox will use the same array or cursor of standard field names -
can I use an array property of the form?  
Yes  
THISFORM.AddProperty("ArrayProperty[1]")  
combobox.RowSource = "THISFORM.ArrayProperty"     

HTH,
Tracy

-----Original Message-----
From: John Weller
Sent: Wednesday, April 22, 2009 4:08 PM

I have always created my forms at design time using the Form Designer.  I
now need to create and populate a form on the fly with an unknown number of
labels and comboboxes.  The app will be importing a text file with a header
row showing the fields in the file.  There may be any number of fields (up
to say 30) and they may be in any order.  I need to display each field with
an associated combobox containing a list of standard field names to allow
the user to match the fields in the header with those in the standard list.
I haven't a clue where to start <g>.  I am proposing to create a form in the
Form Designer initially with a title and buttons then add the rest with code
at run time.  Can anyone point me to some code in Help or elsewhere which
will give me a start on how to add an object to a form?  Where should I put
the code on the form - Init?  Each combobox will use the same array or
cursor of standard field names - can I use an array property of the form?

TIA

John Weller
01380 723235
07976 393631 


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/000d01c9c387$00ef64e0$02ce2e...@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to