Hello
Could it be, that you submit more then one parameter with the name selected?
I tested your code with ?selected=12&selected=13
And then geht the same error, because Active4D creates an array from selected.
a4d.debug.dump collection (_query) // will return selected [0] {"", "12",
"13"}
Regards, Oliver
> Am 13.04.2017 um 06:05 schrieb Justin Will <[email protected]>:
>
> Apr 12 18:52:45 Active4D: [error] An operation on incompatible types was
> attempted: /F/a4dweb/50000/includes/programStandard.a4d, line 26
>
> Apr 12 13:51:23 Active4D: [error] An operation on incompatible types was
> attempted (expected a numeric expression or a text expression or a boolean
> expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
> Apr 12 13:51:23 Active4D: [error] An operation on incompatible types was
> attempted (expected a numeric expression or a text expression or a boolean
> expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
> Apr 12 14:27:46 Active4D: [error] An operation on incompatible types was
> attempted (expected a numeric expression or a text expression or a boolean
> expression): /F/a4dweb/50000/includes/programStandard.a4d, line 27
>
> Here's the lines of code called out as erroring.
>
> $vtProgID:=_query{"program_id"}
> $vnSelected:=Num(_query{"selected"})
>
> The following declarations are slightly above the assigments.
>
> C_Longint($vnSelected)
> C_Text($vtProgID)
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/