[Gambas-user] gb.pcre RegExp.Replace does not work in GUI mode

Tobias Boege taboege at ...626...
Sun Nov 17 17:58:00 CET 2013


On Sun, 17 Nov 2013, derox wrote:
> Hi!
> 
> I cannot get the RegExp.Replace function to work in a GUI application
> (works wery well with CLI programs though...)
> 
> One example is a simple form with tree components TextEdit, TextBox and a
> Button, with the following code:
> 
> Public Sub btnFind_Click()
> 
>   Try txtText.Text = RegExp.Replace(txtText.Text, "(" & EdtExp.Text & ")",
> "_&1_")
>   If Error Then Message.Error(Error.Text)
> 
> End
> 
> No matter what expression I throw at it, I get this error: "unknown option
> bit(s) set"
> 
> Seing it works in CLI mode, I guess there must be a bug?

(Hopefully) fixed in rev#5963.

Regards,
Tobi




More information about the User mailing list