Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

clipperova DBEdit() funkcija u VB ?

[es] :: Visual Basic 6 :: clipperova DBEdit() funkcija u VB ?

[ Pregleda: 3186 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

pipistrelo
KOVIN

Član broj: 3818
Poruke: 8
194.106.161.*



Profil

icon clipperova DBEdit() funkcija u VB ?18.05.2002. u 19:46 - pre 5545 dana i 1h
Zanima me da li postoji neka zamena za poznatu funkciju DBEdit() iz Clipper-a a koja se moze primeniti u VB 6.0 ?
 
Odgovor na temu

jc denton

Član broj: 2358
Poruke: 1705
*.ptt.yu



Profil

icon Re: clipperova DBEdit() funkcija u VB ?18.05.2002. u 21:15 - pre 5545 dana
Kazi mi sta radi taj DBEdit(), pa dobijes odgovor.

pozdrav
fire, walk with me
 
Odgovor na temu

pipistrelo
KOVIN

Član broj: 3818
Poruke: 8
194.106.161.*



Profil

icon Re: clipperova DBEdit() funkcija u VB ?18.05.2002. u 21:58 - pre 5544 dana i 23h
DBEdit() je funkcija browse tipa dakle prikazuje odabrane kolone (polja) u prozoru, a u redovima se onda prirodno vide slogovi. Moze se pozvati korisnicka funkcija kao parametar. Uostalom evo sintakse:

DBEDIT([<nTop>], [<nLeft>],
[<nBottom>], <nRight>],
[<acColumns>],
[<cUserFunction>],
[<acColumnSayPictures> | <cColumnSayPicture>],
[<acColumnHeaders> | <cColumnHeader>],
[<acHeadingSeparators> | <cHeadingSeparator>],
[<acColumnSeparators> | <cColumnSeparator>],
[<acFootingSeparators> | <cFootingSeparator>],
[<acColumnFootings> | <cColumnFooting>]) --> NIL

<nTop>, <nLeft>, <nBottom>, and <nRight> define the
upper-left and lower-right coordinates of the DBEDIT() window. Row
values can range from zero to MAXROW() and column positions can range
from zero to MAXCOL(). If not specified, the default coordinates are 0,
0, MAXROW(), and MAXCOL().

<acColumns> is an array of character expressions containing database
field names or expressions to use as column values for each row
displayed. If this argument is not specified, DBEDIT() displays all
fields in the current work area as columns.

<cUserFunction> is the name of a user-defined function that executes
when an unrecognizable key is pressed or there are no keys pending in
the keyboard buffer. Specify the function name as a character
expression without parentheses or arguments. Note that the behavior of
DBEDIT() is affected by the presence of this argument. Refer to the
discussion below for more information.

<acColumnSayPictures> is a parallel array of picture clauses to
format each column. Specifying <cColumnSayPicture> instead of an array
displays all columns with the same format. Refer to TRANSFORM() or
@...SAY for more information on pictures.

<acColumnHeaders> is a parallel array of character expressions that
define the headings for each column. Specifying <cColumnHeader> gives
the same heading for all columns. To display a multi-line heading,
embed a semicolon in the heading expression where you want the string to
break. If not specified, column headings are taken from the <acColumns>
array or the field names in the current work area, if the <acColumns>
argument is not specified.

<acHeadingSeparators> is a parallel array of character expressions
that define the characters used to draw horizontal lines separating
column headings from the field display area. Specifying
<cHeadingSeparator> instead of an array uses the same heading separator
for all columns. If this argument is not specified, the default
separator is a double graphics line.

<acColumnSeparators> is a parallel array of character expressions
that define the characters used to draw vertical lines separating the
columns. Specifying <cColumnSeparator> instead of an array uses the
same separator for all columns. If this argument is not specified, the
default separator is a single graphics line.

<acFootingSeparators> is a parallel array of character expressions
that define the characters used to draw horizontal lines separating
column footings from the field display area. Specifying
<cFootingSeparator> instead of an array uses the same footing separator
for all columns. If this argument is not specified, there is no footing
separator.

<acColumnFootings> is a parallel array of character expressions that
define footings for each column. Specifying <cColumnFooting> instead of
an array gives the same footing for all columns. To display a multi-
line footing, embed a semicolon in the footing expression where you want
the string to break. If this argument is not specified, there are no
column footings.

DBEDIT() is a user interface and compatibility function that displays
records from one or more work areas in a table form. The DBEDIT()
window display is a grid of cells divided into columns and rows.
Columns correspond to database fields and rows correspond to database
records. Each column is defined by an element of the <acColumns> array.
The display width of each column is determined by the evaluation of the
column expression in <acColumns> array or the column picture specified
in the <acColumnSayPictures> array.

All cursor movement keys are handled within DBEDIT(), including Page up,
Page down, Home, End, the four arrow keys, and all Ctrl key combinations
that produce cursor movement. The navigation keys that DBEDIT()
responds to when a user function argument is not specified are listed in
the Active Keys table below:

Eto to je to. Ako treba jos nesto da se kaze tu sam.

 
Odgovor na temu

jc denton

Član broj: 2358
Poruke: 1705
*.ptt.yu



Profil

icon Re: clipperova DBEdit() funkcija u VB ?18.05.2002. u 22:35 - pre 5544 dana i 23h
Dobro.

U VB-u je to 'malo prostije', ako koristis DAO.
Dovoljno je da uzmes jedan MS Data Bound Grid Control, 'vezes' ga na Data Control i to je to.
Data control je na toolbox-u po defaultu, a ovaj prvi moras da dodas na toolbox tako sto odes u Project/Components i chekiras isti.

Bazu ces da navedes u property-ju DatabaseName, a koja je vrsta baze u property-ju Connect. Cim to uradis sve je spremno za rad.
Sve manipulacije podacima vrsis preko data.recordset objekta, pogledaj u MSDN-u kako se koristi.

Ako ti je baza .dbf, onda postoje neke specificnosti, skoro sam se zezao sa jednom FoxPro 2.5 bazom.

Pozdrav

fire, walk with me
 
Odgovor na temu

[es] :: Visual Basic 6 :: clipperova DBEdit() funkcija u VB ?

[ Pregleda: 3186 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.