TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: `CHRIS ANTOS (EXCHANGE)`
date: 1997-06-26 06:26:00
subject: RE: SAL programming

From: "Chris Antos (Exchange)" 
you may be able to use the framework in my FS macro for that.  it's on
the ftp site, or if you want it i have a slightly newer version that
fixes a couple obscure bugs.
my guess is you're really interested in settings per buffer (ie,
filename) not per bufferid?
//chris
| -----Original Message-----
| From:	James C. Sewell [SMTP:jims@MPGN.COM]
| Sent:	Wednesday, June 25, 1997 12:40 PM
| To:	tsepro@semware.com
| Subject:	SAL programming
| 
| Suggestion: Add integer arrays to SAL
| 
| Question 1: What is the range for BufferId()'s?
| 
| Question 2: What is the best way to emulate integer arrays?
| 
| Question 3: What is a better way to implement my function?
| 
| 
| I need to set a flag on/off for each of the buffers in my ring.
| GetBufferId() gives me a reference number for the buffer, but
| that is a seemingly random number that starts out around 20 or
| so... usually.  
| 
| My first thought, before realizing the unpredictability of these
| buffer numbers, was to have a string[10] and for each buffer set
| string[buffer number] to "1" or "0".  This works, but considering
| the id's I'd have to make string's size really big and I prefer
| not to do that.  Besides that, what if a buffer id is bigger than
| 255 (the biggest string)... then my routine fails and someone loses
| data.  A Bad Thing.
| 
| Open to suggestions...
|        Jim
| 
| This answer, and my routine, may be a good tutorial in the near
| future...
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

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™.