【StrColorToNum】
[code]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 ;
[/code]
页:
[1]