It is currently Wed Aug 22, 2018 3:07 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Comparisons .. are only supported with ..
PostPosted: Sat Jan 20, 2018 6:07 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 771
Location: right here
In the second and third If the braces after arr are missing, resulting in a confusing error message in the last case.
Code:
Structure sStruct
  Array arr.i(9)
EndStructure

Define i
Dim arr(9)
Define var.sStruct

If Bool(i >= 0 And i <= ArraySize(arr())) = #False   ; ok
EndIf

; If Bool(i >= 0 And i <= ArraySize(arr)) = #False   ; ok, Bad parameter type: an array is expected.
; EndIf

If Bool(i >= 0 And i <= ArraySize(var\arr)) = #False ; Comparisons (=, <, >, =< and >=) are only supported with keywords like If, While, Until or within Bool().
EndIf


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye