TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ANTON MONROE
from: TIM HUTZLER
date: 1996-08-06 21:03:00
subject: Re: UNION and ather triv

TH> problems because the user (TYPE) structure generates a variable
  > type mismatch, ie. MyUserType = INPUT$(128,1)
AM> It sounds like what you want is LSET. As in:
 AM> TYPE Hobbit
 AM> Name as string * 5
 AM> Height as integer
 AM> END TYPE
 AM> DIM Frodo as Hobbit
 AM> AString$ = "Frodo" + chr$(3, 0)
 AM> LSET Frodo = AString$
You know, Anton, I'm sure I tried this; and it didn't work.
I've been away foe a few days and I'm a bit in a daze now.
Let's see... It all began when I was.... Hmmm... no time for that...
I am decoding QWK packets. As you may know QWK packes are constructed
of 128-byte records. Each post is made up of a header record and
usually one or more text records. The header record is composed
several fixed length fields for which a user TYPE works very well.
However the text records is essentially one continuous string.
Well, I want to read the first record into a user variable like the
following:
TYPE a
    var AS STRING * 25
    [...] (all are STRING * x
    var+n AS STRING * 25
END TYPE
DIM header AS a
OPEN .... AS 1
header = INPUT$(128,1)
I found that this doesn't work.
 
___ Blue Wave/QWK v2.12
--- 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™.