[Gambas-user] Copy and paste from printing IDE code

Fabien Bodard gambas.fr at gmail.com
Fri Jul 19 10:16:55 CEST 2019


Funny ...
The two ot three last char of each line are repeated on the next one.. cant
test now

Le jeu. 18 juil. 2019 14:40, Gianluigi <bagonergi at gmail.com> a écrit :

> Hi Benoit,
> I can't paste correctly in the IDE of the code printed by the IDE itself
> in pdf.
> Following the code copied and pasted: [0]
>
> Do I miss anything?
>
> Regards
> Gianluigi
>
> [0] ' Gambas module file
>
> Public Sub Main()
>
>   Dim sPath As String = User.Home &/ Application.Name
>
>   If Not Exist(sPath) Then Try Mkdir sPath
>   sPath = sPath &/ "Database"
>   If Not Exist(sPath) Then Try Mkdir sPath
>   Connections["Connection1"].host = sPath
>   If Not Exist(sPath &/ "test.sqlite") Then Try Copy
> "./Database/test.sqlite" To sPath &/ "test.sqlite"
>   Connections["Connection1"].Name = "test.sqlite"
>   FMain.Show
>
> End
>
> '' PASTE RESULT
>
> ' Gambas module file
> Public Sub Main()
> ()
> Dim sPath As String = User.
> .Home &/ Application.
> .Name
> If Not Exist
> Exist(
> (sPath)
> ) Then Try Mkdir sPath
> sPath = sPath &/ "Database"
> If Not Exist
> Exist(
> (sPath)
> ) Then Try Mkdir sPath
> Connections[
> ["Connection1"].
> ].host = sPath
> If Not Exist
> Exist(
> (sPath &/ "test.sqlite")
> ) Then Try Copy "./Database/test.sqlite" To sPath &/
> "test.sqlite"
> Connections[
> ["Connection1"].
> ].Name = "test.sqlite"
> FMain.
> .Show
> End
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190719/41891dce/attachment.html>


More information about the User mailing list