| |

VerySource

 Forgot password?
 Register
Search
View: 1365|Reply: 4

Find a problem

[Copy link]

4

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-3 21:40:01
| Show all posts |Read mode
Take a look
strSQL.Format ("select * from Course");
m_pSet-> m_pDatabase-> ExecuteSQL (strSQL);
What does this line of code do and what does it do
Reply

Use magic Report

0

Threads

17

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-3 23:48:01
| Show all posts
Execute a SQL statement to open the database
Reply

Use magic Report

4

Threads

8

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-4 06:27:02
| Show all posts
It has no return value, how can I make this open table display in a ListControl ???
Hope you guys help me look at this question !!!
Reply

Use magic Report

1

Threads

15

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-5 01:39:01
| Show all posts
The return value is in m_pSet. What Set means is the meaning of Set.
Reply

Use magic Report

0

Threads

13

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-7-7 20:30:01
| Show all posts
Returns a result set, same as
variant v1, v2, v3;
CString s1,s2 ,s3;
v1 = m_pSet->GetCollect("Field 1");
v2 = m_pSet->GetCollect("Field 2");
v3 = m_pSet->GetCollect("Field 3");
if (v1.vt != VT_NULL)
{
   s1 = (LPCTSTR)(_bstr_t)v1
} To get the value
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list