[GiDlist] Problems to transfer names with blank spaces

Moderator: GiD Team

Post Reply
Fernanda Caffaratti

[GiDlist] Problems to transfer names with blank spaces

Post by Fernanda Caffaratti »

Dear all,

I have a problem to transfer directories with blank spaces
from a procedure written in tcl.

I tried to enclose the name in quote: \"$dir\" , but appears a Gid internal error:

GID internal error (l2036): couldn't open ""C:/Archivos de programa/GiD/GiD7.1/problemtypes/Pruebas.gid/HARVBULL.GIF"": no such file or directory

For example, I wrote:

proc InitGIDProject { dir } {

#where dir = C:/Archivos de #programa/GiD/GiD7.1/problemtypes/Pruebas.gid

Ayuda \"$dir\"

}

proc Ayuda { dir } {

set w .aviso
toplevel $w
wm title $w "AYUDA"
#wm geometry $w 340x230+$x+$y
focus $w
frame $w.top
frame $w.mensaje
label $w.mensaje.titulo -text "Seleccione el botón:" -font -*-arial-bold-r-normal-*-12-*-*-*-*-*-*-*
frame $w.contbot -relief ridge -bd 3
frame $w.contbot.linea
frame $w.contbot.linea1
frame $w.contbot.linea2
frame $w.contbot.linea3
frame $w.botones -relief sunken -bd 2
set archi [file join $dir HARVBULL.GIF]
set img [image create photo -file $archi]
.
.
.
I also tried to use "\"$dir\"", but don't work.

The dir is here C:/Archivos de programa/GiD/GiD7.1/problemtypes/Pruebas.gid, with a
blank space between "Archivos" and "de ...".

Could you give me a good way to solve this problem?

Thank you for your response.

Fernanda


---------------------------------
¿Te cansaste de borrar mensajes para mantener tu cuenta activa?
Probá Correo Yahoo!: 100MB gratis, protección antivirus y contra el correo basura
¡Tenelo ya!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20040722/29721c05/attachment.htm
Ramon Ribó

[GiDlist] Problems to transfer names with blank spaces

Post by Ramon Ribó »

Hello,


This command:

Ayuda \"$dir\"

should be substituted by:

Ayuda $dir

The rest looks correct. Are you sure that the image is there?

Regards,

--
Compass Ing. y Sistemas Dr. Ramon Ribo
http://www.compassis.com http://www.compassis.com/
ramsan at compassis.com
c/ Manuel Girona, 61 bajos tel. +34 93 204 10 82
08034 Barcelona, Spain fax. +34 93 204 19 09

-----Mensaje original-----
De: gidlist-admin at gatxan.cimne.upc.es
[mailto:gidlist-admin at gatxan.cimne.upc.es] En nombre de Fernanda
Caffaratti
Enviado el: jueves, 22 de julio de 2004 21:23
Para: gidlist at gatxan.cimne.upc.es
Asunto: [GiDlist] Problems to transfer names with blank spaces


Dear all,

I have a problem to transfer directories with blank spaces
from a procedure written in tcl.

I tried to enclose the name in quote: \"$dir\" , but appears a Gid
internal error:

GID internal error (l2036): couldn't open ""C:/Archivos de
programa/GiD/GiD7.1/problemtypes/Pruebas.gid/HARVBULL.GIF"": no such
file or directory

For example, I wrote:

proc InitGIDProject { dir } {

#where dir = C:/Archivos de
#programa/GiD/GiD7.1/problemtypes/Pruebas.gid

Ayuda \"$dir\"

}

proc Ayuda { dir } {

set w .aviso
toplevel $w
wm title $w "AYUDA"
#wm geometry $w 340x230+$x+$y
focus $w
frame $w.top
frame $w.mensaje
label $w.mensaje.titulo -text "Seleccione el botón:" -font
-*-arial-bold-r-normal-*-12-*-*-*-*-*-*-*
frame $w.contbot -relief ridge -bd 3
frame $w.contbot.linea
frame $w.contbot.linea1
frame $w.contbot.linea2
frame $w.contbot.linea3
frame $w.botones -relief sunken -bd 2
set archi [file join $dir HARVBULL.GIF]
set img [image create photo -file $archi]
.
.
.
I also tried to use "\"$dir\"", but don't work.

The dir is here C:/Archivos de
programa/GiD/GiD7.1/problemtypes/Pruebas.gid, with a
blank space between "Archivos" and "de ...".

Could you give me a good way to solve this problem?

Thank you for your response.

Fernanda



_____

¿Te cansaste de borrar mensajes para mantener tu cuenta activa?
Probá Correo Yahoo!: 100MB gratis, protección antivirus y contra el
correo basura
¡Tenelo http://login.yahoo.com/config/mail?.intl=ar ya!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20040723/b10cfe90/attachment.htm
Post Reply