NAME

SetCurrentHoroscope

Display the common Windows OpenFile dialog, allowing you to choose an horoscope file
or open a existing horoscope file.

The selected horoscope become the active horoscope, and all Proastro TCL commands that need a valid horoscope will apply to this horoscope.

If several call to SetCurrentHoroscope are made, the active horoscope is the last selected one, except if a call to SetCurrentHoroscope with the -nh parameters is done.

USAGE

SetCurrentHoroscope [-nh | -path | -title ]

OPTIONS

-nh :
If specified, the horosope in position become the current horoscope.

-path :
If specified, the horosope file in is open and become the current horoscope.

-title :
If specified, become the open file dialog box title.

Note that character separator is / not \.

RETURN

1 on success, 0 on failure.

Example

set path "C:/dev/proastro/cpp/Nouveau dossier/Régnier_Patrick(2).xml"
if { ![SetCurrentHoroscope -path $path] } {
 PutTxt "Error opening horoscope"
}
PutTxt "Name: [Name]"

Output:
Name: Régnier

See also: RemoveHoroscope.