FoxPro

Visual FoxPro (VFP), and its predecessor FoxPro, is a data-centric, object-oriented, procedural, database programming language and IDE from Microsoft last released in 2007 that still has some active use due to its low cost of deployment and fairly rapid development. In 2008, Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. It allows data processing against its native file-based data tables or database servers such as SQL Server.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi All,

Greetings....

According to my work, pdf files will be get merged in a specific path. I need to give dynamic file names to the mergedOutPut File.
1. Is there any way to pass parameters to the file name?
2.Or I can give fixed file name to the mergedOutput file through my code.After that Can I  rename it into dynamic naming conversion?

I saw RENAME command in Foxpro. But I am not sure whether I can pass parameters to it

Any help regarding this would be highly appreciated.

Thanks in Advance.
0
What does it mean to be "Always On"?
LVL 4
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

I have found a strange performance issue with xBase++.
Essentially, client performance is very good until database files in the same database are opened locally on the server (see graph.)
Details are below.
Thanks,
Tim

Test Setup
----------------
•      Three client platforms and two server platforms, all under controlled conditions.
•      Clients: Win7 10/100, Win7 gb, Win Server 2008 R2 via XenApp
•      Servers: Win Server 2012 R2, Win Server 2008 R2 (VMware virtual machine)
•      xBase++: 2.00.785
•      Dbe: FOXCDX (see dbesys.prg example)
•      Client test function: representative function that creates a DBF/CDX file on the client C: drive from data assembled from multiple open data files residing on the server.

Test Procedure
----------------------
1.      Reboot the server
2.      On a client map a drive to the server database share
3.      Run the app from the client c: drive, starting it in the mapped server folder – performance is good for multiple simultaneous clients
4.      Run an app locally on the server and open files in the same database folder as the client
5.      As the number of files opened locally on the server increases the client performance degrades significantly for all clients, even new instances on different machines (see graph)
6.      Close the locally opened files on the server
7.      Client performance remains degraded

Notes
---------
•      The performance is poor for all subsequent clients once a database folder has files opened locally on the server
•      The performance …
0
I have a foxpro data table having files name and fname. Now i want to create a foxpro form having text box on it  and i press a alpha bates key from keyboard like A all the name starting with a will listed for making selection and when i press second key b all the name stared with ab will be listed and so on.   Is it possible please help
0
I am trying to automate printing in foxpro.My requirement is When I clicked on print button It should start printing without asking for the destination folder dialogue box. printing is working fine..But it always asks for destination folder dialogue box

i tried with set printer to funtion..But it is for pointing the .exe file of the default printer

set printer on

odoc.printout()

Is there any option in foxpro to set destination folder programatically?

 in my system I have adobe pdf and pdf995.

Thanks in Advance
0
I had to reinstall Windows 7 and Access 2013 and now I cant find my ODBC drivers to Link with Foxpro from Access?
0
FoxPro  FoxPro 2.6
I have a customer Master with Code & Name Fields. While entering data through Input screen I will type customer name and the program will go on filtering the name of the customer from the Master Data File and when I press Enter Key it will select the exact record from the master with Code. If there is any program in foxpro 2.6 kindly mail me at rajesh.ranjan@modernajyoti
.com.
0
Examples
0
Delete command
0
I have a number of old word documents that I need to migrate to pdf but first I need to save them as DOCX but I want to save them without the Encryption password (which I have).

Anybody know how to do this?
0
Hi Experts

Could you point how to programatically force a grid to present the first row content?

After a grid line deletion it presents the last line content at the top of the grid, obligating to click in the cursor top advance arrow to get the first line in top position.

Thanks in advance.
0
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Hi Experts

Does a VFP app correctly runs on a wifi network?

I'm not certain I read here that it's not a good choice, since errors arises. The only option is by cable.

Could you clear?

Thanks in advance.
0
I have a foxpro v9 memo field and i want to update that in oracle table blob field
Below sample code

