1 de agosto de 2002

MegaFox: 1002 Things You Wanted to Know About Extending Visual FoxPro

MegaFox: 1002 Things You Wanted to Know About Extending Visual FoxPro
by Andy Kramek, Marcia Akins & Rick Schummer



Title: MegaFox: 1002 Things You Wanted to Know About Extending Visual FoxPro
Author: Andy Kramek, Marcia Akins & Rick Schummer
Editor: Steve Dingle
ISBN: 1-930919-27-1
Length: 600 pages
Press date: June, 2002
Format: .PDF

Table of Contents

Chapter 1: KiloFox Revisited
Chapter 2: Data Driving with VFP
Chapter 3: Intellisense, inside and out
Chapter 4: Sending and receiving email
Chapter 5: Accessing the Internet
Chapter 6: Creating charts and graphs
Chapter 7: New and improved reporting
Chapter 8: Integrating PDF technology
Chapter 9: Using ActiveX controls
Chapter 10: Putting Windows to work
Chapter 11: Deployment
Chapter 12: VFP tool extensions and tips
Chapter 13: Working with remote data
Chapter 14: VFP and COM
Chapter 15: Desiging for extensibility
Chapter 16: VFP on the Web
Chapter 17: XML and ADO
Chapter 18: Testing

Para mas información: http://www.hentzenwerke.com/catalog/megafox.htm

30 de julio de 2002

1001 Things You Wanted to Know About Visual FoxPro

1001 Things You Wanted to Know About Visual FoxPro
by Andy Kramek, Marcia Akins & Rick Schummer.



Title: 1001 Things You Wanted to Know About Visual FoxPro
Author: Andy Kramek, Marcia Akins & Rick Schummer
Editor: John Hosier
ISBN: 0-96550-933-8
Length: 600 pages
Press date: June, 2000
Ebook format: .CHM

Table of Contents

Chapter 1: Controlling the VFP Environment
Chapter 2: Functions and Procedures
Chapter 3: Design, Design and Nothing Else
Chapter 4: Basic Controls
Chapter 5: Combos and Lists
Chapter 6: Grids: The Misunderstood Controls
Chapter 7: Working with Data
Chapter 8: Data Buffering and Transactions
Chapter 9: Views in Particular, SQL in General
Chapter 10: Non-Visual Classes
Chapter 11: Forms and Other Visual Classes
Chapter 12: Developer Productivity Tools
Chapter 13: Miscellaneous Things
Chapter 14: Project Management
Chapter 15: Project Objects and Projecthooks
Chapter 16: Creating Reports
Chapter 17: Managing Reports

Para mas información: http://www.hentzenwerke.com/catalog/kilofox.htm

29 de julio de 2002

Como saber que usuarios estan conectados a una base de datos SQL Server

Cuando necesitemos saber que usuarios estan conectados a una base de datos de MS SQL Server 2000 podemos usar este procedmiento almacenado.
create procedure @base_de_datos nchar(128) as
begin
set nocount on
if exists (select name from sysobjects
   where name = 'tbl_usuarios_conectados')
   drop table tbl_usuarios_conectados
   
create table tbl_usuarios_conectados (spid smallint,
   /* esta columna se puede borrar si se desea utilizar en SQL Server 7*/
   ecid smallint, status nchar(30), loginname nchar(128),
   hostname nchar(128), blk char(5), dbname nchar(128), cmd nchar(16))

INSERT tbl_usuarios_conectados
exec sp_who

select distinct loginname, hostname
   from tbl_usuarios_conectados
   where dbname = @base_de_datos and hostname <> ' '
return
end
Fernando España

Como saber que usuarios estan conectados a una base de datos SQL server

Cuando necesitemos saber que usuarios estan conectados a una base de datos de MS SQL Server 2000 podemos usar este procedmiento almacenado.

create procedure @base_de_datos nchar(128) as
begin
set nocount on
if exists (select name from sysobjects
   where name = 'tbl_usuarios_conectados')
   drop table tbl_usuarios_conectados
   
create table tbl_usuarios_conectados (spid smallint,
   /* esta columna se puede borrar si se desea utilizar en SQL Server 7*/
   ecid smallint, status nchar(30), loginname nchar(128),
   hostname nchar(128), blk char(5), dbname nchar(128), cmd nchar(16))

INSERT tbl_usuarios_conectados
exec sp_who

select distinct loginname, hostname
   from tbl_usuarios_conectados
   where dbname = @base_de_datos and hostname <> ' '
return
end

Fernando España

23 de julio de 2002

Verificar y Cerrar Tablas Una Linea

A veces, lo mas sencillo y elegante del código de VFP viene en una sola linea.

Usualmente, cuando tenemos que cerrar una tabla, vista o cursor de VFP antes verificamos que efectivamente dicha tabla esté abierta (para evitar el error 13 - No se encuentra el Alias -), con un código como este:
IF USED("MiTabla")
     USE IN "Mitabla"
ENDIF

Puede ser sustituido por:
USE IN (SELECT("MiTabla"))

Esta información la encontré revisando en los foros de microsoft.public.fox.vfp.language-menus (09/Julio/2002) lo cual me pareció bastante interesante y quisiera compartir.


Louis, mientras esperas para una solución a tu problema, aqui esta una pequeña joya para ahorrar algo de código:

*!* CREATE CURSOR Test (Field1 C(10))
*!* SELECT 0    && Note que Test no esta en el area de trabajo actual
*!* Cerrar Test en una sola linea de código
USE IN (SELECT("Test"))
*!* OtroTest no existe, no ocurre error!
USE IN (SELECT("OtroTest"))

Si Test existe este será seleccionado y cerrado. Si Test no existe se seleccionará y cerrará el área 0, lo cual, no produce error alguno.

Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org http://cindywinegarden.adsl.duke.edu



Espero les sea de utilidad.

Espartaco Palma Martinez