Probably nobody else is doing this, but I think I've encountered a bug in V6 build 2057.
This worked in V5, by the way.
I'm doing cooperative development with someone else, so I keep my code in a separate library from the main app.
I have a dispatch function that I call that gives me access to all my globals, etc.
I've built a custom menu and stored it in the main code library (same name as the database).
The custom menu uses xbasic to call my dispatch function. User clicks my Department custom menu, this code gets executed: ps_dispatch("depts").
ps_dispatch is just a function that takes the parameter passed, has a big select statement and opens files, forms, etc. based on value of parameter.
Problem is, it doesn't work. A simple routine to open a form, as in :Form.view(cLayout) inside my dispatch script executes without error, but doesn't open the form. It's not a flow or logic issue, it's like the menu operates in a different codespace from the functions in my library. I can see the code executing, but nothing happens. The variables all have values, all correct, no worky.
The exact same function call on a form button works fine.
So I moved the menu to my code library from the main one. Both code libraries are in the same folder. Opened and closed Alpha. Same result, code doesn't work.
I go to design the menu - menu is blank. Menu looks OK at runtime, but cannot be edited if it resides in a library other than the main one.
I created a new menu in the main code library, just in case my test menu is corrupt, with a single entry. Same problem, code executes, just doesn't do anything.
If I use a Global script from the menu to explicitly open the desired form, it works fine. I don't want to do that. I need to run through my dispatch script for a variety of reasons.
Anyone have any thoughts on what's going on here?
This worked in V5, by the way.
I'm doing cooperative development with someone else, so I keep my code in a separate library from the main app.
I have a dispatch function that I call that gives me access to all my globals, etc.
I've built a custom menu and stored it in the main code library (same name as the database).
The custom menu uses xbasic to call my dispatch function. User clicks my Department custom menu, this code gets executed: ps_dispatch("depts").
ps_dispatch is just a function that takes the parameter passed, has a big select statement and opens files, forms, etc. based on value of parameter.
Problem is, it doesn't work. A simple routine to open a form, as in :Form.view(cLayout) inside my dispatch script executes without error, but doesn't open the form. It's not a flow or logic issue, it's like the menu operates in a different codespace from the functions in my library. I can see the code executing, but nothing happens. The variables all have values, all correct, no worky.
The exact same function call on a form button works fine.
So I moved the menu to my code library from the main one. Both code libraries are in the same folder. Opened and closed Alpha. Same result, code doesn't work.
I go to design the menu - menu is blank. Menu looks OK at runtime, but cannot be edited if it resides in a library other than the main one.
I created a new menu in the main code library, just in case my test menu is corrupt, with a single entry. Same problem, code executes, just doesn't do anything.
If I use a Global script from the menu to explicitly open the desired form, it works fine. I don't want to do that. I need to run through my dispatch script for a variety of reasons.
Anyone have any thoughts on what's going on here?
Comment