如果那么&这个& ELSE之前的那个...... VB6(纽比) [英] IF THEN & this & that etc before ELSE ...VB6 (Newby)

查看:67
本文介绍了如果那么&这个& ELSE之前的那个...... VB6(纽比)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我找了这个,找不到相关的东西。

我的问题是: -

我想设置多个IF作为IF函数的结果,(我好像记得能够用BBC Basic做到这一点),但我尝试过的所有内容都会返回错误。

有人能指出我正确的方向吗?

问候

Hi Guys,
I''ve looked for this and can''t find anything relative.
My problem is this :-
I want to set more than one value as the result of an IF function, (I seem to remember being able to do this with BBC Basic) but everything I''ve tried returns an error.
can someone point me in the right direction?
regards

推荐答案

你可以按照这个代码

You can follow this code

展开 | 选择 | Wrap | 行号


谢谢!我会试一试。当我开启时,每次我完成''结束如果'',当我运行程序时它停止在那一点,语句编译错误:结束如果没有阻止如果,说过它似乎运行正常没有把它放进去...我错过了什么?

问候
Thankyou! I''ll give it a go. while Im on, every time I finish with ''End If'', when I run the program It stops at that point with the statement "Compile error: End If without block If", having said that it seems to run ok without putting it in...what am I missing?
regards


嗨。几件事。首先,如果您只检查一个变量,则可能更好地使用select case语句:
Hi. a couple of things. Firstly it may be better for you to use a select case statement if you are checking only one variable as in:
展开 | 选择 | Wrap | 行号


这篇关于如果那么&这个& ELSE之前的那个...... VB6(纽比)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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