I have a process with the following logic on the Prolog:
Code: Select all
vAdminCube = 'Admin Cube';
vDay = cellgets(vAdminCube, 'Actuals', 'Current Year', 'Day');
sFile='C:Path\testday.txt';
If( vDay @= '03' );
Asciioutput(sFile, 'Test Output');
Endif;
Also the Asciioutput doesn't execute.
Here comes the weirdness:
If in the above code I insert the following code before vDay the cell Type is real error still happens but the Aciioutput now executes!
Code: Select all
nSerialNow = NOW;
vTimeStamp= TimSt (nSerialNow, '\Y\m\d\h\i\s');
vDay=subst(vTimeStamp,7,2);
vAdminCube = 'Admin Cube';
vDay = cellgets(vAdminCube, 'Actuals', 'Current Year', 'Day');
sFile='C:Path\testday.txt';
If( vDay @= '03' );
Asciioutput(sFile, 'Test Output');
Endif;
Does anyone have an explanation as to what is going on?