473,508 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unique Asset Code generation.. Please help me solving this error

3 New Member
Expand|Select|Wrap|Line Numbers
  1. //Code is as follows.
  2.  
  3.  
  4.  int length = 9999;
  5.         //Merillife sciences Pvt.Ltd
  6.         for (int i = 0; i <= length; i++)
  7.         {
  8.             if (company == "Merillife Sciences Pvt.ltd" && assetcategory == "laptop/desktop")
  9.             {
  10.                 string id = Convert.ToString(MLLP - 0001);
  11.                 string tmpid = string.Concat("MLLP-", Convert.ToInt32(id.Split('-').GetValue(1)) + 1);
  12.                 tmpid = tmpid + i;
  13.                 AssetCodeTextBox.Text = tmpid;
  14.             }
  15.         }
Error:: same code MLLP-29999 is being generated
Sep 2 '13 #1
0 1161

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

Similar topics

51
5203
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
8
3706
by: Max M | last post by:
Yesterday there was an article on Slashdot: http://books.slashdot.org/article.pl?sid=03/09/04/1415210&mode=flat&tid=108&tid=126&tid=156 It is about automatic code generation. I got interrested...
0
2431
by: Rasmus Fogh | last post by:
Someone raised the question of automatic code generation a few weeks back. And yes, we (CCPN) are using automatic Python code generation in a major way. Basically we are making data models in...
9
5573
by: Maurice LING | last post by:
Hi, Is there any UML tools that is able to take UML and generate Python codes? Cheers Maurice
67
4193
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
1
1350
by: George Meng | last post by:
I want to evaluate some code generation tool for my company. Want to get some idea from you. The bottom line is I want to get a tool to generate both store procedure as well as business object...
2
3068
by: Ghada Al-Mashaqbeh via DotNetMonster.com | last post by:
Hi all, I am facing a problem in dynamic code generation at run time, the problem occurs when the dynmaic code use global data exist within the original application. Lets say that my...
0
1170
by: steve.kaye | last post by:
I'm writing a control which contains a collection of Column objects which needs to be written to InitializeComponent() by the designer. I've created a collection object (ColumnCollection) derived...
31
2419
by: eliben | last post by:
Hello, In a Python program I'm writing I need to dynamically generate functions and store them in a dict. eval() can't work for me because a function definition is a statement and not an...
0
908
zybernau
by: zybernau | last post by:
We have migrated the project source code from 1.1 frame work to 2.0 frame work now i am working in vs 2005 , while in designing mode ahen doing some changes to the control there's one message...
0
7225
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,...
0
7382
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...
1
7042
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
7495
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...
0
3193
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...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1556
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 ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.