* *
* * News
 • Daily news
 • Archived news

 • WildCard
 • Qbasic Articles
 • QB Comic!

Learning center
 • QB Books
 • Qbasic Lessons!
 • Qbasic FAQ
 • Newbies Section
 • Qbasic Tutorials

* *
.DEF SEG Statement Details.

  QuickSCREEN      Details      Example      Contents      Index
DEF SEG Statement Details
  DEF SEG [=address]
For BLOAD, BSAVE, CALL ABSOLUTE, PEEK, and POKE, address is used as
the segment. The address is a numeric expression returning an unsigned
integer in the range 0-65,535. A value outside this range produces the
error message "Illegal function call." The previous segment is
retained if an error occurs. If you omit address, the BASIC data
segment is used.
Be sure to separate DEF and SEG with a space. Otherwise, BASIC
interprets the statement to mean "assign a value to the variable
Differences from BASICA
In QuickBASIC, the CALL and CALLS statements do not use the segment
address set by DEF SEG.
* * ** * * * *