Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Conexión con bases de datos
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Conexión con bases de datos

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 26-05-2004
dago_Ariza dago_Ariza is offline
Miembro
 
Registrado: may 2004
Ubicación: Cartagena-Colombia
Posts: 27
Poder: 0
dago_Ariza Va por buen camino
Como utilizar TSortOrder??

Este es mi caso, como ordeno desc o asc/

procedure TTIPO_SERVICIO_FRM.DefineOrden(str :string);
var i : integer;
M : TSortMarker;
begin
i := 0;
while str <> Campos[i] do inc(i);
DM1.TIPOS_SERVICIOS.Close;
If (str = Campos[i]) and (str <> 'ACTIVO') Then
begin
if Orden[i] = smNone then
begin
M := smDown;
DM1.TIPOS_SERVICIOS.IndexName := Campos[i];
end;
if Orden[i] = smNone then
begin
M := smUp;
DM1.TIPOS_SERVICIOS.IndexName := Campos[i];
end;
end;
orden[i] := M;
DM1.TIPOS_SERVICIOS.Open;
end;

Código Delphi [-]
procedure TTIPO_SERVICIO_FRM.DefineOrden(str :string);
var i : integer;
    M : TSortMarker;
begin
    i := 0;
    while str <> Campos[i] do inc(i);
      DM1.TIPOS_SERVICIOS.Close;
      If (str = Campos[i]) and (str <> 'ACTIVO') Then
         begin
           if Orden[i] = smNone then
              begin
                M := smDown;
                DM1.TIPOS_SERVICIOS.IndexName := Campos[i];
              end;
           if Orden[i] = smNone then
              begin
                M := smUp;
                DM1.TIPOS_SERVICIOS.IndexName := Campos[i];
              end;
         end;
     orden[i] := M;
     DM1.TIPOS_SERVICIOS.Open;
end;

Última edición por roman fecha: 26-05-2004 a las 04:47:14.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 07:01:13.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi