How can I cast a string to integer in Visual Prolog

104 Views Asked by At

I need to cast the string received from the editControl into a integer, how can I do this?

I try: toInt(String, Int), but this is not enebled for Visual Prolog or i dont know how enable it

1

There are 1 best solutions below

0
On BEST ANSWER

Convert it for example with predicate toTerm/2-> :

Int = toTerm(integer, String)