473,385 Members | 1,267 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

huge variables

Is in any way possible to define a variable as a integer-value which contain
about 300 numbers in a row?

I have thought about an Override-function for Data-types but I dunno how -
but if it is possible that a Data-type which can hold an unlimited numbers
of numbers :D exists I would be happy or if it is possible to Override the
Dim-function...
Hilsen fra Peter
(sorry about gramma etc - I am not that good at English as I thought - hehe)
Nov 20 '05 #1
7 1581
damn... i think the best you can probably do is to create an array or
arraylist of integes to store all of those numbers... otherwise, just
declare a string variable, and convert substrings into integer variables
from there if you wish...
"Peter Hansen" <wo**@tell.you> wrote in message
news:u1*************@TK2MSFTNGP11.phx.gbl...
Is in any way possible to define a variable as a integer-value which contain about 300 numbers in a row?

I have thought about an Override-function for Data-types but I dunno how -
but if it is possible that a Data-type which can hold an unlimited numbers
of numbers :D exists I would be happy or if it is possible to Override the
Dim-function...
Hilsen fra Peter
(sorry about gramma etc - I am not that good at English as I thought - hehe)

Nov 20 '05 #2
We do not want to lose something in the translation of your question into
English.

Can you please explain exactly what you are trying to do with your code? It
may help us understand and offer differing solutions to your problem.

OHM
"Peter Hansen" <wo**@tell.you> wrote in message
news:u1*************@TK2MSFTNGP11.phx.gbl...
Is in any way possible to define a variable as a integer-value which contain about 300 numbers in a row?

I have thought about an Override-function for Data-types but I dunno how -
but if it is possible that a Data-type which can hold an unlimited numbers
of numbers :D exists I would be happy or if it is possible to Override the
Dim-function...
Hilsen fra Peter
(sorry about gramma etc - I am not that good at English as I thought - hehe)

Nov 20 '05 #3
kay kay

A single letter should be converted with the Asc(letter)-function into a
number. The number has to go through a equation and end up in a pretty long
number - about 200 numbers.

I am going to use this as a certification for a single user. The username
and the incrypted string is parsed into a txt-file like

-----------------start
John Doe

[huuuuuge string]
-----------------stop

This file has to be used when trying to connect to a server. You would have
to upload this file and the server will check if the string is equal to the
username (through the equation) - no arms no cookies (no valid txt-file - no
access)

The huge string is created by a simple function where every single letter is
parsed throug a equation which returns about 200 to 300 numbers pr. letter.
Every time a letter returns a integer value (200 to 300 numbers) they will
be pasted to the end of the function like if the letter 'k' returns the
number 8 and the letter 'r' returns 9 then 9 will be pasted beside 8 as
89...

A single name on 5 letters will therefor end up in a huge string, about 1500
numbers

The problem is the equation. I haven't been able to find a data-type which
can handle the result of the equation if the result is as it should be - at
200 to 300 numbers...

like

Asc(letter) -> the equation = a 200 to 300 integer-value. huge string =
integer value & integer value ....

The problem is not the string (at the moment) but the integer value because
of the datatype is too small :D
Does it make any sence or?

Hilsen fra Peter
(sorry about gramma etc)

"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
wrote in message news:#q**************@TK2MSFTNGP09.phx.gbl...
We do not want to lose something in the translation of your question into
English.

Can you please explain exactly what you are trying to do with your code? It may help us understand and offer differing solutions to your problem.

OHM
"Peter Hansen" <wo**@tell.you> wrote in message
news:u1*************@TK2MSFTNGP11.phx.gbl...
Is in any way possible to define a variable as a integer-value which

contain
about 300 numbers in a row?

I have thought about an Override-function for Data-types but I dunno how - but if it is possible that a Data-type which can hold an unlimited numbers of numbers :D exists I would be happy or if it is possible to Override the Dim-function...
Hilsen fra Peter
(sorry about gramma etc - I am not that good at English as I thought -

hehe)


Nov 20 '05 #4
That's much clearer. I'm off to lunch now, and if someone has not answered
by the time I get back, I will

Regards
"Peter Hansen" <wo**@tell.you> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
kay kay

A single letter should be converted with the Asc(letter)-function into a
number. The number has to go through a equation and end up in a pretty long number - about 200 numbers.

