Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm studying a program of database but I don't understand a thing, there is this code's raw:

rsTable.GetFieldValue( _T("ope_id"), idValue );


so in string idValue I put "ope.id" but what's ope_id? is it name of database row?

What I have tried:

I tried to change it..but it's the same thing..
Posted
Updated 2-Oct-19 5:20am
Comments
CHill60 2-Oct-19 11:17am    
Database rows don't have names. "ope_id" is the column name and GetFieldValue will place the contents of that column from the current row into the variable idValue
Maciej Los 2-Oct-19 11:18am    
Sounds like an answer.
CHill60 2-Oct-19 11:20am    
Actually, I should have just done that really. Bad day in the office.
Maciej Los 2-Oct-19 11:31am    
There is always hope that bad day in the office will finish soon. When you get back home, make vodka with tomato juice and drink it ASAP. This is one-time-medicament. Vodka will make stress gone, tomato juice will give you positive energy. Warning: do not repeat this yourself. :)
CHill60 2-Oct-19 16:05pm    
LOL :)

1 solution

"ope_id" is the column name and GetFieldValue will place the contents of that column from the current row into the variable idValue
 
Share this answer
 
Comments
Member 14594285 2-Oct-19 11:22am    
ok..so column of database has a name..in this case is "ope_id", how can I get the name of the column of database?
phil.o 2-Oct-19 14:16pm    
You are supposed to know which tables and columns are in the database.
Or maybe you need to study how relational databases are organized?
CHill60 2-Oct-19 16:05pm    
Well put.
Maciej Los 2-Oct-19 11:31am    
5ed!
CHill60 2-Oct-19 16:05pm    
Thank you!

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