Paul,
>I'm trying to create a report that has an associated form. I've created the form, created the report (basically followed the whole section on creating reports). When I run the report, I get the following error:
>
>In the method:
>
>ocnavtoolbar.cmdfirst.setenabled
>
>Line:
>
>lcMenuBars = SUBSTR(lcMenuBars, lnLength + 1)
>
>Error:
>
>"Cannot access characters beyond string"
You are getting an error in the toolbar logic which indicates that you are probably using a non-modal form as your "view parameter form" (non-modal forms have their cToolbar property empty by default). You need to use a modal form class instead. Check the section "Creating the View Parameter Input Form" in the Mere Mortals Developer's Guide for details.
> I've got the feeling this might be a problem relating to some include file not being loaded, but I don't know that for sure. Actually, I've been having a lot of unexplained problems with this entire project. I thought I had them all fixed though.
If you have any other specific questions, let us know.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com