Post by Janet on Nov 24, 2007 12:07:25 GMT -5
I was working on a program to convert ***very*** simple html to Run BASIC and discovered this peculiarity.
This code runs as expected
But, change #pre to #code
and you change the color of the Run BASIC text editor. Is there a list of reserved words that shouldn't be used for handles anyplace?
This code runs as expected
Cls
Call SetCSS
Div MainContainer
Div pre
Print "Hello World!"
End Div
Link #quit, " Quit ", XbyLink
End Div
Wait
Sub XbyLink handle$
Cls
End
End Sub
Sub SetCSS
cssID #MainContainer, "{
Margin-Top: 20px;
Margin-Left: 100px;
Width: 800px;
Background-Color: #FFFFCC;
Border-Style: Solid;
Border-Color: #3300FF;
Padding: 30px 30px 30px 30px;
}"
cssID #pre, "{
Padding: 30px 30px 30px 30px;
Font-Family: 'Times_New_Roman';
Font-Size: 12pt;
Background-Color: #CCCC99;
Color: #3399FF;
Border-Style: Double;
}"
End Sub
But, change #pre to #code
Cls
Call SetCSS
Div MainContainer
Div code
Print "Hello World!"
End Div
Link #quit, " Quit ", XbyLink
End Div
Wait
Sub XbyLink handle$
Cls
End
End Sub
Sub SetCSS
cssID #MainContainer, "{
Margin-Top: 20px;
Margin-Left: 100px;
Width: 800px;
Background-Color: #FFFFCC;
Border-Style: Solid;
Border-Color: #3300FF;
Padding: 30px 30px 30px 30px;
}"
cssID #code, "{
Padding: 30px 30px 30px 30px;
Font-Family: 'Times_New_Roman';
Font-Size: 12pt;
Background-Color: #CCCC99;
Color: #3399FF;
Border-Style: Double;
}"
End Sub
and you change the color of the Run BASIC text editor. Is there a list of reserved words that shouldn't be used for handles anyplace?