I am going to use this as a certification for a single user. The username
and the incrypted string is parsed into a txt-file like

-----------------start
John Doe

[huuuuuge string]
-----------------stop

This file has to be used when trying to connect to a server. You would have to upload this file and the server will check if the string is equal to the username (through the equation) - no arms no cookies (no valid txt-file - no access)

The huge string is created by a simple function where every single letter is parsed throug a equation which returns about 200 to 300 numbers pr. letter. Every time a letter returns a integer value (200 to 300 numbers) they will
be pasted to the end of the function like if the letter 'k' returns the
number 8 and the letter 'r' returns 9 then 9 will be pasted beside 8 as
89...

A single name on 5 letters will therefor end up in a huge string, about 1500 numbers

The problem is the equation. I haven't been able to find a data-type which
can handle the result of the equation if the result is as it should be - at 200 to 300 numbers...

like

Asc(letter) -> the equation = a 200 to 300 integer-value. huge string =
integer value & integer value ....

The problem is not the string (at the moment) but the integer value because of the datatype is too small :D
Does it make any sence or?

Hilsen fra Peter
(sorry about gramma etc)

"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
wrote in message news:#q**************@TK2MSFTNGP09.phx.gbl...
We do not want to lose something in the translation of your question into
English.

Can you please explain exactly what you are trying to do with your code?

It
may help us understand and offer differing solutions to your problem.

OHM
"Peter Hansen" <wo**@tell.you> wrote in message
news:u1*************@TK2MSFTNGP11.phx.gbl...
Is in any way possible to define a variable as a integer-value which

contain
about 300 numbers in a row?

I have thought about an Override-function for Data-types but I dunno

how - but if it is possible that a Data-type which can hold an unlimited numbers of numbers :D exists I would be happy or if it is possible to Override the Dim-function...
Hilsen fra Peter
(sorry about gramma etc - I am not that good at English as I thought -

hehe)



Nov 20 '05 #5
Cor
Peter,
Just a simple approach
\\\\\\\\\
Dim sharp As String
sharp = Nothing
Dim ohm As String
Dim i As Integer = 1
Do While i < 201
sharp = sharp & (Asc("A") + i).ToString("000") 'be changed by a
randomizer
i += 1
Loop
MessageBox.Show(sharp)
For i = 1 To 200
ohm = ohm & Chr(CInt(sharp.Substring((i * 3 - 3), 3)) - i)
'therefore that easy randomiser
Next
MessageBox.Show(ohm)
//////////
For what I understand that you wanted it I think it will work, with a string
of numbers you can do anything you want.
The value is to large to put it in an int64 and with arrays I suspect that
you get problems when you send them to other places.
I hope this gives you a little help to get on the route.
Cor
Nov 20 '05 #6
Sorry one more question, to do with your use of the word numbers

//
A single letter should be converted with the Asc(letter)-function into a
number. The number has to go through a equation and end up in a pretty long
number - about 200 numbers.
//

I assume you mean
about 200 digits long ? such as ( as opposed to 200 integers )
200000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000 0000000
00000000000000000000000000000000000000000000000000 000000
00000000000000000000000000000000000000000000000000 000
00000000000000000000000000000000000000000000000000 00000
00000000000000000000000000000000000000000000000000 0000


"Peter Hansen" <wo**@tell.you> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
kay kay

A single letter should be converted with the Asc(letter)-function into a
number. The number has to go through a equation and end up in a pretty long number - about 200 numbers.

I am going to use this as a certification for a single user. The username
and the incrypted string is parsed into a txt-file like

-----------------start
John Doe

[huuuuuge string]
-----------------stop

This file has to be used when trying to connect to a server. You would have to upload this file and the server will check if the string is equal to the username (through the equation) - no arms no cookies (no valid txt-file - no access)

The huge string is created by a simple function where every single letter is parsed throug a equation which returns about 200 to 300 numbers pr. letter. Every time a letter returns a integer value (200 to 300 numbers) they will
be pasted to the end of the function like if the letter 'k' returns the
number 8 and the letter 'r' returns 9 then 9 will be pasted beside 8 as
89...

A single name on 5 letters will therefor end up in a huge string, about 1500 numbers

