-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Stuart Dunkeld
Sent: 31 July 2009 23:16
To: ProFox Email List
Subject: Re: Problem using Arg command bars

> taItems[ lnCount, 3] = "ThisForm.EditPo(cPoNo)"
> I have created a method in the form called EditPo and placed:
>
> LParameters cPoNo
> MessageBox("Edit this PO no " + cPoNo)
>
> My problem is that this gives an error "Cannot find cPoNo"
>
> Any Ideas

Your trouble is perhaps that cPoNo is not defined when the code in
aItems[ lnCount, 3] is executed.
I think you want to send the actual value itself:
taItems[ lnCount, 3] = [ThisForm.EditPo('] + cPoNo + [')] && where
cPoNo contains purchase invoice number
this should equate to something like
taItems[ lnCount, 3] = "ThisForm.EditPo('PO123')"

--stuart

Hi Stuart

Thank you very much.  Problem solved.

I should have thought of that the clue to me being that when I declared
cPoNo Public in main.prg  the error disappeared but it passed the same
PO no whichever one you clicked on.

Cheers

Peter
Peter Hart Computers



_______________________________________________
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/a57fa4cf19531343a2ee11b57db8e3af04c...@server.peterhartcomputers.local
** 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