
Quote from CSSystems on February 24, 2024, 6:58 pmI just finished updating one of my applications realizing that a lot of the graphics using VisualNeo Win referred back to Neobook files (images).
I copied the original files from Neobook Projects to VisualNeo Projects folder. I have been using VisualNeo for some time.
After making all of the changes which took a longer time, I realized if my original design if I had use the [PubDir] variable and all the graphics were in the same folder instead of the path My Program would have automatically used the files in the folder and not look in the Neobook Projects folder.
Am I correct in this thinking? I will be looking my other programs and I bet I will have the same problem.
As an aside, I used the Documents folder to develop my programs with VisualNeo.
Is this a bad idea or should I be using a folder from the root i.e. c:/VisualNeo Projects?
I'm a little ashamed to be asking this question in my programming life, but that's why we have a forum.
I just finished updating one of my applications realizing that a lot of the graphics using VisualNeo Win referred back to Neobook files (images).
I copied the original files from Neobook Projects to VisualNeo Projects folder. I have been using VisualNeo for some time.
After making all of the changes which took a longer time, I realized if my original design if I had use the [PubDir] variable and all the graphics were in the same folder instead of the path My Program would have automatically used the files in the folder and not look in the Neobook Projects folder.
Am I correct in this thinking? I will be looking my other programs and I bet I will have the same problem.
As an aside, I used the Documents folder to develop my programs with VisualNeo.
Is this a bad idea or should I be using a folder from the root i.e. c:/VisualNeo Projects?
I'm a little ashamed to be asking this question in my programming life, but that's why we have a forum.

Quote from luishp on February 24, 2024, 7:38 pm@cssystems If I'm understandng you correctly, your problem can be easily adressed by editing your source .pub file directly using a code editor (even Windows Notepad should work). There you can use the "search and replace" funcitonality to replace the old path with the new desired one (or [PubDir] if you prefer). Just save the document and open it in VisualNEO Win (be sure to keep a backup, just in case). It takes just a few seconds.
Please let me know if I have not understood the problem.
@cssystems If I'm understandng you correctly, your problem can be easily adressed by editing your source .pub file directly using a code editor (even Windows Notepad should work). There you can use the "search and replace" funcitonality to replace the old path with the new desired one (or [PubDir] if you prefer). Just save the document and open it in VisualNEO Win (be sure to keep a backup, just in case). It takes just a few seconds.
Please let me know if I have not understood the problem.

Quote from Vadim on February 24, 2024, 7:55 pm@cssystems
There is one more way to simplify the transfer of files of the new version of the project to another folder: make the file paths relative. To do this, make a copy of the project using the Book/Archive (backup) menu.
https://winhelp.visualneo.com/ArchiveBackup.html
There is one more way to simplify the transfer of files of the new version of the project to another folder: make the file paths relative. To do this, make a copy of the project using the Book/Archive (backup) menu.

Quote from CSSystems on February 25, 2024, 1:57 amLuishp,
Great idea. I forget the pub file is just a text file.
I will put this to use as I look at my other apps.
Vadim,
I should have done this first. I have several app that I just used copy and paste to transfer the files to the VisualNeo projects folder.
Thanks for letting me know/remind me of the Achive Backup.
Luishp,
Great idea. I forget the pub file is just a text file.
I will put this to use as I look at my other apps.
Vadim,
I should have done this first. I have several app that I just used copy and paste to transfer the files to the VisualNeo projects folder.
Thanks for letting me know/remind me of the Achive Backup.

Quote from CSSystems on February 26, 2024, 5:32 pmMy attempt to use [PubDir] to point to the graphics file caused some problems.
Looked good on screen but after compiling the app and running, the graphics showed X where the image was to appear.
I resorted to using the full path to the graphics.
Took a lot of time but a LEARNING EXPERIENCE. (:
My attempt to use [PubDir] to point to the graphics file caused some problems.
Looked good on screen but after compiling the app and running, the graphics showed X where the image was to appear.
I resorted to using the full path to the graphics.
Took a lot of time but a LEARNING EXPERIENCE. (:

Quote from Vadim on February 27, 2024, 7:02 am@cssystems
The [PubDir] variable works correctly. You just need to make sure that the files are located in the folder with the program executable.
Another error may be a slash sign after [PubDir]. The slash is not required. It is necessary to find out why the graphic files were not opened.
The [PubDir] variable works correctly. You just need to make sure that the files are located in the folder with the program executable.
Another error may be a slash sign after [PubDir]. The slash is not required. It is necessary to find out why the graphic files were not opened.