The problem is the equation. I haven't been able to find a data-type which
can handle the result of the equation if the result is as it should be - at 200 to 300 numbers...

like

Asc(letter) -> the equation = a 200 to 300 integer-value. huge string =
integer value & integer value ....

The problem is not the string (at the moment) but the integer value because of the datatype is too small :D
Does it make any sence or?

Hilsen fra Peter
(sorry about gramma etc)

"One Handed Man [ OHM ]" <te***************************@BTOpenworld.com>
wrote in message news:#q**************@TK2MSFTNGP09.phx.gbl...
We do not want to lose something in the translation of your question into
English.

Can you please explain exactly what you are trying to do with your code?

It
may help us understand and offer differing solutions to your problem.

OHM
"Peter Hansen" <wo**@tell.you> wrote in message
news:u1*************@TK2MSFTNGP11.phx.gbl...
Is in any way possible to define a variable as a integer-value which

contain
about 300 numbers in a row?

I have thought about an Override-function for Data-types but I dunno

how - but if it is possible that a Data-type which can hold an unlimited numbers of numbers :D exists I would be happy or if it is possible to Override the Dim-function...
Hilsen fra Peter
(sorry about gramma etc - I am not that good at English as I thought -

hehe)



Nov 20 '05 #7
Hi,

I've been reading the thread, and one thing that struck me as odd was that
you are trying to mimic an immensely difficult and sensitive procedure by
re-inventing the wheel...

First of all, it is perfectly possible to convert a large amount of
characters into a byte array and vice versa using the system.text.encoding
namespace.

Secondly, and most importantly, why not use the System.Security.Encryption
namespaces that .Net provides to create a strongly (128 bit) encrypted
string? It is fairly easy to encrypt data using either DES or TripleDES
(Data Encryption Standard), and provided you keep the keys secret, it is
nearly unbreakable encryption. You can store the encrypted data as
Base64-encoded strings in the text file, perhaps. (Convert.ToBase64String())

Hope this helps,

Danny van Kasteel
"Peter Hansen" <wo**@tell.you> wrote in message
news:u1*************@TK2MSFTNGP11.phx.gbl...
Is in any way possible to define a variable as a integer-value which contain about 300 numbers in a row?

I have thought about an Override-function for Data-types but I dunno how -
but if it is possible that a Data-type which can hold an unlimited numbers
of numbers :D exists I would be happy or if it is possible to Override the
Dim-function...
Hilsen fra Peter
(sorry about gramma etc - I am not that good at English as I thought - hehe)

Nov 20 '05 #8

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

Similar topics

5
by: mas | last post by:
I have a Stored Procedure (SP) that creates the data required for a report that I show on a web page. The SP does all the work and just returns back a results set that I dump in an ASP.NET...
5
by: Winston | last post by:
Hello, There: I would like to create a huge two-dimentational array in C, like 5000X5000. However, I always got sementation faults when accessing more than 2000X2000. Is there any way to...
7
by: Vasil Buraliev | last post by:
Hallo. I started a solution in VS.NET with template for C# windwos application. The solution has several projects: -Artifacts -BusinessRules -Client -ErrorLog -Standardization .... ... ..
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
8
by: luke.yolanda | last post by:
is anyone know how to implement a huge 2-D array? such as ' unsigned char a; ' I compile and run it in VC 6.0, but it show me an error.... thank you guys
15
by: luke.yolanda | last post by:
hi everyone I have a question. First, I have implemented a huge matrix in a program, like 'unsigned char matrix;', when I executed this program, the error occured. Then I modified the ...
15
by: pkirk25 | last post by:
I have a file with roughly 1000 lines that I cannot allow the user to read but which I want to use in my project. I thought I could copy it into one huge string variable but that won't work...
5
by: K Viltersten | last post by:
I discovered that when requested http://localhost:52698/ws3/page.aspx and issued a call Response.Write(Request.Params.Count); i got 50 parameters in count. When i actually added some as...
5
by: cpdar | last post by:
typedef struct FileHdr { unsigned long reg; unsigned short width; float sfactor; struct FileHdr huge *next; }FileHdr; FileHdr huge *Hdrhead=NULL,huge *Hdrcur=NULL; // //
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.