I do not entirely understand what you are asking, but I have a few things...
In your first posted code
Try this:
if conf_programnumber# >0
conf_program1$=get_data1(conf_program1$)
if conf_programnumber# =1
conf_program2$=get_data1(conf_program2$)
endif
if conf_programnumber# =2
conf_program3$=get_data1(conf_program3$)
endif
if conf_programnumber# =3
conf_program4$=get_data1(conf_program4$)
endif
if conf_programnumber# =4
conf_program5$=get_data1(conf_program5$)
endif
if conf_programnumber# =5
conf_program6$=get_data1(conf_program6$)
endif
endif
Sorry for the messy spacing.
In your first attempt
1. The VAL(String) command does not work with real numbers, it works with strings, that's why it says STRING.
If you want to convert your real number into a string, use the STR$(Value,deciamal places) command. The "decimal places" is the number of deciaml places in the variable that you are trying to translate.
If you want to convert a real number into an integer, just write something like INTEGER=REAL# that simple.
Oh, and you cannot change variables within your code with more code. Like this will not change the add-on of a variable.
You could try an array, however. That's all I can say now I have to go someplace.