--Open foxpro table
lcAlias = Sample.dbf
Use Sample.dbf

-- read memo field
lcBin = &lcAlias..blobdata

--convert to Blob
pcBin =  CAST(lcBin as Blob)

--Connect oracle
odb = sqlstringconnect("Driver={Oracle in OraClient11g_home1};Dbq=XXXXX;")
lcSQLString = "UPDATE oracletable SET m_blob = " + pcBin + " where id = 1;"
lresult=sqlexec(odb, lcSQLString, "Result")
IF lresult>0 THEN
   messagebox("yes")
ELSE
  *-- Collect error info
  AERROR(laErr)
  *-- Display error info on the screen
  DISPLAY MEMORY LIKE laErr
  *-- or save the error info into text file
  LIST MEMORY LIKE laErr TO FILE SQLError.txt
ENDIF
=SQLDisconnect(odb)

Am getting below error message - might be becoz i didnt pass the single quotes for pcBin
[Oracle][ODBC][Ora]ORA-00972: identifier is too long

If i put quotes for pcBin, foxpro prg hang at sqlexec
lcSQLString = "UPDATE oracletable SET m_blob = '"+ pcBin +"' where id = 1;"
lresult=sqlexec(odb, lcSQLString, "Result")

Tried below code, then also it freeze
lcBin = &lcAlias..blobdata
CURSORSETPROP("MapBinary",.T.,0)
lcSQLString = "UPDATE oracletable SET m_blob = '"+ lcBin +"' where id = 1;"
lresult=sqlexec(odb, lcSQLString, "Result")
0
Hi Experts

Could you point how to correctly use vfpencryption71.fll ?

The "in general"  strategy I planned is:
When an user logs the app with password and read a record it's automatically decrypted to be readed - just the record.
During the CRUD - the line remains decrypted.
After the register is encrypted and saved.

Is it a correct approach?

Reading the examples that came with the library, it's not very clear to me the encryption/ decryption operations:

Encryption:
1. Define a key (that could varies depending on the encryption method adopted)
2. Encrypt the value and save.

Decryption:
1. Give the user the decryption key when login the app.
2. Every  CRUD operation will use the key to decrypt what is needed.

Is it OK?

Could you give me an example on how to do this ?  (you could use whathever encryption/decryption method as you desires)

Sorry so basic doubts.

Thanks in advance.
0
Hi Experts


