Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4690 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

When running the script GetUSBKEYname (see down below) the program stops at the command line

set USBname to cell "vgUSBKEYTHENAME" of current Record

and display the following Error message Object not found Unknown Error : -1728

However, when going to Manage Database I can see the variable name vgUSBKEYTHENAME. Is there something else I must do to register a field for it to be found when calling it in Perform AppleScript.

THANKS in ADVANCE!

Daniel

Commande: GetUSBKEYname

Set Variable [ $$USBKEYNAME; Value:100004 ]

Go to Layout [ “@Preferences” (Preferences) ]

Replace Field Contents [ Preferences::vgUSBKEYTHENAME; Replace with calculation: $$USBKEYNAME ] [ No dialog ]

Show Custom Dialog [ Title: "vgUSBKEYNAME"; Message: Preferences::vgUSBKEYTHENAME; Buttons: “OK” ]

Perform AppleScript [ Native AppleScript: set USBname to cell "vgUSBKEYTHENAME" of current Record

display dialog "USBKEY: " & USBname ]

Posted

In reading further in the forum, I've found the answer to my question.

Rather than writing set USBname to cell "vgUSBKEYTHENAME" of current Record

it is suggested to write set USBname to cell "vgUSBKEYTHENAME" of table "Preference"

This topic is 4690 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.