Hmmmmmm

 BBS: Inland Empire Archive
Date: 12-08-92 (17:59)             Number: 305
From: CHRIS WAGNER                 Refer#: NONE
  To: PETE DUDESEK                  Recvd: NO  
Subj: Hmmmmmm                        Conf: (2) Quik_Bas
 PD> Any ideas (anyone) why the following won't work?
 PD> A$ = HEX$(100)
 PD> A& = &hA$
 PD> Hmmmmm

 Try this:

 A$ = HEX$(100)
 A& = VAL("&H" + A$ + "&")

 The trailing & forces long integers so that numbers greater than
 or equal to 2^15 don't set the sign bit.


--- Maximus 2.01wb
 * Origin: DREAMLINE, Wrightstown PA (215)598-8122 (1:273/202)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET