473,516 Members | 3,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Limitation of Var variable

Hi,

Can anyone please suggest me on this.

I am using var variable to get a string.Its working fine if string is
of simple type.

But giving error after entering 'Enter' or 'special charcters' in the
string.

Is it a limitation to var variable?

Can anyone suggest me on this.

Thanks,
Pawan

Oct 8 '07 #1
6 1800
Pawan wrote:
Can anyone please suggest me on this.
I am using var variable to get a string.Its working fine if string is
of simple type.
But giving error after entering 'Enter' or 'special charcters' in the
string.
Is it a limitation to var variable?
You're not using a var to "get" the string, you're just storing it
(after you've got it) into a variable. The important thing here is how
you're getting the variable. You could be receiving it via a JSON or XML
file, you could be capturing the keys, reading it from a form input.
There are many ways you could be "get"ting the string, and it's these
methods that are important in determining your problem. Explain how
you're getting it, and post the relevant bit of code and you'll be more
easily helped :)
Oct 8 '07 #2
On Oct 8, 12:50 pm, Stevo <ple...@spam-me.comwrote:
Pawan wrote:
Can anyone please suggest me on this.
I am using var variable to get a string.Its working fine if string is
of simple type.
But giving error after entering 'Enter' or 'special charcters' in the
string.
Is it a limitation to var variable?

You're not using a var to "get" the string, you're just storing it
(after you've got it) into a variable. The important thing here is how
you're getting the variable. You could be receiving it via a JSON or XML
file, you could be capturing the keys, reading it from a form input.
There are many ways you could be "get"ting the string, and it's these
methods that are important in determining your problem. Explain how
you're getting it, and post the relevant bit of code and you'll be more
easily helped :)

var is getting this value from a text box.
Thanks,
Pawan

Oct 8 '07 #3
On Oct 8, 8:33 am, Pawan <maxpa...@gmail.comwrote:
I am using var variable to get a string.Its working fine if string
is of simple type.
What is a 'var variable'? One declared with the var keyword to limit
its scope?
But giving error after entering 'Enter' or 'special charcters' in
the string.
What error? What characters are special? What code are you using?

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Oct 8 '07 #4
David Dorward wrote:
On Oct 8, 8:33 am, Pawan <maxpa...@gmail.comwrote:
>I am using var variable to get a string.Its working fine if string
is of simple type.

What is a 'var variable'? One declared with the var keyword to limit
its scope?
Certainly, as there are no other variables.
PointedEars

P.S.
Your signature separator is still borken, probably because of Google Groups.
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Oct 8 '07 #5
On Oct 8, 2:08 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Your signature separator is still borken,
probably because of Google Groups.
Yes. I look forward to moving, getting my own Inet connection back up,
and having a proper NNTP server to use again.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Oct 8 '07 #6
Thomas 'PointedEars' Lahn wrote on 08 okt 2007 in comp.lang.javascript:
David Dorward wrote:
>On Oct 8, 8:33 am, Pawan <maxpa...@gmail.comwrote:
>>I am using var variable to get a string.Its working fine if string
is of simple type.

What is a 'var variable'? One declared with the var keyword to limit
its scope?

Certainly, as there are no other variables.

In casu strictior there are:

Function arguments are not declared with the var statement.

DOM variables are not declared with the var statement.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 8 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1349
by: James Monroe | last post by:
Does anyone know the character limitation of an application variable ?? How much can one hold ? Will it give an error if it gets too big ? etc etc I have a complex array that I store in them to rotate content quickly and I was wondering just how much data they can hold ? Well sort of an array... if ya know what I mean. I split it and...
2
3146
by: terpatwork | last post by:
Hi, (1) I have an access form that allows users to enter data, and when they click a button, the OnClick code that I've written uses a SQL INSERT statement to insert the data into the database. I come from a web programming background, so please forgive me if there is some better approach to use in Access to accomplish this. My problem is...
3
14637
by: Seong-Kook Shin | last post by:
C FAQ Q 13.2 says that sprintf() is guaranteed to work only for n <= 509: sprintf(dest, "%.*s", n, source); Does 509 appear in any C standard? If not, where it came from? I looked over C99 (ISO/IEC 9899:1999) but didn't find yet. If that limitation is old standard (perhaps ANSI?), does it limit the total length of the string that...
5
7967
by: praveen | last post by:
Hello Folks; I am working in ASP.NET application. I would like to know how much characters ( OR How much Size?) I can keep in View State variable. I want the limitation in its size. Is there any way to change/set this view state value. Thanks in advance! Posted Via Usenet.com Premium Usenet Newsgroup Services
2
14330
by: Joseph Geretz | last post by:
I'm developing a Web Service using DIME to download and upload files from and to an IIS server. In order to increase the download filesize to unlimited, I have the following block in my App.config and Web.config files: <messaging> <maxRequestLength>-1</maxRequestLength> </messaging> The largest file I've downloaded is 70 meg and that's...
23
2520
by: Luc Vaillant | last post by:
I need to initialise a typed parameter depending of its type in a generic class. I have tried to use the C++ template form as follow, but it doesn't work. It seems to be a limitation of generics vs C++ templates. Does anyone knows a workaround to do this ? Thx : public class C<T> { private T myValue;
13
1671
by: Luc Vaillant | last post by:
I try to compare to values of generic value type T in a generic class as follow: public class C<T> where T : struct { private T value1; private T value2; C(T value1, T value2) {
3
1481
by: SDRoy | last post by:
Hi Is there a limitation on how many rows can be fetched using a SqlDataReader in ASP.Net 2.0 ? -- Thanks, SDRoy
1
2032
by: amiben | last post by:
Hi everyone. I have an .asp file that is included in my sites pages which holds information in a string array. The array is so large that the include file is almost 900kb in size. Some array string items hold as much as 15,000 character long strings. Now, I have been getting error "800a03e9 out of memory" in some cases and I think it might...
0
7273
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7405
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7547
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1620
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.