| |

VerySource

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

Use of find function in data window

[Copy link]

1

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-3-23 21:30:01
| Show all posts |Read mode
In the data window, you need to use the find function to find the data rows that meet the conditions, but you need to reference a numeric variable in the search conditions. Such as
   ll_found = dw_status.Find ("emp_salary = j", 3, dw_status.RowCount ())
// j is a numeric variable
Can be used in this way, j cannot be replaced by the value taken in the program. For example, if j is converted to a string, an error of inconsistent data type will be reported during execution.
I do not know how to use it, please advise.
Reply

Use magic Report

0

Threads

100

Posts

53

Credits

Newbie

Rank: 1

Credits
53

 United States

Post time: 2020-7-4 08:45:01
| Show all posts
ll_found = dw_status.Find("emp_salary =" + string(j), 3, dw_status.RowCount())
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-7-4 12:00:01
| Show all posts
ll_found = dw_status.Find("string(emp_salary) ='"+string(j)+"'", 3, dw_status.RowCount())
Reply

Use magic Report

0

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-7-10 17:00:02
| Show all posts
ll_found = dw_status.find("emp_salary='"+string(j)+"'",3, dw_status.RowCount())
Reply

Use magic Report

0

Threads

3

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-7-17 22:45:01
| Show all posts
Should be whatunkmasssaid
Reply

Use magic Report

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

Points Rules

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

Quick Reply To Top Return to the list