473,666 Members | 2,412 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 1164

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

Similar topics

51
5255
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
8
3714
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 in the subject, did a web search, and it seems kind of powerfull. My main interrest is web development in Zope/CMF/Plone, where there is a lot of repeated code in the products. So automated code generation seems
0
2440
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 UML, and using automatic code generation to make Python APIs, XML I/O etc. (more below). We can be found at http://www.ccpn.ac.uk/index.html As a general point, automtic code generation would seem like a good idea in special cases where:
9
5590
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
4248
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. Unfortunately these ad hominem rhetorts are frequently introduced into purely technical discussions on the feasibility of supporting such functionality in C++. That usually serves to divert the discussion from the technical subject to a discussion of the...
1
1357
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 and data access object. Which code generation for VB.net is good? Mygeneration CodeSmith
2
3077
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 application is called "Dynamic Code", so the name space in my project is "Dynamic Code", I have created "Form1.cs" where my code exist. Form1 class contain a global class "xarray" with static memeber "x" which is an array, I want the added dynamic code by...
0
1178
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 from CollectionBase which contains Column objects. The Column object has the TypeConverter attribute and the TypeConverter class implements CanConvertTo() and ConvertTo() for type InstanceDescriptor. It does work but there are a few problems...
31
2447
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 expression, so I'm using exec. At the moment I came up with the following to make it work: def build_func(args): code """def foo(...)..."""
0
918
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 coming. it says --------------------------- Microsoft Visual Studio --------------------------- Code generation for property 'Shortcut' failed. Error was: 'The value '262211' is not a valid value for the enum 'Shortcut'.'...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5661
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.