交替的文本框值 [英] alternating textbox value

查看:78
本文介绍了交替的文本框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在不使用条件运算符的情况下通过c#代码将文本框的值从3更改为5,反之为varsa,否则使用Case.
提前thanx ..::)

Hi,
I want to alternatively change the value of textbox from 3 to 5 and vice varsa through c# code without using conditional operator , if else and Case .how can i do it plz reply me

thanx in advance.. :)

推荐答案

我不确定您要做什么,但这是一个建议.

您可以将``新值''= 8-``旧值''


8-3 = 5
8-5 = 3

希望对您有所帮助:)
I''m not quite sure what you want to do but here is a suggestion.

You could make the ''new value'' = 8 - ''old value''

ie
8 - 3 = 5
8 - 5 = 3

Hope that helps :)


这篇关于交替的文本框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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