[futurebasic] STR# resource

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

From: Barrie <barrie@...>
Date: Fri, 19 Mar 2004 11:40:59 -0500
How do I replace a STR# resource element?
My app is a PG:PRO project running in OS 9.2.
PG:PRO has a set of STR# resource functions that don't work in my app. I
have also tried the following as a test, and it did not work.

a$ = "Test"
resHandle& = FN NEWHANDLE _clear (2)
LONG IF resHandle&
DEF APNDSTR (a$, resHandle&)
CHANGEDRESOURCE(resHandle&)
END IF

I can read the resource OK with:
gStringFromList$ = STR#(5000,1)

The STR# resource has only 1 element and I'm trying to update it with a new
string but so far all attempts have failed.
thanks
Barrie