Subject Re: text2num not found
From Mervyn Bick <invalid@invalid.invalid>
Date Tue, 14 Nov 2023 19:51:59 +0200
Newsgroups dbase.getting-started

On 2023/11/14 18:16, charlie wrote:
> I have found a use for text2num function in the stringex.cc, but I cannot get it to work.  As a matter of fact 2 of my computers will not even acknowledge it exists.  Is there something wrong with the program?  I have uploaded results in my command try.  I have also tried it in a form, I have tried it using both dbase 10 and 11.  Maybe it won't work on those?  I hope that isn't the case.  Looks like it is written for windows 19.  Is that the problem?

The text2num method only made it into the dUFLP in August 2021 but as
long as you have the latest version of the dUFLP installed it should
work with both dBASE 10 and dBASE 11.

The error you are getting is because you haven't read the instructions. :-)

text2num() is a method of a stringex object.  You need to create an
instance of the stringex object first.  Once the instance exists you can
execute it's methods.

set procedure to :duflp:stringex.cc
oStr = new stringex() //create the istance
?oStr.text2num('123,456.12','.')


Mervyn.