- UID
- 2
- 积分
- 2874604
- 威望
- 1387331 布
- 龙e币
- 1487273 刀
- 在线时间
- 13155 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-24
|
【StrColorToNum】
- inputs: Color( stringsimple ) ;
- variables: var0( "" ) ;
- var0 = UpperStr( Color ) ;
- if var0 = "BLACK" then
- StrColortoNum = 1
- else if var0 = "BLUE" then
- StrColortoNum = 2
- else if var0 = "CYAN" then
- StrColortoNum = 3
- else if var0 = "GREEN" then
- StrColortoNum = 4
- else if var0 = "MAGENTA" then
- StrColortoNum = 5
- else if var0 = "RED" then
- StrColortoNum = 6
- else if var0 = "YELLOW" then
- StrColortoNum = 7
- else if var0 = "WHITE" then
- StrColortoNum = 8
- else if var0 = "DARKBLUE" then
- StrColortoNum = 9
- else if var0 = "DARKCYAN" then
- StrColortoNum = 10
- else if var0 = "DARKGREEN" then
- StrColortoNum = 11
- else if var0 = "DARKMAGENTA" then
- StrColortoNum = 12
- else if var0 = "DARKRED" then
- StrColortoNum = 13
- else if var0 = "DARKYELLOW" then
- StrColortoNum = 14
- else if var0 = "DARKGRAY" then
- StrColortoNum = 15
- else if var0 = "LIGHTGRAY" then
- StrColortoNum = 16
- else
- StrColortoNum = 99 ;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|