Blitz (26/176)

From:Richard Brooklyn
Date:5 Jul 2001 at 08:10:25
Subject:Re: GetVar_

Hello David

On 03-Jul-01, you wrote:

> Something like this might work:
>
> #BUFSIZE=256
> Dim buff.b(#BUFSIZE) ; some buffer memory for the variable to be stored in
> varname$="IAMSTUPID" ; better to have a variable for the name
> reslen.l=GetVar_(&varname$, &buff(0), #BUFSIZE, 0)
> If reslen=-1
> If IoErr_=#ERROR_OBJECT_NOT_FOUND
> NPrint "Variable not set"
> EndIf
> Else
> NPrint varname$," = ",Peek$(&buff(0))
> EndIf

Yay! That worked perfectly! Thanks.

Regards



Richard Brooklyn

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie