Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have ten records having flag 1 then there serial no is like a,b,c,d,e,f,g,h,i,j.
Now suppose i set a flag equals to 0 then there sequence will change then i want a logic like that if suppose i set flag =0 or 1 it has to show sequence as a,b,c,d,e,g,f,h,i,j.
Posted
Comments
ZurdoDev 14-Aug-13 7:35am    
1. This does not make any sense.
2. Use the improve question link to add some detail, relevant code, and show us where you are stuck.
BillWoodruff 14-Aug-13 19:12pm    
What are your goals here: I'm sure you want to do something more than move the position of one character in a string, based on a change in a 'flag'variable. Are you trying to assign a unique key to each set of records, or classify each group of records to indictat they share the same internal order ? Tell us what you are doing now, what the problem is, and give us much more information about what the solution you need requires.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900