Unperson Monday November 23 2026, 12:32 am
We want to place a variable at the label. We did this way:
-label ${::label.of.directory1}The label is defined in the following code:
proc Read.label.of.directory1 {} {
# STEP 1 — LOCATE Preferences.txt
set preferencesFile [file join [file dirname $::icon_dir] Preferences Preferences.txt]
# STEP 2 — INITIALIZE LABEL VARIABLE
set ::label.of.directory1 ""
# STEP 3 — READ LABEL OF DIRECTORY 1
set labelResult [readMarkedBlock $preferencesFile "Label of directory 1"]
if {[lindex $labelResult 0]} {
set ::label.of.directory1 [string trim [lindex $labelResult 1]]
}
return}
The program does not recognize the variable.
We have been trying all sorts of things for a few hlurs but nohings works. (I am talking about the label above command in the menu)