[Gambas-user] Shell command
Jussi Lahtinen
jussi.lahtinen at ...626...
Sun Aug 6 14:17:53 CEST 2017
I guess settings component can't handle saving of arbitrary object. In this
case "Settings["Options/stmDevice"] = ComboBox1.Current". Maybe you want to
save ComboBox1.Current.Text?
However there shouldn't be segfault.
Jussi
On Sun, Aug 6, 2017 at 7:18 AM, Shane <buster6seven at ...626...> wrote:
> I have this in a sub form
>
> Public sdevices As String
>
>
> Public Sub SaveOps_Click()
>
> Settings["Options/CCompCLine"] = TextBox1.Text
> Settings["Options/stmDevice"] = ComboBox1.Current
> 'Settings.Save()
> Me.Close
> End
>
> Public Sub Form_Open()
> Dim devices As String[]
> Dim d As String
> '
> TextBox1.Text = Settings["Options/CCompCLine"]
> Shell "stm8flash -l" To sdevices
> ' fill combobox with devices
> devices = Split(sdevices, " ")
> For Each d In devices
> ComboBox1.Add(d)
> Next
> ' ComboBox1.Find(Settings["Options/stmDevice"])
>
> End
>
> but when I exit this form and then the main form i get s Seg fault
>
> but with the shell part commented out it is ok what am i doing wrong ?
>
> any ideas
>
> Thanks Shane
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list