TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: DBIT AS
date: 1998-03-25 21:31:00
subject: Set/GetGlobalStr - speed/limit ?

From: dBit AS 
I have tried using the GetGlobalStr function for a kind of "associative 
arrays" (like Perl).
  EditFile("customer.lst")   --->   10001Customer name # 1
  Repeat                            10002Customer name # 2....
    Key = GetText(1,5)
    Data = GetText(6,30)
    SetGlobalStr(Key,Data)
    StopIt()
    Message(CurrLine())
  Until Not Down()
After about 255 (I guess) loops this slows down significantly.  Is there
a smarter way to accomplish this ?  How many SetGlobalStr/Int variables 
can be created - are there any limit at all ??
By the way: I finally got my 2.5 .UI converted to 2.8 - ready for 3.0 :)
- SOI -
---
---------------
* 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™.