Xbasic

A5_CREATE_SHORTCUT Function

IN THIS PAGE

Syntax

C a5_create_shortcut(P pVars [,C restriction_flags [,C title [,L lInstall]]])

Arguments

pVars

A dot variable that saves the values set in the Create Shortcut Genie dialog box. You may pass this populated variable back into the Create Shortcut Genie dialog box to configure it.

restriction_flags

Optional. "N" = do not create shortcut, "U" = no error messages or confirmation dialogs, "P" = no paths

title

Optional. Default = Create Shortcut Genie. The title of the dialog box. Character

lInstall

Logical. Optional. Default = .F. , .T. = When called from the installation package creator.

Description

Bring up the shortcut genie. restriction_flags are "N" (Don't create shortcut), "U" (No UI Message Boxes), "P" (No paths). lInstall should be .T. if calling from the install package creator.

The A5_CREATE_SHORTCUT() function displays the Create Shortcut Genie dialog box. You can also create a shortcut by clicking Tools > Create Shortcut....

Example

This approach allows you to read the values that are set.

dim ptr as P
a5_create_shortcut(ptr)
? ptr
= A_DLG_BUTTON = ""
BACKSLASH = "\"
CUSTOMICON = 2.000000
CUSTOMSPLASHSCREEN = 3.000000
CUSTOMTITLE = 2.000000
databasedrive = "C:"
databasename = "Travel Time"
databasepath = "C:\Databases\Travel Time\"
...

Example

This approach displays the Create Shortcut Genie dialog box and creates the desired shortcut.

addin.run("a5_create_shortcut")

Limitations

Desktop applications only.

See Also