Skip to content

Implement a StrToResID function #5

Open
@delphidabbler

Description

There's already a ResIDToStr function. It's inverse would be useful if, when presented with a suitably formatted string it could be converted back to a resource ID.

Parsing rules:

  • If string starts with # and rest is numeric, then the resource ID is numeric and can be created with MakeIntResource.
  • Otherwise resource ID is just a Pointer to the string itself, which should be OK providing the string passed as parameter remains in scope.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions