[futurebasic] Re: [FB] Easy one?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2001 : Group Archive : Group : All Groups

From: Sylvain Guillemette <sylvain@...>
Date: Thu, 28 Jun 2001 08:51:42 -0400
> How do I grab a text resource (not styled) from the resource and put it
> in a string variable?
> 
> I use str# to get string resources but didn't notice a corresponding
> command for Text.
> 
> Martin


Without any error/length checking:

MyTextHandle = FN GET1RESOURCE (_"TEXT", 128)
TextLength = FN GETHANDLESIZE (MyTextHandle)
BLOCKMOVE [MyTextHandle], @MyString + 1, TextLength
POKE (@MyString), TextLength

HTH,

Sylvain Guillemette
---
Email:    Sylvain@...
Web:   http://www.MacBrowse.com