Maximum size for the name of a var

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Maximum size for the name of a var

Post 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Maximum size for the name of a var

Post 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
Viva INTERNATIONAL HMG :D
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: Maximum size for the name of a var

Post 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: Maximum size for the name of a var

Post 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
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: Maximum size for the name of a var

Post 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Maximum size for the name of a var

Post 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 ;)
Last edited by gfilatov on Tue May 05, 2009 5:18 pm, edited 1 time in total.
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: Maximum size for the name of a var

Post 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
Post Reply