Hi James
I think you can do this a bit faster. Macro Substitution should be
avoided unless absolutely necessary. I'd avoid Parameter as a variable
name too. It's often recommended not to use reserved words as
fields/variables. What is the value of "value" when this line fires?
locvalue.caption=value+':'
Local x, i, Y, ti, t2, locvalue, loavalue
local Array laArray[1]
x= Filetostr(goapp.cinifile)
ntop=40
For i= 1 To Alines(laArray,m.x)
Y= laArray[m.i]
If Occurs('*',m.Y)>0 Or Empty(m.Y)
Loop
Endif
aValue=Left(m.Y,At('=',m.Y)-1)
Parameter=Substr(m.Y,At('=',m.Y)+1)
cvalue='c'+m.aValue
This.AddObject(m.cvalue,'label')
locvalue = eval(This.cvalue)
locvalue.caption=value+':'
locvalue.Top=ntop
locvalue.left=2
locvalue.Visible=.T.
This.AddObject(aValue,'itextbox')
loaValue = eval(this.aValue)
loaValue.Value=m.Parameter
loaValue.Top=m.ntop
loaValue.Visible=.T.
loaValue.Left=100
loaValue.Width=200
ntop=m.ntop+20
Endfor
Mike Yearwood
> 6. Re: What am I doing wrong? (James Roark)
> Message: 6
> Date: Tue, 06 May 2008 12:26:58 -0500
> From: James Roark <[EMAIL PROTECTED]>
> Subject: Re: What am I doing wrong?
> To: [EMAIL PROTECTED]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> Here is the whole routine - I am reading a ini file and parsing is, then
> adding objects (label and textbox) to the form (class in classlib) to
> edit then save. The form worked last week and I was just going to add
> something to the save method and BAM.
_______________________________________________
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/[EMAIL PROTECTED]
** 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.