[futurebasic] Re: [FB] Edit Field to TEXT and styl (got it!)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2000 : Group Archive : Group : All Groups

From: AlStaff@...
Date: Sat, 25 Mar 2000 19:07:49 EST
>>efH& = TEHANDLE(efID)
>>txtHndl& = efH&..teTextH&
>>'This gives you the handle used by the edit field.
>>'To make your own copy of that handle block, use this:
>>txtHndl& = FN HAND2HAND(efH&..teTextH&)
>I couldn't get this to work.  After looking closer at the example I 
>found, I missed that he used FN NEWHANDLE then BLOCKMOVE to move the 
>'styl' info _only_ to the new block.  I figured this would work if I 
>just got the 'TEXT' info from the same block.  This worked just as I 
>(It feels good to figure these things out)

I don't think I ever got that to work either which is why I went with GET 
FIELD, NEWHANDLE, and BLOCKMOVE. I was going to tell you to BLOCKMOVE the 
style into a new handle, but you figured it out on your own. Good for you.

You might still need a RELEASERESOURCE (styleHndl&) and RELEASERESOURCE 
(textHndl&), but I'm not sure since I don't know if FN pGreplaceRes handles 

Al Staffieri Jr.