Thank you. A couple of followup questions:
* What images are used in the Image Path folder? (I'll be looking at the Gem database for clues, but I thought I'd ask as well.)
* If my working folder is F:\Sesame\Miara and I want to use @AsynchShell() with a relative path to elsewhere on the F: drive (say F:\Images, for example), is that possible? Or is "relative pathing" just tunneling downward? Currently I have this code working:
// Launches the image whose filename is stored in Image_1
Var vLaunchImage as Int
Var vFullImagePath as String
IF NOT @MODE() = 2 // Check to make sure you're not in the Retrieve Spec
THEN
{
vFullImagePath = (sImageDir + Image_1)
IF FileExists(vFullImagePath)
THEN
{
vLaunchImage = @AsynchShell(vFullImagePath)
}
ELSE
{
@MsgBox("Looking for " + vFullImagePath, "but unable to find this file on disk.", "Is the file name correct?")
}
}
ELSE
{
@MsgBox("This button only works in ADD or UPDATE mode", "", "")
}
sImageDir is a global static declared in global programming. It is currently initialized as "F:\Images\".
I would like to use an #include statement to initialize this static (I asked about initializing in an #include in another thread) and relative mapping to make this variable drive independent. I'm hoping to make all my code drive independent, but I also have some other hard coding elsewhere in my code, namely @Insert() statements that point another global static, sInsertDir to "F:\Sesame\Miara\Inserts".
Thanks again for your help Erika.