Create a ListBox at runtime.

slmaluwaslmaluwa Member Posts: 365
Hi
Is it possible to have a Combo Box filled at runtime?

Ex: I want to put the value of an array in a Combo on form at runtime?
dvT[1] := 'January-2008';
dvT[2] := 'February-2008';
dvT[3] := 'March-2008';
dvT[4] := 'April-2008';
dvT[5] := 'May-2008';
dvT[6] := 'June-2008';
dvT[7] := 'July-2008';
dvT[8] := 'August-2008';
dvT[9] := 'September-2008';
dvT[10] := 'October-2008';
dvT[11] := 'November-2008';
dvT[12] := 'December-2008';
"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."

Comments

  • matttraxmatttrax Member Posts: 2,309
    As far as I know it is not. The value for those controls is filled with the OptionString property which is not accessible through code.

    You'd have to fill in a temp table, do a lookup, and click ok for that.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    slmaluwa wrote:
    Every Problem in your hand, is an opportunity in disguise!!

    In your hand you have an opportunity to learn to do it the Navision way.

    Just populate a table with these values and drill down. Cars run great on round wheels, no need to try and invent better ones. :mrgreen:
    David Singleton
  • DenSterDenSter Member Posts: 8,305
    Cars run great on round wheels, no need to try and invent better ones. :mrgreen:
    He doesn't like the hubcaps on this ride. He wants the 22's, with the spinners 8)
Sign In or Register to comment.