Page 1 of 1

Show text in a dialog

Posted: Wed Aug 04, 2021 5:59 am
by Wersi
Hi, everyone,

I have a problem.

In one dialog, the user can choose between two files, which of them will be displayed in the next dialog.

The selection and display of the file works perfectly in debug mode.

In the later installation exe then no longer.

Where is the mistake?

The test project consists of only a few lines

Does somebody has any idea?

Regards

Ulrich

label: SelectRead
Dislay Dialog: SelectRead, wait for dialog return (modal)
Read from Text File #READALL\$Filename$ into Variable ShowIni
label ShowText
Dislay Dialog: ShowText, wait for dialog return (modal)

Re: Show text in a dialog

Posted: Wed Aug 04, 2021 1:35 pm
by FrancescoT
How does the "Filename variable" (which should point to the full path of the file, I suppose) get resolved by the script?

Re: Show text in a dialog

Posted: Thu Aug 12, 2021 10:32 am
by Wersi
Sorry for the late reply. I had to finish another project.

As a quick solution, I have cached the text once.

In the first dialog the user selects the desired text file via a FileListBox.

Then read the text of the selected file into a variable and save this text in the temp.txt file

Then I read the temp.txt file into a new variable and this text is then displayed correctly in the next dialog.

Without this intermediate step, it would not work.

In debug mode, the display of the text also works without the intermediate step.

The paths used are all in plain text without variables.

Re: Show text in a dialog

Posted: Fri Aug 13, 2021 12:20 pm
by FrancescoT
If you have a chance to share a very minmal project that replicates the issue, I'll be more than happy to verify the issue you seems to have.

Unfortunately, without having the code ...it's not easy to say what is be going on.