Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New VB Features
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00425458
Message ID:
00425903
Views:
20
Sorry for the follow-up. I think you and I are thinking of something like
#DEFINE MAX_PATH 260
DEFINE TYPE FileTime AS STRUCTURE
  LowDateTime AS INTEGER
  HighDateTime AS INTEGER
ENDDEFINE

DEFINE TYPE Win32_FindData AS STRUCTURE
  dwFileAttributes AS INTEGER
  ftCreationTime AS FileTime
  ftLastAccessTime AS FileTime
  ftLastWriteTime AS FileTime
  nFileSizeHigh AS INTEGER
  nFileSizeLow AS INTEGER
  dwReserved0 AS INTEGER
  dwReserved1 AS INTEGER
  cFileName AS STRING[MAX_PATH] 
  cAlternateFileName AS STRING[14]
ENDDEFINE
* Create the variable
DEFINE lsWin32Findata AS Win32_FindData
* Call FindFirstFile for example then
? lsWind32Findata.cFileName && Long file name
? lsWind32Findata.cAlternateFileName  && Short file name
To me, this would be ideal since it allows you to define one type in terms of another that's been previously defined.

What do you think?
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform