PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode
  • Array items of the data file: change of behavior
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
FileToMemory (Function)
In French: FichierVersMémoire
Automatically initializes the values of the members found in a class or in a structure with the values of the items of the current record found in a data file.
Versions 17 and later
You also have the ability to initialize the values of advanced members from the values of items of the current record in a data file.
New in version 17
You also have the ability to initialize the values of advanced members from the values of items of the current record in a data file.
You also have the ability to initialize the values of advanced members from the values of items of the current record in a data file.
Note: FileToMemory performs no read operation on the data file. The value of the record loaded in memory is used to initialize the values of the members. Therefore, a record must be loaded in memory beforehand (HRead, HReadSeek, HReadFirst, ...).
In WEBDEV, you also have the ability to use FileToPage.
Versions 15 and later
WINDEVJava This function is now available for the Java applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Android This function is now available for the Android applications.
New in version 15
WINDEVJava This function is now available for the Java applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
WEBDEV - Server codePHP This function is now available for the PHP sites.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Syntax
FileToMemory(<Name of Instance of Structure or Class> , <File Name>)
<Name of Instance of Structure or Class>: Structure or Class variable
Name of the instance of the class or structure in which the members must be initialized with the values of the current record in the data file. The name of class or structure variable must be specified.
Note: If this function is called in a class instance, the "object" keyword must be used to retrieve the current instance.
<File Name>: Character string (with or without quotes)
Name of the data file to which the linked items belong.
Remarks

Operating mode

  • If a member of the structure or class is named like an item of the HFSQL data file, the value of the item in memory is copied into the value of the member. The name of the member must contain no prefix. The case and the accented characters are ignored when comparing the name of items and the names of members.
  • If a member of the structure or class has no item with the same name in the HFSQL data file, its value is not modified. To initialize the value of the members before the call to FileToMemory, use VariableReset.

Array items of the data file: change of behavior

  • In version 15, if the WLanguage array contained N elements (N being less than the size of the array of HFSQL), FileToMemory copied the first N elements of the Array item of the HFSQL data file. The WLanguage array was not enlarged.
  • From version 16, at the end of the operation, the WLanguage array and the array of HFSQL data files contain the same number of elements.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment