Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms include in APP
Message
From
28/07/1999 07:46:50
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00246963
Message ID:
00247043
Views:
24
I see the problem. I call a library procedure when I want a form loaded, it checks to see if the form is already loaded. If it is then this form is pulled to the top so that the user can continue using it. If it is not, then this procedure calls the form. This procedure could be changed to pass the results of the check for the open form back and I could have logic to load the form or activiate it in the calling code.

However I do have a second question. Do the called forms need to be in the default directory? I have programs for different applications in different directories. In the library procedure I use the following code, where the xPath and xFrmName are passed parameters.

lc_FullName = m.xPath + m.xFrmName
do form (m.lc_FullName)

If memory serves me correctly, it seems that I had a problem trying to call report forms with just the form name as you suggested (no varaibles) and had to append the path to get it to work correctly.


>How are you invoking the forms and reports? It should be something like the following without any paths.
>
>DO FORM frmNormForm
>
>>When I build my APP and copy it to a directory for testing, it will not run unless I have the SCX and FRX files in the directory. When I look at the files tab on the project, it says that the form is included. Why would it be looking for the from as a seperate file?
____________________________________________

Norm Peterson

It's a dog eat dog world out there,
and I'm wear'n milk bone underware!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform