Explain = IIF(fields!Mybooleanfield.value,chr(82),chr(163) [英] Explain =IIF(fields! Mybooleanfield.value , chr(82), chr(163)

查看:98
本文介绍了Explain = IIF(fields!Mybooleanfield.value,chr(82),chr(163)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我不清楚,需要解释这段代码= IIF(Fields!MyBooleanField.Value,chr(82),chr(163))



我的尝试:



我写的代码如下= IIF(Fields!Status.Value,Che(82),Chr( 163),状态是我的字段名称,它具有布尔值,并且还将文本框字体更改为WingDings和WingDing2,但它也不起作用。

Hi every one i am not clear and need explanation of this code =IIF(Fields!MyBooleanField.Value , chr(82), chr(163))

What I have tried:

I wrote code like this =IIF(Fields!Status.Value,Che(82),Chr(163), Status is my field name which has Boolean value and also changed textbox font to WingDings and WingDing2 but it is nor working.

推荐答案

这是一个Excel(或访问)功能 - 请参阅文档: IIf功能 - 访问 [ ^ ]或者可能是旧的VB函数(VB6或VB2008) - IIf功能 [ ^ ]。

它甚至可以引用Crystal Reports - Crystal Report条件结构 [ ^ ]

无论是什么,它绝对不是C#!



代码(如果你写的话不需要解释)基于的值为某事赋值?字段!MyBooleanField.Value

如果该值为True则为 将被分配一个大写R(chr(82)但是如果值为False那么某事将被分配一个英镑符号。



你已经说过你已经将文本框的字体改为WingDings - 不完全确定原因,但是如果你试图将这些字符放入文本框中,那么我很确定你必须通过代码来完成这个。你的代码片段只有一个=符号看起来好像你可能把它放在你正在构建的任何配置/设计中。



如果你不能在我提供的链接上找到最终的解决方案(或者在文档中找到你正在使用的任何内容)然后你将不得不提供更多关于你正在做什么以及用什么语言/工具
That is an Excel (or Access) function - see the documentation: IIf Function - Access[^] OR possibly an old VB function (VB6 or VB2008) - IIf Function[^].
It might even refer to Crystal Reports - Crystal Report Conditional Structures[^]
Whatever it is, it is definitely NOT C#!

The code (that should not need explanation if you wrote it) is assigning a value to "something" based on the value of Fields!MyBooleanField.Value
If that value is "True" then the "something" will be assigned a capital R (chr(82) but if the value is "False" then the "something" will be assigned a pound sign.

You've said that you have changed the font of a text box to WingDings - not entirely sure why, but if you are trying to put these characters into a textbox then I'm fairly sure you will have to do this via code. Your code snippet with just an = sign looks as if you may have placed it into the configuration/design of whatever it is you are building.

If you can't find the final solution on the links I've provided (or in the documentation for whatever it is you are using) then you will have to provide a lot more detail about what you are doing and in what language/tool

<的细节。 BR />


这篇关于Explain = IIF(fields!Mybooleanfield.value,chr(82),chr(163)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