ScriptClear Method - neoVI API
Last updated
int iRetVal;
unsigned long lLastErrNum;
//Clear the script from it's storage location.
//Both SCRIPT_LOCATION_FLASH_MEM and SCRIPT_LOCATION_SDCARD are persistent.
//On a ValueCAN 3, SCRIPT_LOCATION_VCAN3_MEM will clear when the device
//loses power or resets.
iRetVal = icsneoScriptClear(hObject, DefaultScriptLocation);
if(iRetVal == 0)
{
printf("\nFailed to clear the script);
}
else
{
printf("\nSuccessfully cleared the script");
}Int32 iResult;
//clear CoreMini
iResult = icsNeoDll.icsneoScriptClear(m_hObject, Convert.ToInt32(CoreMiniStoreLocation.SCRIPT_LOCATION_FLASH_MEM));
if(iResult == 0)
{
lblCMStatus.Text = "CoreMini Failed to Clear";
}
else
{
lblCMStatus.Text = "CoreMini Cleared";
}Dim iResult As Int32
'//clear CoreMini
iResult = icsneoScriptClear(m_hObject, SCRIPT_LOCATION_FLASH_MEM)
If iResult = 0 Then
lblCMStatus.Text = "CoreMini Failed to Clear"
Else
lblCMStatus.Text = "CoreMini Cleared"
End If