Downloads
Search: 

Cursor Adapter .PRG generator
Wednesday, December 9th, 2009 at 08h56
It generates a .PRG file for cursoradapter. So you can use that .prg file with your different forms. There isn't 512 chars barrel anymore. 09-02-10: small bug fix. 04-02-10: small bug fix. 02-02-10: bug fix about long field names. Update: ---------- -added bigint, blob, int support -option for not convert datetime to date -option for fullname of field types
General information
URL:CADAP.ZIP
Downloads:2283
File type:Freeware
Rating: Rate this entry
Description
sample generated .prg file:
**** test.prg ****
LOCAL lcAdapter
lcAdapter=CREATEOBJECT("cursoradapter")	
lcAdapter.DataSourceType="ODBC"
lcAdapter.DataSource=ovars.sqlhandle
lcAdapter.KeyFieldList="name"
lcAdapter.FetchSize=-1
lcAdapter.FetchSize=100
lcAdapter.FetchAsNeeded=.F.
lcAdapter.Alias="testq"
lcAdapter.Tables="testq"
lcAdapter.WhereType= 1
*------------- cursorSchema ---------------------
lcAdapter.cursorSchema = "name varchar(50), surname char(50), num1 n(17,5), num2 y"
*------------- selectCmd ---------------------
lcAdapter.selectCmd = "select name, surname, num1, num2 from testq"
*------------- updateNameList ---------------------
lcAdapter.updateNameList = "name testq.name, surname testq.surname, num1 testq.num1, num2 testq.num2"
*------------- updatableFieldList ---------------------
lcAdapter.updatableFieldList = "name, surname, num1, num2"
*------------------- Run ------------------
lcAdapter.Cursorfill(.t.)
RETURN lcAdapter

sample usage of this file:

myadapt=test()
Created by
Metin Emre, Ozcom Bilgisayar Ltd.

Comments

Add a comment

More downloads created from this member
Friday, May 15th, 2015 at 08h12
There is some pure VFP code for get CPU ID but this code works unstable with some computers. Waits until ten minutes sometimes. This .DLL works fast, get IDE serial too also doesn't require regsrv. If just getting HDD serial enough for you that feature is free. If you also want CPU ID too you have to pay a small fee (20€) in the other case you'll annoy with a warning popup.
Monday, May 24th, 2004 at 23h20
You can put right aligned numeric input with your textboxes in your VFP 8 forms with this class. This class is freeware. Also there is an another function version for Foxpro for DOS.
Monday, March 17th, 2003 at 22h58
This class an alternative for FoxPro's _resize class. I do it because FoxPro's _resize class resizes all controls except container based controls. I think some controls must be resizable and some controls must be movable with user choice. My class can move all controls and it resizes all the controls except container based controls (it works on pageframes). You can choose to do vertical or horizontal resize or both.
Tuesday, December 3rd, 2002 at 23h18
This library support multilingual use easily. You put it into forms, pageframes and containers and your program will be multilingual. Another way you can do it - put line "caption(this)" in your controls.