Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Linux Dist-Ubuntu Arch-Any Desktop-Any GUI-Any
New issue 569 by cmelissa...@gmail.com: Replace$ doenst work. https://code.google.com/p/gambas/issues/detail?id=569 1) Replace$ doesnt work e.g. in the following code replace space with underscore: ''''''''' CODE START '''''''''' Public Sub btnNew_Click() 'click the New Account button. Dim myProfile As String myProfile = InputBox(("Profile Name"), ("Enter new profile name")) Replace(myProfile, " ", "_") ' Replace$(myProfile, " ", "_") doesn't work either message(myProfile) End ''''''''' END OF CODE 2)System Info: [System] Gambas=3.6.0 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86 Distribution=Linux Mint 17 Qiana Desktop=GNOME Theme=QGtk Language=el_GR.UTF-8 Memory=1761M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 3) Provide a little project that reproduces the bug. go to: https://github.com/cograss/Git4all/GMB_Bug_Report download the branch in a zip file or: clone project in an empty folder by runing in a terminal "git clone https://github.com/cograss/Git4all/GMB_Bug_Report" in a terminal. Run Project click on menu: Settings > GitHUB Account. in the form click on "New Account" button. write a string with space in it. Bug reproduced (The combobox.text contains spaces). 4) It doesn't need any databases. 5) How to reproduce: a.Create a Button in an empty form. b.Doubleclick button to open code of button_Click c.Declare a String variable. (e.g. Dim myString As String) d.Assign a string containing spaces. (e.g. myString = "test space") e.Use Replace$ to replace spaces in string. (e.g. Replace(myString," ","_") f.Use message or any other, to see contents of string. (e.g. message(myString) Thank you for reading this bug report. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user