Could you point a way (if it's possible) on how to install an automation component (.OCX) during a NULLSOFT instalation?

For the system correctly work this operation is needed:

REGSVR32  C:\Windows\System32\comdlg32.ocx

Is it possible to make it automatic?

Thanks in advance.
0
Hi Experts

Could you point what's needed to run a vfpcompression.fll under Windows 8?

I downloaded a fresh new vfpcompression.fll

Tryed to register it like it is a .dll (no success)

It used to run perfectly under Win7.
img001
A similar issue is occuring with vfpencryption71.fll too...

Any workaround ?
Thanks in advance
0
Hi Experts

Could you point the better way to encrypt/ decrypt a text file content "on the fly" by using VFP?

Thanks in advance.
0
I know very little about Foxpro (9), but I can get around in it and understand the basic principles.
All I need is to export a database to a CSV file then set that up on task scheduler (to run every night) with an .exe or .bat.
I would need as much detail as possible, but I'll understand it quickly.
No form is needed - just simple export statements, but as I understand it, they have to be run inside FoxPro.
0
Hi Experts

Could you point the better way to mantain long texts vinculated to a VFP line register?

Using a word file with OLE ? or a traditional FPT - is it possible to have a small text editor called inside the app?

Then the text must to be used in a report.

Thanks in advance.
0
Hi Experts

Could you point a VFP code to quit an Excel instance that could be trapped in PC before to start an Excel automation process to generate a sheet?

During an Excel automation sometimes a variety of errors occurs  I guess due an Excel instance to be oppened  even it's not visible- only with "task manager". If it's manually closed, things go easier. The worst, sometimes a sheet file couldn't be eliminated because it's trapped by Excel and an Excel instance doesn't even appear at "Task Manager"...

Very cahotic things occur also... a date column from nothing changes the mask from dd/mm/yyyy  to mm/dd/yyyy  in a  column from a line to the subsequent (?!)

I'm really reconsidering the use of Excel automation from VFP. It seens errors dificult to deal appears.

Thanks in advance.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE
LVL 4
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Hi Experts

How to configure an Excel object column in VFP to present  a  value in this format:

-1.234,56  (decimal point is comma)

*-- Example that doesn't fit what I need.
oSheet.Columns("C").NumberFormatLocal = "$0.00_ " &&add decimal place 0.00

Open in new window


Thanks in advance!
0
I have built a program to insert data into a number of Word documents.  The insertion points are identified with bookmarks.  Most of the bookmarks are related to Word text fields or empty areas in the document.  The data values are inserted as text with statements like this:

                        oDocument.Bookmarks.Item(cBookmarkName).Range.Text = "TextValue"

However, on one form some of the entry fields are defined as Word checkboxes.  The statement above doesn't work because Word checkboxes apparently won't accept text strings.  I've also tried inserting 0 and 1, as well as variations of "true", such as .t., <true>.  Is there some other value and/or property that can be used to mark a Word checkbox as true from a VFP program?
0
I've got a grid object in which some of the columns can be edited and others can't. I'd like to be able to mark which columns are which by means of colour, greying the BackColor where a column is Read-only.

I can do this quite happily for the columns, but when I come to tackle the Header objects, it appears that nothing that I do by way of assigning .BackColor= makes any difference.

I can only assume that this property is locked in some way.

Any suggestions as to what I'm doing wrong?
0
FoxPro  FoxPro 2.6
I have a customer Master with Code & Name Fields. While entering data through Input screen I will type customer name and the program will go on filtering the name of the customer from the Master Data File and when I press Enter Key it will select the exact record from the master with Code. If there is any program in foxpro 2.6 kindly mail me at felixdaniel1575@gmail.com
0
How do I import data from the Horizontal grid into a visual FoxPro table?  The Horizontal grid view is attached below as well as the prg. code.  Some of the Horizontal grid cfld fields contain group data.  The cfld fields should not contain a lot of data, for example, each cfld field contains the item#, qnty, and description.  There should be a cfld for date, quantities, and descriptions.

The Horizontal grid should look like this below inorder to match the fields in the Ldy2 table:
Cfld1 is date field
cfld2 is a qnty field that should be named Blktamtin
cfld3 is description field that should be named Blankets
cfld4 is another qnty field that should be named shptamtin
cfld5 is another description field that should be named Flat Sheets
cfld6 is another qnty field that should be name shtbtamtin
cfld7 is another description field that should be name Fit Sheets
cfld8 is another qnty field that should be name sprdamtin
cfld9 is another description field that should be name Spreads
cfld10 is another qnty field that should be name btamtin
cfld11 is another description field that should be name Bath Towels
cfld12 is another qnty field that should be name bstamtin
cfld13 is another description field that should be name Bea Shop Towels
cfld14 is another qnty field that should be name pcmatin
cfld15 is another description field that should be name Pillow Cases
cfld16 is another qnty field that should be name wcamtin
cfld17 is another description field that should be …
0
Hi Experts


Accordingly with

Truncated:
img004
Correctly previewed:
img006
Thanks in advance
0

FoxPro

Visual FoxPro (VFP), and its predecessor FoxPro, is a data-centric, object-oriented, procedural, database programming language and IDE from Microsoft last released in 2007 that still has some active use due to its low cost of deployment and fairly rapid development. In 2008, Microsoft released a set of add-ons for VFP's xBase components to allow interoperability with various Microsoft technologies. It allows data processing against its native file-based data tables or database servers such as SQL Server.