473,396 Members | 1,768 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.

define variables

Hi,
I want to make a dynamic comparison in order to find out all the duplicates
in the table. Becuse the data is not so tidy, and sometime the strings have
a little difference but still a duplicate, I don't compare with this field.
In this case, I have to select those fields that don't have so much
confusion.

In short, I have a table containing field1, field2 ... fieldn :' "n" is a
variable
I want to make a comparison to next record by the fields selected, NOT all.

For example:

if fileld1 is selected then
Ffield1 = rs("fileld")
end if

if fileld2 is selected then
Ffield2 = rs("fileld2")
end if
....
if fileldn is selected then
Ffieldn = rs("fileldn")
end if

'when the recordset move next

if fileld1 is selected then
Sfield1 = rs("fileld1")
end if

if fileld2 is selected then
Sfield2 = rs("fileld2")
end if
....
if fileldn is selected then
Sfieldn = rs("fileldn")
end if

' now do comparison

if Ffield1 = Sfield1 and Ffield2 = Sfield2 and ... Ffieldn = Sfieldn then
' also get rid of those unseleted fields in above statement.
'if field4 is not selected, then no Sfield4 defined, and no value.

'do whatever I want here.

This may not be a good solution, but I don't have a better one. Can anyone
provide me a share idea? Or let me know how to figure out the problem above.
Thanks a lot.

Atse
Jul 19 '05 #1
0 2193

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

Similar topics

3
by: axial | last post by:
Is there a way to define a variable by resolving other variables? I'm trying to build an "uber-variable" from user-selected components. I have control over the XML and can change it as needed. ...
12
by: David WOO | last post by:
Hi, I am a newbie on C++, I need to define some global variables which should be accessible to most classes. In the mean time, I don't won't the global variables be modified freely at most of...
6
by: David T. Ashley | last post by:
Hi, In my project, I typically declare and define variables in the .H file, i.e. DECMOD_MAIN UINT8 can_message_201_status_global #ifdef MODULE_MAIN = HAS_NEVER_BEEN_RECEIVED #endif ;
4
by: oliver.lin | last post by:
In my simple test code, I tried to define my constructor outside of the class declaration headr file. The header file: file_handler.h ============================================================...
8
by: Fan Zhang | last post by:
Hi group, This is a follow-up of the question I posted this afternoon. I tried to define two constants, PI and radian in that program in the following way, #define PI 3.1415926 #define...
6
by: msigwald | last post by:
The following line of code works, however, since my professor is a real purist of c, I would like to know if this code is valid (is it good code or a piece of crap?): #define DMP_FILE argv ...
2
by: JIM.H. | last post by:
Hello, In my C# asp.net web application, I need to define a few variable that is reachable from all pages. If it was C I would define it in the .h file as struct and use it in the...
5
by: MoslyChang | last post by:
Hi, All When I look at effective c++,item2 and item3. I have some basic questions , Does anyone be familar with this topic? it suggests const is perfer to #define, then I think how to replace...
1
by: Bryan Parkoff | last post by:
An object can be defined using a class. The class contains variables and functions. It has a pointer to bind variables and functions. If I want to create more than one object. The class can...
3
by: Immortal Nephi | last post by:
The rule of inheritance states that you define from top to bottom. Sometimes, you want to define base class and set reference from dervied class to base class, but you violate the rule. Here is an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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...
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
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...

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.