[futurebasic] Re: [FB] PG pg3t text changer FN

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 1999 : Group Archive : Group : All Groups

From: AlStaff@...
Date: Sun, 21 Feb 1999 19:39:11 EST
>How do I take a string (eg. theString$ = "The file you want to save
>to is: DataFile") and build a "fake" edit field handle?


This should put theString$ into a new edit field type of handle named
TextHndl&. I think this is what you want.

theString$ = "The file you want to save to is: DataFile"
strLen& = LEN(theString$)
TextHndl& = FN NEWHANDLE _Clear(strLen& + 2)
LONG IF TextHndl& > 0
 osErr = FN HLOCK (TextHndl&)
 POKE WORD [TextHndl&], strLen&
 BLOCKMOVE @theString$, [TextHndl&] + 2, strLen&
 osErr = FN HUNLOCK (TextHndl&)
END IF


Al Staffieri Jr.

AlStaff@...
http://members.aol.com/AlStaff/index.html