PlanetSquires Forums

Support Forums => José Roca Software => Topic started by: Paul Squires on August 04, 2025, 10:31:34 PM

Title: DWStrParse
Post by: Paul Squires on August 04, 2025, 10:31:34 PM
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)


Title: Re: DWStrParse
Post by: José Roca on August 05, 2025, 03:36:22 AM
I'm sorry. It must be

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