Jump to content

Script If GetFloatValue dont exist in file


Swe-DivX

Recommended Posts

Posted

PageFileValuesFloat = GetFloatValue(path, PageFileValuesString) returns 0 even if the value don't exist in the file.

 

I want it to be -1 if the float value don't exist.

Posted
1 hour ago, Swe-DivX said:

PageFileValuesFloat = GetFloatValue(path, PageFileValuesString) returns 0 even if the value don't exist in the file.

 

I want it to be -1 if the float value don't exist.

 

From StorageUtil.psc

float function GetFloatValue(Form ObjKey, string KeyName, float missing = 0.0) global native

 

PageFileValuesFloat = GetFloatValue(path, PageFileValuesString, missing = -1)

 

Posted
3 hours ago, alex77r4 said:

 

From StorageUtil.psc

float function GetFloatValue(Form ObjKey, string KeyName, float missing = 0.0) global native

 

PageFileValuesFloat = GetFloatValue(path, PageFileValuesString, missing = -1)

 


Tanks !

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...