News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

String manipulation (Replace)

Started by Ksbunker, January 01, 2007, 06:58:51 AM

Previous topic - Next topic

Ksbunker

In VB, I believe the function im looking for is "replace(string, find, replace)"

Is this function in any of the includes I can't seem to find it? If its not.

How would I go about doing this?

Cheers

hutch--

There is a replace procedure in the masm32 library. Ensure you understand how to allocate enough memory for the output buffer if your replacement is larger than the target text.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Ksbunker

I cannot seem to locate any replace function, perhaps I have an outdated version of masm32.inc?

    szappend    PROTO :DWORD,:DWORD,:DWORD
    szCatStr    PROTO :DWORD,:DWORD
    szCmp       PROTO :DWORD,:DWORD
    szCmpi      PROTO :DWORD,:DWORD,:DWORD
    szCopy      PROTO :DWORD,:DWORD
    szLeft      PROTO :DWORD,:DWORD,:DWORD
    szLen       PROTO :DWORD
    szLower     PROTO :DWORD
    szLtrim     PROTO :DWORD,:DWORD
    szMid       PROTO :DWORD,:DWORD,:DWORD,:DWORD
    szMultiCat  PROTO C :DWORD,:DWORD,:VARARG
    szRemove    PROTO :DWORD,:DWORD,:DWORD
    szRev       PROTO :DWORD,:DWORD
    szRight     PROTO :DWORD,:DWORD,:DWORD
    szRtrim     PROTO :DWORD,:DWORD
    szTrim      PROTO :DWORD
    szUpper     PROTO :DWORD

hutch--

I would imagine so, version 9.0 of masm32 has a module that is documented in the masmlib help file with a matching library module and an include file. The module dates 11/30/2005.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php