User Tools

Site Tools


compare_symbols_numeric

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
compare_symbols_numeric [2018/03/21 15:46] – created wikiadmincompare_symbols_numeric [2018/03/21 15:48] wikiadmin
Line 3: Line 3:
 Since in VO symbols really are a numeric value, some statements work: Since in VO symbols really are a numeric value, some statements work:
  
-[code]local aField as array+<code>local aField as array
 local nSearch as usual local nSearch as usual
 local nPos as dword local nPos as dword
Line 9: Line 9:
 aField := { #Chris, #Robert, #Fabrice, #Nikos } aField := { #Chris, #Robert, #Fabrice, #Nikos }
 nSearch := 5 nSearch := 5
-nPos := AScan( aField, nSearch )[/code]+nPos := AScan( aField, nSearch )</code>
      
 In X# with the Vulcan runtime this code gives an exception. In X# with the Vulcan runtime this code gives an exception.
Line 15: Line 15:
 Even this code compiles and runs without error: Even this code compiles and runs without error:
  
-[code]local nSearch as usual+<code>local nSearch as usual
 local nPos as dword local nPos as dword
  
Line 24: Line 24:
 endif endif
 if nPos == #Hallo if nPos == #Hallo
-endif[/code]+endif</code>
  
-This code does not compile: +This code does not compile even in VO
-[code]if 5 == #Hallo[/code]+<code>if 5 == #Hallo</code>
  
  
  
compare_symbols_numeric.txt · Last modified: 2018/03/21 16:02 by wolfgangriedmann