vb.net中的iff语句 [英] Iff statement in vb.net

查看:244
本文介绍了vb.net中的iff语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问您是否可以在vb.net中对fo进行声明?
如果StartDate和EndDate都为空,则期间为空
如果开始日期和结束日期都不为空,则期间为Startdate TO EndDate
如果StartDate不为空且enddate为空,则期间为FROM startdate
endate不为空且startdate为空,期间为TILL enddate
iff(StartDate)

Could u please make iff statement for follwing in vb.net

If both StartDate and EndDate is empty then period is empty
if both startdate and enddate is not empty then period is Startdate TO EndDate
if StartDate is not empty and enddate is empty then period is FROM startdate
is endate is not empty and startdate is empty the period is TILL enddate
iff(StartDate)

推荐答案

在这里不起作用.这听起来像是您的大学项目/作业,您应该付出一些努力.

我们希望您花一些时间来尝试解决您面临的问题,然后再花一些时间在此处发布问题时提出问题.

这是询问者的期望:
1. 先尝试您要做什么!
2.制定看起来像问题/无法解决的问题.

试试看,告诉他们是否遇到问题.
成员将很乐意为您提供帮助.
It does not work like this here. This sounds like your college project/assignment, you should put some effort.

We expect you to put some time in trying the issue that you are facing and then some time in formulating the question while posting here.

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.


这篇关于vb.net中的iff语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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