Am I missing something obvious or do I need to break this up to use LBB?
Code: Select all
DIM config(20)
config$(0) = "= 120"
config$(1) = "= 120"
config$(2) = "= 120"
config$(3) = "= 120"
config$(4) = "= 120"
config$(5) = "= 120"
config$(6) = "= 120"
config$(7) = "= 120"
config$(8) = "= 120"
config$(9) = "= 120"
config$(10) = "= 120"
AudioEnabled = VAL(TRIM$(AFTERLAST$(config$(0), "=")))
AudioConstant = VAL(TRIM$(AFTERLAST$(config$(1), "=")))
SpeechEnabled = VAL(TRIM$(AFTERLAST$(config$(2), "=")))
port$ = TRIM$(AFTERLAST$(config$(3), "="))
bufLen = VAL(TRIM$(AFTERLAST$(config$(4), "=")))
loglvl = VAL(TRIM$(AFTERLAST$(config$(5), "=")))
WavEnabled = VAL(TRIM$(AFTERLAST$(config$(6), "=")))
BeepEnabled = VAL(TRIM$(AFTERLAST$(config$(7), "=")))
AlarmWavFilename$ =(TRIM$(AFTERLAST$(config$(8), "=")))
MWULX = VAL(TRIM$(AFTERLAST$(config$(9), "=")))
MWULY = VAL(TRIM$(AFTERLAST$(config$(10), "=")))
MWWW = VAL(TRIM$(AFTERLAST$(config$(11), "=")))
MWWH = VAL(TRIM$(AFTERLAST$(config$(12), "=")))
AHULX = VAL(TRIM$(AFTERLAST$(config$(13), "=")))
AHULY = VAL(TRIM$(AFTERLAST$(config$(14), "=")))
LVW = VAL(TRIM$(AFTERLAST$(config$(15), "=")))
LVH = VAL(TRIM$(AFTERLAST$(config$(16), "=")))
'include lb45func.bas
Code: Select all
string$ = "test = value"
value$ = AFTERLAST$(string$, "=")
print value$
'include lb45func.bas