TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: TIM HUTZLER
date: 1997-01-13 08:27:00
subject: reading strings

This has got me befuddled...
I want to read a string passed to a internal proceedure. You know a
SUB or FUNCTION defined within the PB source or one of its include
files.
Within the proceedure I can use the following to get the handle.
SUB ReadString (str AS STRING)
ASM LDS BX,str
ASM MOV AX,[BX]
[...]
The above puts the string *handle* in AX. However, that doesn't tell
me where the string is. And, I don't know how to locate the string. I
tried to use CALL GETSTRLOC. but that doesn't work, since it only
available to *external* proceedures.
So, I'm stuck as far as pointing to a string area.
BYW, I am aware of STRPTR and STRPTR32. And, I will be investigating
them shortly. But, I consider them a roundabout way of getting to a
string. I want to aboid them, if possible.
Any idears?
___ 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™.