Ignore:
Timestamp:
Dec 10, 2008, 1:05:15 PM (18 years ago)
Author:
Liván Ramírez Dorta <livanr68@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
de4a617
Parents:
2490d320
Message:

List of series at 'source' must be preceded by identifier 'Set' at proc 'Tol_SerieChart'

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@279 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/tolmethods.tcl

    r2490d320 r31db565  
    4949#/////////////////////////////////////////////////////////////////////////////
    5050  # cargamos la variable GCFFile de TOL
    51   set fileGCF [::tol::info variable [list Text GCFFile] ]
     51  set fileGCF [TclGetVar Text GCFFile]
    5252  if {![file exists $fileGCF]} {
    5353    set fileGCF {}
    … …  
    9494  # GCF
    9595  if {![string length $gcfFile]} {
    96     set gcfFile [::tol::info variable [list Text GCFFile]]
     96    set gcfFile [TclGetVar Text GCFFile]
    9797    if {[string length $gcfFile]} {
    9898      eval set gcfFile $gcfFile
    … …  
    102102    set gcfFile {}
    103103  }
    104 puts "GCF FILE: $gcfFile" 
     104  #puts "GCF FILE: $gcfFile" 
    105105  # Title
    106106  set wTitle $title
    … …  
    110110
    111111  # Create Group Series
    112   # ::tol::info variable returns a list [Grammar VariableName [numofelements "Elementos"] ... ]
    113   # so get the index 0 of the index 2
    114   set nsource [lindex [lindex [::tol::info variable [list Set $source]] 2] 0]
     112  #puts "Tol_SerieChart: source = $source"
     113  set nsource [lindex [TclGetVar Set $source] 0]
    115114  set lstSerie {}
    116   set i 1
    117   while {$i <= $nsource && $i <= 32 } {
    118     lappend lstSerie "$source $i"
    119         set i [expr $i+1]
     115  for {set i 1} {$i <= $nsource} {incr i} {
     116    lappend lstSerie "Set $source $i"
    120117  }
    121118  set sergrp tableserie[clock clicks]
    122 
    123119  set tl ""
    124120  if {[llength $lstSerie]} {
    125121      # MDI
    126 
    127122    set tl [::project::CreateForm \
    128123      -title $wTitle -type Graphs -iniconfig SeriesGraph -geometry $geometry]
    129124    $tl setgeometry $geometry
    130     set top [$tl getframe]
     125    set top [$tl getframe]
     126    #puts "Tol_SerieChart: tol::seriegrp sergrp = $sergrp, lstSerie = $lstSerie"
    131127    eval ::tol::seriegrp create $sergrp $lstSerie
    132128    # Create
    … …  
    165161  set gramVar [GetGlobalUniqueName __tabser__]
    166162  ::tol::console eval "Text $gramVar = Grammar($source);"
    167   set namGra [string trim [::tol::info variable [list Text $gramVar] ] {"}];#{"}   
     163  set namGra [string trim [TclGetVar Text $gramVar] {"}];#{"}   
    168164  # destroy
    169165  ::tol::console stack release $gramVar   
    … …  
    173169    Serie   { set lstSerie $source }
    174170    Set     {
    175       set nsource [lindex [::tol::info variable [list Set $source] ] 0]
     171      set nsource [lindex [TclGetVar Set $source] 0]
    176172      for {set i 1} {$i <= $nsource} {incr i} {
    177173        lappend lstSerie "$source $i"
    … …  
    274270  # GCF
    275271  if {![string length $gcfFile]} {
    276     set gcfFile [::tol::info variable [list Text GCFFile] ]
     272    set gcfFile [TclGetVar Text GCFFile]
    277273  }
    278274  if {![file exists $gcfFile]} {
Note: See TracChangeset for help on using the changeset viewer.