User Tools

Site Tools


compare_symbols_numeric

This is an old revision of the document!


Compare symbols to numerics

Since in VO symbols really are a numeric value, some statements work:

[code]local aField as array local nSearch as usual local nPos as dword

aField := { #Chris, #Robert, #Fabrice, #Nikos } nSearch := 5 nPos := AScan( aField, nSearch )[/code]

In X# with the Vulcan runtime this code gives an exception.

Even this code compiles and runs without error:

[code]local nSearch as usual local nPos as dword

nSearch := 5 nPos := 5

if nSearch == #Hallo endif if nPos == #Hallo endif[/code]

This code does not compile: [code]if 5 == #Hallo[/code]

compare_symbols_numeric.1521647183.txt.gz · Last modified: 2018/03/21 15:46 by wikiadmin