English
Forum

Grundsatzfrage dBase Databases: How gewisse Split from whole Datensatz reading?

 
- Page 1 -



holmol93
Hello together

i'm new here and first since Kurzem with xProfan on the way. Version would X2.

The xProfan Lehrbücher have I To this Topic already search, have however no specific (and me nachvollziehbare) Solution found...

Verzeiht if I a little bit stupid question or so

take we on, I had a data base of Schülern.
Gespeichert are The usual data How name and address, Gebursdatum and the class. In unterschiedlichen for the in the structure definierten Split.

i want then a list all Schülernamen, The in class 5 are, List.

the means, I should in the DB first once with db("seek") to one Datensatz with class 5 search. there hears my understanding but already on, The function supply me Yes only a Datensatz, whom zutreffendsten...

How should I the very concern?

Greetz,

danny
 
04/24/13  
 



« this Posting watts as Solution marked. »


H.Brill
The amount Datensätze do you need not yet time.
there's Yes System-Variables to that inquire, here %dbEof
time so from the Stehgreif :

code :
Declare Satznr&
ClearList ' unsichtbare Listbox delete
@db("Go", "Top") ' on 1. Datensatz jumping
WhileNot %dbEof ' Systemvariable, The End Of File checks
Satznr& = db("Seek", "Feldname", "Suchbegriff", 2) ' last Param. = accuracy
' in your entrapment z.B. : Satznr& = db("Seek", "Klasse", "5", 2)
If Satznr& > 0 ' DS found
' with db("Get",...) or db("GetField", ...) area or boxes read
' and z.B. into unsichtbare and ClearList erased Listbox write
' z.B. AddStrings db("Get", "Feldname 1") + db("Get", "Feldname 2") etc.
' db("Seek",...) positioniert Yes on found DS
EndIf
db("Go", "Next") ' next DS
EndWhile
@Listbox$("Gefundene Datensätze", 1)
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
04/24/13  
 




RGH
Hello danny,

to the Search with db("seek") is the actually Datensatz The first Fundstelle. there The Search always at actually Datensatz begins, go You subsequently with db("go","NEXT") on the next Datensatz and seek anew with db("seek"). Then the second Datensatz the class found. the wiederholst You in a Loop such a long time, To no Datensatz More found becomes.

Greeting
Roland
 
XProfan X2
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
04/24/13  
 




holmol93
Hey Roland,

viiielen Thanks for speedy Info, the Have I do not known, that The "seek"- Search at actually Datensatz starting to search... I thought, The seek jedesmal of beginning on and then would I Yes always on the same Datensatz come... so yields the for me but a sense!

the means, I read initially from, wieviele Gesamtdatensätze a data base has and let The Loop as long as walk, To very these amount read is

will be it straight once try, if I daheim be

Greeetz,
danny
 
04/24/13  
 




H.Brill
The amount Datensätze do you need not yet time.
there's Yes System-Variables to that inquire, here %dbEof
time so from the Stehgreif :

code :
Declare Satznr&
ClearList ' unsichtbare Listbox delete
@db("Go", "Top") ' on 1. Datensatz jumping
WhileNot %dbEof ' Systemvariable, The End Of File checks
Satznr& = db("Seek", "Feldname", "Suchbegriff", 2) ' last Param. = accuracy
' in your entrapment z.B. : Satznr& = db("Seek", "Klasse", "5", 2)
If Satznr& > 0 ' DS found
' with db("Get",...) or db("GetField", ...) area or boxes read
' and z.B. into unsichtbare and ClearList erased Listbox write
' z.B. AddStrings db("Get", "Feldname 1") + db("Get", "Feldname 2") etc.
' db("Seek",...) positioniert Yes on found DS
EndIf
db("Go", "Next") ' next DS
EndWhile
@Listbox$("Gefundene Datensätze", 1)
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
04/24/13  
 




holmol93
Heyyy H.Brill

Vielen loves Thanks for trouble, this is The Allzwecklösung for useful each DB Ausleseanfrage, The I me consider have, deliriousness would have been particularly not virtual, that it for only so little Lines View source needed

On each drop many cordial Thanks has on attempt worked, too the write so in ChoiceBoxen and others items

Gruess,

danny
 
04/25/13  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.240 Views

Untitledvor 0 min.
H.Brill01/31/22
RudiB.08/03/21
Member 007717910/17/18
rafl07/19/18
More...

Themeninformationen

this Topic has 3 subscriber:

holmol93 (3x)
H.Brill (1x)
RGH (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie