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

PICCORO McKAY Lenz mckaygerhard at ...626...
Fri Jul 28 22:55:09 CEST 2017


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



More information about the User mailing list