一个不需要第三方组件,可实现华简单图形的类
当前位置:知识管理交流
→『 技术文档交流 』
[p]通常我们做统计图的时候需要借助组件来完成例如mschart,aspchart等[br]但是这个类不需要任何组件,而且使用方便[br]clsgraph.asp [br]<%[br]class inteligraph [/p]
[p][br]public copyright, developer, name, version, web[br]public maximum, barwidth, barcolor, orientation[br]private items(), cnt[/p]
[p]private sub class_initialize()[br]copyright = "?2001 ticluse teknologi, all rights reserved."[br]developer = "james lind雗"[br]name = "inteligraph"[br]version = "1.0"[br]web = "[url=http://intelidev.com]http://intelidev.com[/url]"[br]cnt = 0[br]end sub[/p]
[p]public function add( value )[br]redim preserve items( cnt )[br]items( cnt ) = value[br]data = cnt[br]cnt = cnt + 1[br]add = data[br]end function[/p]
[p]public function build()[br]if cnt < 1 then exit function[br]if len( orientation ) = 0 or lcase( orientation ) = "horizontal" then[br]for idx = lbound( items ) to ubound( items )[br]data = data & "
该文章在 2010/7/8 0:34:31 编辑过 |
关键字查询
相关文章
正在查询... |