TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: MARCEL VELDHUIZEN
from: TIM HUTZLER
date: 1996-08-10 09:10:00
subject: Re: String constants

TH> Declaring an numerical constant is done simply by preceeding the
  > name with a '%' char as in %constant =  declares a string constant.
MV> PB presently only supports integer-constants...
I suspect that a string constant simply is a pointer to the text of
the string. Thus literals are essentially constants. However, the
numerical constants are global by default, I wish such string
literals were, too.
MV> If PowerBASIC, inc. decides to add constants for all available
  > types, they will run into a slight problem... OPEN File$ FOR
  > BINARY AS #Handle Is it a constant, or a variable?:-) Only one of
  > the two can exist at a time, but it can be confusing:(
 
I believe that the 'type' of a varable is stored.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.