I need to make something like this:
;ReadFile(#FileModel , "Dades\" && Marca$ && ".txt")
Marca is a variable selected by a ComboBoxGadget.
Anyone can sayme the correct way to make it??
Carles "Doraemon" Bernardez
Read a file with a variable in the filepath.
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
Perhaps
Code: Select all
ReadFile(#File, "Dades" + marca$ + ".txt")
It do not run finefreedimension wrote:PerhapsCode: Select all
ReadFile(#File, "Dades" + marca$ + ".txt")

exaple of the datas:
MyProgram:dades/alcatel.txt
"" dades/nokia.txt
"" dades/sony.txt
........
Remember the slash after the folder name:
;ReadFile(#FileModel , "Dades\" && Marca$ && ".txt")
becomes:
;ReadFile(#FileModel , "Dades\" && Marca$ && ".txt")
becomes:
Code: Select all
marca$ = "alcatel"
;or marca$ = "nokia"
;or marca$ = "sony"
ReadFile(#FileModel, "Dades\" + marca$ + ".txt")
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact: