Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: help Date: Wed, 25 Nov 2020 07:10:42 +0100 Lines: 109 Message-ID: References: <9a11cf49-84be-4c53-ad29-f69b7976d52co@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net NF1JyHvsAyS8Q9Rcb6hM4AbQmAPLAHJkXAtxXpVnQEdNc8+7A= Cancel-Lock: sha1:juqVBMqn+UQBGuJAeFDxD2GKqYY= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13151 Hi Aurora, please read what I wrote. It is important to know what options to you use in your window because the solution you can adopt depends from it. Or you can do something other, using the aControls array that every DataWindow has: (this code is not tested!) for nI := 1 upto 50 symName := String2Symbol( "a" + NTrim( nI ) ) if ( nPos := AScan( aControls, {|o| o:NameSym == symName } ) ) > 0 aControls[nI]:Value := oServer:FieldGet( symName ) endif next Wolfgang aurora baccio wrote: > Il giorno martedì 24 novembre 2020 10:43:07 UTC+1, Wolfgang Riedmann > ha scritto: > > Hi Aurora, > > > > there are two questions about how you generate your form: > > - No Access/Assign true or > > - Export Controls true or > > > > If you have No Access/Assign to , the WED generates > > access/assign and you can use IVarPut() to access the values. > > > > If you have Export Control to true, the WED generates the control > > instance variables as export (instead of protected), and again, you > > can use IVarPut() to assign the values to the controls. > > > > Wolfgang > > > > P.S. please let me know if that is not clear to you > > > > In Italian: > > ci sono due domande come il form viene generato dal Window Editor > > (WED) - No Access/Assign true oppure > > - Export Controls true oppure > > > > Se "No Access/Assign" è impostato su , il WED genera un i > > rispettivi access e assign e può usare la funzione IVarPut() per > > assegnare i valori > > > > Se "Export Controls" è impostato su true, il WED genera le > > variabili per i singoli controlli come "export" invece di > > "protect", e anche in questo caso può usare IVarPut() > > > > aurora baccio wrote: > > > > > Good morning > > > I have to assign values to Fixed Text > > > self:odcA1:textValue > > > self:odcA2:textValue > > > and below up to 50. the value to be assigned is detected by a > > > database through a seek I would like to create a cycle for...Next > > > so that while remaining unchanged self:odcA, the next number > > > (1,2,3,...50) is that of the cycle for...next. So : for x := 1 > > > upto 50 self:odcA(here the value of x) > > > next > > > I don't know how to do it, but I think you can do it with fieldput > > > the single boxes are contained in a given dialog > > > I hope I was not confused in the explanation, and forgive my > > > unclear English. > > > > > > Translated with www.DeepL.com/Translator (free version) > > > thanks > > > Aurora Baccio > > > > > > > > -- > In English > Mr. Riedmann thank you for your answer, but I have not understood > anything about what I have to do. In the postinit of the data dialog > I have to acquire data from a dbf and insert what I found in > fixedText called A1,A2....A50 I do not know how to insert > automatically the number 1,2,.... 50 after the letter A. I was > thinking of a cycle for next for x := 1 upto 50 .... search the > data in the database self:odcA(x value) := value found in the > database next > > I apologize if I did not understand what to do, as I apologize to > JonhMartesen. > > > signor Riedmann la ringrazio per la risposta, ma non ho capito nulla > di cosa debbo fare. Nella postinit della data dialog io debbo > acquisire dei dati da un dbf ed inserire quanto trovato in fixedText > denominati A1,A2....A50 Non so come fare ad inserire in automatico il > numero 1,2,....50 dopo la lettera A. Pensavo ad un ciclo for next > for x := 1 upto 50 ....cerca nel database il dato > self:odcA(valore della x) := valore trovato nel database > next > > Le chiedo scusa se non ho compreso cosa fare, come chiedo scusa a > JonhMartesen. Aurora Baccio --