411 REFERENCE · Wikibooks
Futurebasic/Language/Reference/usr stroffset
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Syntax
USR STROFFSET
Revised
September 17, 2000 (Release 4)
Description
Returns the offset position (in bytes) to the beginning of a string element specified by element% in a STR# resource with an ID of resID% or from a handle that matches the STR# resource style. Example:
dim t$,offset&,h&
h& = fn getresource(_"STR#",-20481)
long if h&
offset& = usr stroffset(65,-20481)
print PSTR$([h&]+offset&)
end if output:
Could not locate the AppleGuide help file. To access the help file, you need to have it installed in the Extensions folder inside your System Folder.
See Also
STR#, STRINGLIST