Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13154
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: help |
| Date | 2020-11-25 07:42 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <rpkucd$p84$1@dont-email.me> (permalink) |
| References | <9a11cf49-84be-4c53-ad29-f69b7976d52co@googlegroups.com> <i242t8Fl01oU1@mid.individual.net> <d36bf5f6-32ef-4d03-9e98-9fe6a3667f2do@googlegroups.com> <i26ar3F3trjU1@mid.individual.net> <i26bhkF42k1U1@mid.individual.net> |
He has data dialog
Op 25-11-2020 om 07:22 schreef Wolfgang Riedmann:
> Hi Aurora,
>
> please forget my last message.
>
> The fixed texts are not in the aControls array.
> The easiest way (not using the Windows API) is to set "Export Controls"
> to "true" in the window editor, and then you can write:
>
> (this code is not tested!)
> oFT := IVarGet( self, String2Symbol( "oDCA1" ) )
> oFT:TextValue := "XX"
>
> Otherwise, you have to answer what John asked: do you have a DataWindow
> or a DialogWindow? For these both the solutions are different.
>
> Wolfgang
>
>
> Wolfgang Riedmann wrote:
>
>> 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 <auto>
>>>> - Export Controls true or <auto>
>>>>
>>>> If you have No Access/Assign to <auto>, 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 <auto>
>>>> - Export Controls true oppure <auto>
>>>>
>>>> Se "No Access/Assign" è impostato su <auto>, 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
>
>
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
help aurora baccio <aurorabaccio@gmail.com> - 2020-11-23 21:46 -0800
Re: help JohnMartens <martens@tennishulp.info> - 2020-11-24 08:04 +0100
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-24 10:43 +0100
Re: help aurora baccio <aurorabaccio@gmail.com> - 2020-11-24 06:06 -0800
Re: help JohnMartens <martens@tennishulp.info> - 2020-11-24 18:39 +0100
Re: help aurora baccio <aurorabaccio@gmail.com> - 2020-11-24 12:04 -0800
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-25 07:10 +0100
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-25 07:22 +0100
Re: help JohnMartens <martens@tennishulp.info> - 2020-11-25 07:42 +0100
Re: help "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-11-25 08:19 +0100
csiph-web