Page 1 of 1

Maximum size for the name of a var

Posted: Tue May 05, 2009 12:41 am
by salamandra
Hi to all,
:oops: I have a stupid question: what is the maximum size (chars) for the name of a var ??
In CA Clipper == 10 chars (and I am still using 10 characters....) :roll:
it is possible to have larger name than 10 chars ??

once again, sorry for this stupid question.

Thanks in advance.

[]'s Salamandra


=================================================================
Hola a todos,
:oops: Tengo una pregunta idiota para hacer: qual es el tamanho maximo (caracteres) para
el nombre de una variable??
En CA CLIPPER == 10 caracteres (y yo aun continuo usando 10 caracteres...) :roll:
Es posible usar nombres con mas de 10 carateres ??

Una vez mas, perdon por la pregunta idiota.

Muchas gracias a todos.

[]'s Salamandra

Re: Maximum size for the name of a var

Posted: Tue May 05, 2009 1:11 am
by esgici
Hi Salamandra

Don't worry, this isn't a stupid question.

As far as know in Harbour maximum length of variable names is greater than 10. But I don't know how much ?

Moreover as far as remember, there was a double limits : actual length and meaningful length :?

Unfortunately lack of documentation don't allow to respond adequately.

I hope that some of our friends could achieve this.

Regards.

--

Esgici

Re: Maximum size for the name of a var

Posted: Tue May 05, 2009 1:50 am
by salamandra
;) Hi esgici,
Yes, unfortunately Harbour documentation it is flawed or a bit incomplete.
I had read almost all Harbour documentation and did not find any information about that.
Well, maybe some of our friends can answer this question... ( I hope :D ).

Thanks anyway,

[]'s salamandra


==================================================================

;) Hola esgici,
Si, desafortunadamente la documentacion de Harbour tiene algunas falhas o esta
medio incompleta...
Yo lei casi toda la documentacion que encontre, pero no encontre ninguna referencia
a ese asunto.
Bien, talvez alguno de nuestros amigos pueda responder esta pregunta ( yo espero :D )

De cualquier modo muchas gracias,

[]'s Salamandra

Re: Maximum size for the name of a var

Posted: Tue May 05, 2009 2:14 am
by luisvasquezcl
Hi,
VB indicate a maximum of 40 characters for the name of a variable.
For environment, the windows cut out to 1024 characters.
http://profesorjosdarmoreno.blogdiario. ... VARIABLES/
Not many but I think the background to create variable names to 40 characters you'll end up with tendinitis before you can finish a program.
I Wish help you
Regards
Luis Vasquez

Hola,
En VB indican un máximo de 40 caracteres para el nombre de una variable.
Para las variables de entorno, windows las recorta a los 1024 caracteres.
http://profesorjosdarmoreno.blogdiario. ... VARIABLES/
Lamentablemente no hay muchos antecedentes al respecto, pero creo que si vas a crear nombres de variables de 40 caracteres vas a terminar con tendinitis antes de poder terminar de hacer un programa 8))).
Espero te sirva.
Saludos
Luis Vasquez

Re: Maximum size for the name of a var

Posted: Tue May 05, 2009 11:41 am
by salamandra
:P Hi Luis,
I don't want to use very long variable names.
but in some circumstances would be very desirable to have
variable names with up to 20 or 30 characters.
This is very important especially when the variable needs to be created "on the fly"
Here in Brazil, for example, when issuing an invoice for the same type of tax, may be
different subtypes of the same tax.
Then, each item should be identified by subtype of tax

Eg: itemwithtax01_withoutTax02:="xxxxxx"



;) Thanks,

[]'s Salamandra

==========================================================================

:P Hola Luis,
Realmente no pretendo usar nombres de variables tan extensos.
pero en algunas circunstancias es conveniente que puedan tener
unos 20 o 30 caracteres.
Eso es muy importante quando las variables precisan ser creadas "on the fly"
Aqui em brasil,por ejemplo, quando se emite una factura, un mismo tipo
de impuesto sobre los items puede generar varios subtipos de impuesto.
Luego, cada item precisa ser identificado por el subtipo de impuesto.

Ejemplo: itemwithtax01_withoutTax02:="xxxxxx"



;) Muchas gracias,


[]'s Salamandra

Re: Maximum size for the name of a var

Posted: Tue May 05, 2009 12:08 pm
by gfilatov
salamandra wrote::P Hi Luis,
I don't want to use very long variable names.
but in some circumstances would be very desirable to have
variable names with up to 20 or 30 characters.
This is very important especially when the variable needs to be created "on the fly"
Here in Brazil, for example, when issuing an invoice for the same type of tax, may be
different subtypes of the same tax.
Then, each item should be identified by subtype of tax

Eg: itemwithtax01_withoutTax02:="xxxxxx"
Hi Salamandra,

Don't worry :!:
The default maximum symbol name length is 63 in the [x]Harbour ;)

Re: Maximum size for the name of a var

Posted: Tue May 05, 2009 3:50 pm
by salamandra
:) Hi Grigory,

variable name can have up to 63 characters in lenght??
Very good !! this size meets perfectly all my needs. :D

Thank you very much Grigory.


Kind Regards,

[]'Salamandra


=======================================================

:) Hola Grigory,

El nombre de la variable puede tener hasta 63 caracteres de tamaño??
Excelente !! eso se encaja perfectamente con mis necesidades. :D

Muchas gracias Grigory.


Saludos cordiales,

[]'Salamandra