<div dir="ltr">Hi Fabien,<br>with profiling enabled, they seem equivalent here.<br>'---------------------------------------------------<br>Public Sub Main()<br><br> Fabien<br> 'Gianluigi<br><br>End<br><br>Private Sub Fabien()<br><br> Dim s As String = "3.13.90"<br> Dim ars As String[]<br><br> 's = System.FullVersion<br> ars = Scan(s, "*.*.*")<br> If ars[0] = "3" Then<br> If Len(ars[1]) = 1 Then<br> s = ars[0] & ".0" & ars[1] & "." & ars[2]<br> Endif<br> Else<br> Print "#Unable to proceed"<br> Quit<br> Endif<br> If s > "3.08.0" Then<br> Print "Project A"<br> Else<br> Print "Project B"<br> Endif<br><br>End<br><br>Private Sub Gianluigi()<br><br> Dim s As String = "3.13.90"<br><br> 's = System.FullVersion<br> If Scan(s, "*.*.*")[0] = "3" Then<br> If Len(Scan(s, "*.*.*")[1]) = 1 Then<br> s = Scan(s, "*.*.*")[0] & ".0" & Scan(s, "*.*.*")[1] & "." & Scan(s, "*.*.*")[2]<br> Endif<br> Else<br> Print "#Unable to proceed"<br> Quit<br> Endif<br> If s > "3.08.0" Then<br> Print "Project A"<br> Else<br> Print "Project B"<br> Endif<br><br>End<br>'----------------------------------------------<br>Regards<br>Gianluigi</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno lun 17 giu 2019 alle ore 10:41 Fabien Bodard <<a href="mailto:gambas.fr@gmail.com">gambas.fr@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>not better but :</div><div><br></div><div> Dim s As String<br>Dim ars as string[]<br> s = System.FullVersion</div><div> ars=scan(s,"*.*.*")<br></div><div>If ars[0] = "3" Then<br> If Len(ars[1]) = 1 Then<br> s = ars[0] & ".0" & ars[1] & "." & ars[2]<br> Endif<br> Else<br> Print "#Unable to proceed"<br> Quit<br> Endif<br> If s > "3.08.0" Then<br> 'Component.Load...<br> Shell "./ProgA.gambas"<br> Else<br> 'Component.Load...<br> Shell "./ProgB.gambas"<br> Endif</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 16 juin 2019 à 19:49, Gianluigi <<a href="mailto:bagonergi@gmail.com" target="_blank">bagonergi@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">You mean something like this?<br>'----------------------------<br>Public Sub Main()<br><br> Dim s As String<br><br> s = System.FullVersion<br> If Scan(s, "*.*.*")[0] = "3" Then<br> If Len(Scan(s, "*.*.*")[1]) = 1 Then<br> s = Scan(s, "*.*.*")[0] & ".0" & Scan(s, "*.*.*")[1] & "." & Scan(s, "*.*.*")[2]<br> Endif<br> Else<br> Print "#Unable to proceed"<br> Quit<br> Endif<br> If s > "3.08.0" Then<br> 'Component.Load...<br> Shell "./ProgA.gambas"<br> Else<br> 'Component.Load...<br> Shell "./ProgB.gambas"<br> Endif<br><br>End<br>'-----------------------------<br>it seems to me a good solution.<br><br>But maybe others have better solutions ...<br><br>Regards<br>Gianluigi</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno dom 16 giu 2019 alle ore 19:11 Jorge Carrión <<a href="mailto:shordi@gmail.com" target="_blank">shordi@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>It doesn't work, Gianluigi. I can't create the installation packages without link with qt4 or qt5 first, and I can't change the qt version to work at run time.</div><div>I think that the only one solution is create both packages qt4 or qt5 and a shellscript that launches one or another depending of S.O. version.</div><div>Its a little trickie, but can't imagine other solution... (well... maybe a little proyect that <i>install </i>one or other depending of S.O. version). <br></div><div>I'll think about this a little more, I guess.<br></div><div><br></div><div>Thanks for you interest.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El sáb., 15 jun. 2019 a las 17:46, Jorge Carrión (<<a href="mailto:shordi@gmail.com" target="_blank">shordi@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Oh! I didn't knew I can load components at run time!<div dir="auto">I'll try that.</div><div dir="auto">Thanks a lot Gianluigi.</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El sáb., 15 jun. 2019 13:23, Gianluigi <<a href="mailto:bagonergi@gmail.com" target="_blank">bagonergi@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">... or<br><br>Public Sub Main()<br><br> If System.FullVersion > ... Then<br> Component.Load...<br> Esle<br> ...<br> Endif<br><br>End<br><br>Regards<br>Gianluigi</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno sab 15 giu 2019 alle ore 13:02 Gianluigi <<a href="mailto:bagonergi@gmail.com" rel="noreferrer" target="_blank">bagonergi@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Jorge,</div><div>I probably didn't understand, but shouldn't you use gb.form.editor (with gb.gui.qt)?</div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno sab 15 giu 2019 alle ore 11:00 Jorge Carrión <<a href="mailto:shordi@gmail.com" rel="noreferrer" target="_blank">shordi@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi everybody,</div><div><br></div><div>I have a project that uses the textedit component from gb.qtX.ext Component. With latest versions of SO (Linuxmint 19 + Cinnamon)It works fine but with older versions not. I can use the gb.qt4.ext component but it generates some problems with latest versions (menu's icons not visible).</div><div>If I try to use the gb.gui.qt component (That should be the answer, isn't it?) then I can't link either gb.qt4.ext or gb.qt5.ext</div><div>Is there a way to do that? <br></div><div><br></div><div>Best regards<br></div></div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>
</blockquote></div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>
</blockquote></div></div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_-5785137596766083355gmail_signature">Fabien Bodard </div>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>