| |

VerySource

 Forgot password?
 Register
Search
View: 755|Reply: 3

About foreground binding

[Copy link]

2

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-2-6 00:00:01
| Show all posts |Read mode
The foreground uses <td> <% # Eval ("inuse", "{0: b}")%> </ td> to bind data

inuse is bool

This shows true or false

How to make it show Chinese characters yes or no based on true or false?
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-3-25 09:00:01
| Show all posts
<% # ((bool) Eval ("inuse"))? "Yes": "NO"%>
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-25 15:00:02
| Show all posts
correct
Reply

Use magic Report

0

Threads

43

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-3-25 22:45:01
| Show all posts
<% # booltostring (Eval ("inuse"))%>

function booltostring (ByVal inuse As System.Object) as string
  if inuse = false then
     return "No"
  else
     return "yes"
  end if
end function
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