Difference between revisions of "OBJECTTYPE()"

From Lianjapedia
Jump to: navigation, search
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return object file extension
 
Function to return object file extension
 
  
 
==Syntax==
 
==Syntax==
OBJECTTYPE(<memofield>)
+
OBJECTTYPE(<object field>)
 
+
  
 
==See Also==
 
==See Also==
[[BINCREATE()]], [[BINCLOSE()]], [[BINOPEN()]], [[BINREAD()]], [[BINWRITE()]], [[OBJECTREAD()]], [[OBJECTWRITE()]]
+
[[BINCREATE()]], [[BINCLOSE()]], [[BINOPEN()]], [[BINREAD()]], [[BINWRITE()]], [[OBJECTREAD()]], [[OBJECTSIZE()]], [[OBJECTWRITE()]]
  
 
==Description==
 
==Description==
The OBJECTTYPE() function returns the file extension of the data stored in the memo field <memofield>.  The following file types are supported:
+
The OBJECTTYPE() function returns the file extension of the data stored in the object field <object field>.   
 
+
 
+
{| class="wikitable"
+
!File Extension||Data
+
|-
+
|gif||GIF Image
+
|-
+
|jpg||JPG Image
+
|-
+
|au||AU Sound
+
|-
+
|avi||AVI Video
+
|-
+
|mov||MOV Video
+
|-
+
|}
+
 
+
  
 
==Example==
 
==Example==
Line 37: Line 18:
 
</code>
 
</code>
  
 
==Products==
 
Recital, Recital Server
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Binary File Access]]
+
[[Category:Object Storage Functions]]
[[Category:Binary File Access Functions]]
+
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 08:28, 4 February 2013

Purpose

Function to return object file extension

Syntax

OBJECTTYPE(<object field>)

See Also

BINCREATE(), BINCLOSE(), BINOPEN(), BINREAD(), BINWRITE(), OBJECTREAD(), OBJECTSIZE(), OBJECTWRITE()

Description

The OBJECTTYPE() function returns the file extension of the data stored in the object field <object field>.

Example

objectread('brickwall.gif',IMAGES)
? objecttype(IMAGES)
gif