VB 08计算器 [英] VB 08 Calculator

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

问题描述

我必须使用组合框/程序/功能在visual basic中制作一个计算器,它稍微复杂一点。无论如何,我需要创建一个用户定义的函数来确保(计算的)两个输入数字实际上是数字,即isnumeric函数。两个数字都必须在同一个函数中检查,并且我必须返回一个显示错误的msgbox(作为函数的一部分)并返回一个表明存在问题的值。当我测试时它总是崩溃 - 在一个文本框中输入一个字母而不是一个数字。到目前为止,这是我的代码:第一个功能是'发生故障的功能。任何帮助都会很棒

i have to make a calculator in visual basic, it''s slightly more complex one, using a combo box/procedures/functions. Anyway, i need to create a user defined function to make sure both input numbers (of the the calculation) are in fact numbers, the isnumeric function. both numbers have to be checked in the same function, and i must return a msgbox (as part of the function) displaying an error and return a value indicating there was a problem. it always crashes when i test it - entering a letter instead of a number into either of the textboxes. here''s my code so far: the first function is the function that''s malfunctioning. any help would be great

展开 | 选择 | Wrap | 行号

推荐答案

家庭作业

本网站的专家非常乐意帮助您解决问题,但他们无法为您完成任务/计划。首先尝试自己的作业/程序,并发布有关您遇到的任何困难或有关您不知道如何实现的特定代码功能的问题。


管理员。
Homework Assignment

The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don''t know how to achieve.

Administrator.


我也把它移到VB问题的相应论坛。您已将其发布在Access / VBA论坛中。
I have also moved this to the appropriate forum for VB questions. You posted it in the Access / VBA forum.


家庭作业


本网站的专家非常乐意帮助您解决问题,但他们无法为您完成任务/计划。首先尝试自己的作业/程序并发布有关您遇到的任何困难或有关您不知道如何实现的特定代码功能的问题。


管理员。
Homework Assignment

The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don''t know how to achieve.

Administrator.



我自己尝试过,你认为所有代码都来自哪里。我只询问用户定义的函数,将输入验证为数字。

i did attempt it myself, where do you think all that code came from. i only asked about the user defined function validating the input as a number.


这篇关于VB 08计算器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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