Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I got a big problem
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00355919
Message ID:
00355941
Views:
27
>I have to open and update clipper table utilised by a 5win application made from a another pesone.
>
>My question is
>Can i utilse or call the clipper library "Extend.lib" in Vfp this Library contain the l2bin function.

Hi Benoit,

One of the problems you might run into is that the format of clipper's indexes (if they're using clipper's own dbms driver) is different from vfp's. Check if the extension is .ntx.

I don't think you can call clipper's libraries from anything else, but if you're willing to hack it, you might succeed (if you do, please tell me how it's done as it might come VERY handy for me sometime in the near future).

If they are using an index format that's compatible with vfp, I suggest you create the l2bin function in your vfp program and

index on l2bin(blablabla) to

This way you won't need to go crazy with using clipper's libs in your vfp program.

In case it helps, here are the details on l2bin():

Please let me know if I can help you more.

Alex


+----- CA-Clipper 5.2e » Guide To CA-Clipper » Language » Functions » ... ----
¦ See also: BIN2I() BIN2L() BIN2W() CHR() FWRITE() I2BIN()
¦-----------------------------------------------------------------------------
¦ L2BIN()
¦ Convert a CA-Clipper numeric value to a 32-bit binary integer
¦-----------------------------------------------------------------------------
¦ Syntax
¦
¦ L2BIN() --> cBinaryInteger
¦
¦ Arguments
¦
¦ is the numeric value to convert. Decimal digits are
¦ truncated.
¦
¦ Returns
¦
¦ L2BIN() returns a four-byte character string formatted as a 32-bit
¦ binary integer.
¦
¦ Description
¦
¦ L2BIN() is a low-level file function used with FWRITE() to write
¦ CA-Clipper numeric values to a binary file. This function is like
¦
¦ L2BIN() is the inverse function of BIN2L().
¦
¦ Examples
¦
¦ _ This example creates a new binary file then writes a series of
¦ numbers to the files using L2BIN() to convert the numeric value to
¦ 32-bit binary form:
¦
¦ #include "Fileio.ch"
¦ //
¦ LOCAL nNumber, nHandle
¦ nHandle := FCREATE("MyFile", FC_NORMAL)
¦ FOR nNumber := 1 TO 100
¦ FWRITE(nHandle, L2BIN(nNumber) + CHR(0))
¦ NEXT
¦ FCLOSE(nHandle)
¦
¦ Files: Library is EXTEND.LIB, source file is SOURCE\SAMPLE\EXAMPLEA.ASM.
+---------------------------------------------------------------------------
Low-carb diet not working? Try the Low-food diet instead!
Previous
Reply
Map
View

Click here to load this message in the networking platform