[color=Black][/color]Does "Goto" work to take you to a command button? I am using the following code:
var Z as int
if not @update then
{
z = @asynchshell("C:\Program Files\Sesame\Data\Sounds\Cannot Use Here.wav")
STOP
}
else
if status = "deceased"
{
z = @asynchshell("C:\Program Files\Sesame\Data\Sounds\Deceased.wav")
STOP
}
else
if record type = "companion"
and @isblank(Mail Name)
then
{
z = @asynchshell("C:\Program Files\Sesame\Data\Sounds\Companion.wav")
Goto Alt Record
STOP
}
else
AlternateDefaultPrinter("Auto HP LaserJet 5 - Envelopes")
Newpage(950,412)
PrintString("Spencer Wulwick (MVR)", 30, 25, 0, "Arial", 14, 0)
PrintString("210 South Hale Avenue", 30, @PageExtentY(), 0, "Arial", 14, 0)
PrintString("Tampa, FL 33609-3933", 30, @PageExtentY(), 0, "Arial", 14, 0)
PrintString(Mail Name, 450, 200, 0, "BArial", 16, 0)
PrintString(Street Address + " " + Apt, 450, @PageExtentY(), 0, "BArial", 16, 0)
PrintString(City + ", " + State + " " + Zip, 450, @PageExtentY(), 0, "BArial", 16, 0)
FinishPage()
RestoreDefaultPrinter()
The Alt Record has on entry programming on a Command Button that would take me to another specific record.
When on a record that should execute the "Goto", nothing happens. The focus remains on the current record.
This is the area of the above text, where the Goto should be executed:
if record type = "companion"
and @isblank(Mail Name)
then
{
z = @asynchshell("C:\Program Files\Sesame\Data\Sounds\Companion.wav")
Goto Alt Record