All i want to do is save these 5 varaibles when I leave the program and load them when I start them. They are the 5 that start with 'label'. They are type Double. I get errors "LabelBankrollAmount = f1". Is this because it's a string and i c=have to convert it over to double????
No offense, but the documnetation, tutorials are horrible. They cater to an elite bunch, but if I was that good I'd be using java/XML. BASIC is for people like me. I've read all of the documentation but can't figure this out.
Also, how do you make a splash screen?
===============================
Sub SaveINI
Dim List1 As List
List1.Initialize
List1.Add(LabelBankrollAmount)
List1.Add(LabelBuyInsAmount)
List1.Add(LabelWinsAmount)
List1.Add(LabelLossesAmount)
List1.Add(LabelPushesAmount)
File.WriteList(File.DirRootExternal, "List.txt", List1)
End Sub
Sub LoadINI
Dim List1 As List
List1 = File.ReadList(File.DirRootExternal, "List.txt")
f1 = List1.Get(0)
f2 = List1.Get(1)
f3 = List1.Get(2)
f4 = List1.Get(3)
f5 = List1.Get(4)
LabelBankrollAmount = f1
LabelBuyInsAmount = f2
LabelWinsAmount = f3
LabelLossesAmount = f4
LabelPushesAmount = f5
End Sub
No offense, but the documnetation, tutorials are horrible. They cater to an elite bunch, but if I was that good I'd be using java/XML. BASIC is for people like me. I've read all of the documentation but can't figure this out.
Also, how do you make a splash screen?
===============================
Sub SaveINI
Dim List1 As List
List1.Initialize
List1.Add(LabelBankrollAmount)
List1.Add(LabelBuyInsAmount)
List1.Add(LabelWinsAmount)
List1.Add(LabelLossesAmount)
List1.Add(LabelPushesAmount)
File.WriteList(File.DirRootExternal, "List.txt", List1)
End Sub
Sub LoadINI
Dim List1 As List
List1 = File.ReadList(File.DirRootExternal, "List.txt")
f1 = List1.Get(0)
f2 = List1.Get(1)
f3 = List1.Get(2)
f4 = List1.Get(3)
f5 = List1.Get(4)
LabelBankrollAmount = f1
LabelBuyInsAmount = f2
LabelWinsAmount = f3
LabelLossesAmount = f4
LabelPushesAmount = f5
End Sub