Main Menu

DWStrParse

Started by Paul Squires, August 04, 2025, 10:31:34 PM

Previous topic - Next topic

Paul Squires

Just starting to use the DWStr* functions more from AfxNova.

I noticed that it will be impossible to do a string parse in reverse direction because the code in DWStrParse uses the following so that index will never be negative thereby never allowing fReverse to be TRUE. In the previous WinAfx library you used two variables, nPosition and nPos:

   index = ABS(index)
   DIM fReverse AS BOOLEAN = IIF(index < 0, TRUE, FALSE)


Paul Squires
PlanetSquires Software

José Roca

I'm sorry. It must be

DIM fReverse AS BOOLEAN = IIF(index < 0, TRUE, FALSE)
index = ABS(index)