I know I had code years ago that did this but it apparently got mangled during computer transitions. The code below runs in the load event of a form but results in a blank form. The ,"parent = thisform line" is commented out because it causes a "Property PARENT is read-only" error..
FOR i = 1 TO 4 FOR j = 1 TO 10 oTextbox = CreateOBJECT("TextBox") WITH oTextbox .Name = "TextBox" + LTRIM(STR(i)) + LTRIM(STR(j)) .Left = (j - 1) * 10 .Top = (i - 1) * 20 .Width = 100 .Height = 20 .Value = "Data for cell " + LTRIM(STR(i)) + ", " + LTRIM(STR(j)) .Visible = .t. * .Parent = thisform ENDWITH ENDFOR ENDFOR What am I missing? Thanks in advance, Joe --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/cabqednw1rrzyn7show1lppcqpnahn6nchova3vvosmt0nfr...@mail.gmail.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.