[Gambas-user] why this could not be? error in runtime?

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Jul 29 02:33:00 CEST 2017


Because the line makes no sense at all. Try to remove ")".


Jussi

On Fri, Jul 28, 2017 at 11:55 PM, PICCORO McKAY Lenz <mckaygerhard at ...626...
> wrote:

> in the following code:
>
>     strinchar = Mid(strinchar, 1, InStr(strinchar, ")", -1) - 1)
>
> IDE said error invalid argument, but if i do:
>
>     psotionlen = InStr(strinchar, ")", -1) - 1
>      strinchar = Mid(strinchar, 1, psotionlen)
>
> works, why?
>
> i wnat to remove the last occurence of a char but bybass some possible
> spaces/chars at the end of string
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list