Crystal Reports基于整数的字符串。 [英] Crystal Reports strings based on integers.

查看:53
本文介绍了Crystal Reports基于整数的字符串。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,







我有来自qwedxssdddcccdddx123的序列号,wefefefefedfedfedf124 .... ............ wefefefefedfedfedf500。







我想写一个基于最后3位数的功能。



例如:



所有1'开始于最后3位数代码是商业代码。 (123,124,125 ....



所有2'的最后3位数代码都是盗版。(220,221,222,223,224 ......



请帮助我..

解决方案

如果你打算在Crystal Report Formula Workshop中这样做,你会使用RIGHT函数可能是最好的。参数是字符串和你想要的字符长度。还有一个LEFT和MID函数可以用于子字符串。这里有一些链接可能对你有用。< br $> b $ b

论坛上类似的MSDN问题 [ ^ ]



类似StackOver流量问题 [ ^ ]



谷歌搜索 [ ^ ]



如果你再要做到这一点在你的代码的数据传递到报表之前,你要先提供更多的信息,比如你在编程的语言。

Hi guys,



I have serial numbers from qwedxssdddcccdddx123, wefefefefedfedfedf124............... wefefefefedfedfedf500.



I want to write a function based on last 3 digits.

for ex:

All 1''s starts in last 3 digit code are commercial. ( 123,124,125....

All 2''s starts in last 3 digit code are pirated. ( 220,221,222,223,224....

Please help me..

解决方案

If you''re going to do it in the Crystal Report Formula Workshop, you''d probably be best off using the RIGHT function. The parms are the string and the length of characters you want to take. There is also a LEFT and a MID function that can be used for substringing. Here are some links that might help you.

Similar MSDN question on a forum[^]

Similar StackOverflow question[^]

google search[^]

If you''re going to do it in the code before you pass data to the report, you''ll have to provide more information such as what language you programming in.


这篇关于Crystal Reports基于整数的字符串。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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