确定直到某一点的字符数 [英] determine number of characters up to a certain point

查看:80
本文介绍了确定直到某一点的字符数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,我有一组看起来像这样的数字

hey all, i have a set of numbers which looks like this

展开 | 选择 | Wrap | 行号

推荐答案

好吧我解决了这个问题,但现在我收到一条错误消息说


类型不匹配:''cint''

/ site / enc。 asp,第227行


只是所以我不必粘贴我的所有代码..在代码的开头,一个数字变成一个字符串,所以它可以放在另一个数字的旁边使用+功能。


这里是我的代码将其转换回来一个数字所以它可以计算


x = cint(新代码)


??这真让我难过!请neone>?
ok i worked that problem out but now im getting an error message saying

Type mismatch: ''cint''
/site/enc.asp, line 227

just so i dont have to paste all my code.. at the beginning of the code a number is turned into a string so it can be placed next to another number by using the + function.

and here is my code to convert it back to a number so it can be calculated

x = cint(newcode)

?? this has really stumped me! please neone>?


newcode的值必须是介于-32768和32767之间的数字。是否有可能超出此范围?


Jared
the value of newcode must be a number between -32768 and 32767. Is it possible you are outside of this range?

Jared


是的,我在范围之外,所以我尝试使用clng并再一次超出范围,所以我在范围内的数字,我仍然得到相同的错误信息..类型不匹配。


清楚地解释我在做什么我正在将一个字母转换成数值并通过计算运行它,将值放入cookie或数据库然后反转结算原始信件的计算。


所以,如果我想转换字母s我正在使用的代码是
yea i am outside the range so i tried using clng and once again im out of the range so i made the numbers within the range and i still get the same error message.. type mismatch.

to clearly explain what i am doing i am converting a letter into a numeric value and running it through a calculation, placing the value into a cookie or database and then reversing the calculations to end up with the original letter.

so if i want to convert the letter s the code i am using is
展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


这篇关于确定直到某一点的字符数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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