In Photo are the not functional Code. The Problem is in StartFolder that i replaced with Value from Registry. I have on this the Problem. Its for me no possible way to work. If %TargetFolder% as StartFolder directory not found. In screen i test various variants but no luck. If StartFolder Plaaintext "C:\Programm" the Code works good. If StartFolder replaced with Value not work.
Announcement
Collapse
No announcement yet.
Folder.Find Problem
Collapse
X
-
now i test many other variants and all works with build in session variables. but with own created session variable not work. after study manual i correct create custom variable under global functions. For test i call created variable in other screen and display in message. Only self created session variables not work. i total confused about this. with own variable error " argument1 must be type of string" displayed but with original build in variable no problem. Please give me little example for creating own variable thats accepted .
short piece of working code:
Folder1 = Folder.DoesExist(_SourceFolder);
if Folder1 then
Dialog.Message("......", ".......", MB_OK, MB_ICONINFORMATION);
else
Dialog.Message("......", ".......", MB_OK, MB_ICONINFORMATION);
end
short piece of non working code:
Folder1 = Folder.DoesExist(_CustomFolder);
if Folder1 then
Dialog.Message("......", ".......", MB_OK, MB_ICONINFORMATION);
else
Dialog.Message("......", ".......", MB_OK, MB_ICONINFORMATION);
end
CustomFolder are Readout by Registry:
local ProgrammFolder = Registry.GetValue(HKEY_LOCAL_MACHINE, "Path", "Value", true);
and Set to SessionVariable
SessionVar.Set("%CustomFolder%", ProgrammFolder);
please help me
Comment
Comment