473,396 Members | 2,010 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,396 software developers and data experts.

how to get each time different number while running application in vb6...

8
Hi...I want to get the different random number for each time when the application is run. For example : When i run the application, if i got 3 as the random number for the first time then when i close and open the application again i want to get number expect than 3 as the first number...If anyone can than please help me ..it's really urgent..
May 9 '10 #1
4 1306
code green
1,726 Expert 1GB
I think you will have to store the used numbers in a database, or at least write them to a text file, then open the DB /file at every run, load numbers into an array then check against the array
May 10 '10 #2
Guido Geurs
767 Expert 512MB
@Suprim
dear,

You can also just write it to a file and load it in an array when you start the program.
attached is an example ?

br,
May 10 '10 #3
debasisdas
8,127 Expert 4TB
As already suggested you need to store all the already generated / used numbers somewhere. Preferable store in a database table.
May 10 '10 #4
Suprim
8
Thank to all. It really works well. Now i can applied it to my program. Thank you once again to all.
May 12 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: carmen | last post by:
How could I close a running application? All that I find is the Process object but not for the CompactFramework. Thank you for your help!
4
by: bat sar | last post by:
Hi all I'm working on Visual C# .NET, I'm new and I want to build on-screen keyboard, I want to know what should happen when you click a button, lets say its "A" how should I send the value of it...
6
by: Anders Both | last post by:
I want to run a application (console or window) in the asp.net process, because i need an running application on the server that can acces the same data/singleton object as my asp.net application....
4
by: Marlon | last post by:
What is the best way to deal time zone difference in Wep application. Is there a best pattern and practice for this?
1
by: Andrew E Chapman | last post by:
I would like to retrieve properties such as position and size of another application running at the same time as my .NET application. The other application may or may not be .NET. I understand how...
0
by: Steven | last post by:
Hello, I want to get all the running application names, like "Task Manager/Application", but no all processes. Thank you
3
by: xoinki | last post by:
hi all, I am trying to fetch the name of the binary.. i.e, for eg, I am running sql.exe doin some operation.. in that I want to fetch the name 'sql.exe' i.e name of the running application.. how do...
0
by: =?Utf-8?B?UHVjY2E=?= | last post by:
I Have the following in my own library project and I call it from my C# application twice each time to get Unix group account information and user account information. But it would return...
3
by: bangeye | last post by:
Tribe, I have need to use ASP.NET to connect to an already running application (non web) that will be running on the same server as IIS. Start MyServerApp, MyServerApp is now running - doing...
2
by: babp | last post by:
Hi Iam new to perl and need a help to send inputs to an running application : I am running an application XXXX , and when it starts i am passing a file name called "connect.spb" and after the...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.