'=========================================================================== ' Subject: DIFFERENT LINE STYLES Date: 12-22-97 (12:06) ' Author: Nigel Traves Code: QB, QBasic, PDS ' Origin: FidoNet QUIK_BAS Echo Packet: FAQS.ABC '=========================================================================== 'While I normally post libraries in here, this is not one of them. 'Just for a change I am posting a small program that illustrates what 'is probably an underused parameter of a well known command, LINE. If 'you check out either the manual or the help system, you will see that 'the final (optional) parameter that can be passed to the LINE 'statement is one called linestyle. In order to show what this 'parameter can produce when properly used here are 13 (12a? ) 'constants, for you to use, that are part of the following small 'program. CONST DenseDotted% = &HAAAA '| "- - - - - - - - " CONST MediumDotted% = &H8888 '| "- - - - " CONST SparseDotted% = &H8080 '| "- - " CONST OneDot% = &H80 '| " - " CONST LongDash% = &HFFFC '| "-------------- " CONST MediumDash% = &HFCFC '| "------ ------ " CONST ShortDash% = &HDDDD '| "--- --- --- --- " CONST WideGapped% = &HF0F0 '| "---- ---- " CONST SparseDash% = &HCCCC '| "-- -- -- -- " CONST LongShort% = &HFDBF '| "------ -- ------" CONST DashDot% = &HFAFA '| "----- - ----- - " CONST DotDashDot% = &H9FE4 '| "- -------- - " CONST SixThreeOne% = &HFCE4 '| "------ --- - " SCREEN 1 COLOR 8, 1 MyY% = 7 Gap% = 14 MyColour% = 3 X1% = 15 X2% = 302 LINE (X1%, MyY%)-(X2%, MyY%), MyColour% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , DenseDotted% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , MediumDotted% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , SparseDotted% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , OneDot% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , LongDash% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , MediumDash% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , ShortDash% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , WideGapped% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , SparseDash% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , LongShort% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , DashDot% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , DotDashDot% MyY% = MyY% + Gap% LINE (X1%, MyY%)-(X2%, MyY%), MyColour%, , SixThreeOne% Q$ = INPUT$(1) END