- This topic has 2 replies, 2 voices, and was last updated 15 years, 4 months ago by .
-
Topic
-
All, I have the following code
if {$type == “support”} {
set result [eval “SCRLibraryEDM_support::WriteEDMHeader” {$doctype $foldertype $foldername $filename $facname $acctno $servdate $mrn $docdescrip $processed}]
echo “<$result>”
}
[/code.but would rather do something like this:
[code]
set result [eval SCRLibraryEDM_$type::WriteEDMHeader {$doctype $foldertype $foldername $filename $facname $acctno $servdate $mrn $docdescrip $processed}]
[/codeBut when I do that I get a tcl error saying “type::WriteEDMHeader” is not a valid variable. Why is the substitution not working here? Can someone provide me some hints as to the correct syntax?
Thanks,
Jerry[/code][code]
if {$type == “support”} {
set result [eval “SCRLibraryEDM_support::WriteEDMHeader” {$doctype $foldertype $foldername $filename $facname $acctno $servdate $mrn $docdescrip $processed}]
echo “<$result>“
}
[/code.but would rather do something like this:
[code]
set result [eval SCRLibraryEDM_$type::WriteEDMHeader {$doctype $foldertype $foldername $filename $facname $acctno $servdate $mrn $docdescrip $processed}]
[/codeBut when I do that I get a tcl error saying “type::WriteEDMHeader” is not a valid variable. Why is the substitution not working here? Can someone provide me some hints as to the correct syntax?
Thanks,
Jerry[/code]
- The forum ‘Cloverleaf’ is closed to new topics and replies.