I have several applications for a client, and decided to explore a simple menu, similar to the one found in the SAMPLES folder, called "FirstLook." In that file, after clicking the GETTING STARTED button, a menu appears, showing several buttons: Customers, Employees and ZipCodes. I believe this application calles the ZipCodes database (Application?) by clicking on that button.
So, I decided it would be a good idea to use that technique to call several applications for my client. I copied the code, and tried to use it to call the BUSINFO database. (This database is one of several for a school bus company, and stores data for each bus.)
The Add Data and Search window appears, titled "Bus Information". When I click either option, (Add Data, or Search), it will not call the database called BUSINFO.
I think I missed something. I want to use buttons for other databases such as Personnel, Payroll and Students, etc.; and was hoping to use a single menu to call each of these applications.
The BUSINFO program is a copy of the FirstLook sample, modified to call the Businfo application. (I am using version 2.0.3 Personal) Am I missing something very simple?
var vButton as String var vMenu as Int
// Ask the user what mode to enter // Position the choices over the clicked button PopupSelectPosition(4, @XPos(ThisElement) + 80, @YPos(ThisElement)) vButton = @PopupMenu("1. Search\\Update;2. Add", "BUS INFORMATION")
// Once the selection is made, run the menu tree command If vButton = "1. Search\Update" Then
{ vMenu = @SelectTreeItem(@Application + "!Forms!Search/Update!BUSINFO!BUSINFO")
} Else If vButton = "2. Add" { vMenu = @SelectTreeItem(@Application + "!Forms!Add Data!BUSINFO!BUSINFO") } ###END###
|