Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13144 > unrolled thread

help

Started byaurora baccio <aurorabaccio@gmail.com>
First post2020-11-23 21:46 -0800
Last post2020-11-25 08:19 +0100
Articles 10 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#13144 — help

Fromaurora baccio <aurorabaccio@gmail.com>
Date2020-11-23 21:46 -0800
Subjecthelp
Message-ID<9a11cf49-84be-4c53-ad29-f69b7976d52co@googlegroups.com>
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

[toc] | [next] | [standalone]


#13145

FromJohnMartens <martens@tennishulp.info>
Date2020-11-24 08:04 +0100
Message-ID<rpibaa$c2b$1@dont-email.me>
In reply to#13144
Do you add the TF controls at runtime or is it in the dialog window by 
putting them on it in the windows editor ?
You can draw them at runtime like good old Geoff whowed me

John


METHOD DrawText(oPoint, cText, oFont, cColor) CLASS DataWindow
	*
	* method by Geoff S 10/12/2007

     LOCAL iOldMode, iNewMode AS INT
     LOCAL hDC AS PTR
     LOCAL oSelf AS OBJECT
     LOCAL oOldPen AS Pen
     LOCAL oOldFont AS Font

     *
     * getting the surface
     oSelf := SELF:oSurface

     IF !IsNil(cColor)
         oOldPen := oSelf:Pen
         oSelf:Pen := Pen{cColor, LINESOLID, 1}
     ENDIF
     IF !IsNil(oFont)
         oOldFont := oSelf:Font
         oSelf:Font := oFont
     ENDIF

     hDC := oSelf:__GetDC()
     iNewMode := TRANSPARENT
     iOldMode := SetBkMode(hDC, PTR(_CAST, iNewMode))
     SetTextAlign(hDC, _OR(TA_LEFT,TA_BOTTOM))
     TextOut(hDC, oPoint:X, oPoint:Y, Cast2Psz(cText), INT(_CAST, 
SLen(cText)))
     SetBkMode(hDC, PTR(_CAST, iOldMode))

     IF !IsNil(OPEN)
         oSelf:Pen := oOldPen
     ENDIF
     IF !IsNil(oFont)
         oSelf:Font := oOldFont
     ENDIF

RETURN SELF


Op 24-11-2020 om 06:46 schreef aurora baccio:
> 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
> 

[toc] | [prev] | [next] | [standalone]


#13146

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2020-11-24 10:43 +0100
Message-ID<i242t8Fl01oU1@mid.individual.net>
In reply to#13144
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



-- 

[toc] | [prev] | [next] | [standalone]


#13147

Fromaurora baccio <aurorabaccio@gmail.com>
Date2020-11-24 06:06 -0800
Message-ID<d36bf5f6-32ef-4d03-9e98-9fe6a3667f2do@googlegroups.com>
In reply to#13146
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

[toc] | [prev] | [next] | [standalone]


#13148

FromJohnMartens <martens@tennishulp.info>
Date2020-11-24 18:39 +0100
Message-ID<rpjggp$8nm$1@dont-email.me>
In reply to#13147
What kind of window do you use where the FixedText controls are on ?
Datawindow, dialogwindow or other kind of window. (you find that in the 
windows editor when you open the window in VO)


Op 24-11-2020 om 15:06 schreef aurora baccio:
> 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
> 

[toc] | [prev] | [next] | [standalone]


#13149

Fromaurora baccio <aurorabaccio@gmail.com>
Date2020-11-24 12:04 -0800
Message-ID<84d0599c-2c59-4c36-8fab-575cb586eafco@googlegroups.com>
In reply to#13148
Il giorno martedì 24 novembre 2020 18:39:39 UTC+1, JohnMartens ha scritto:
> What kind of window do you use where the FixedText controls are on ?
> Datawindow, dialogwindow or other kind of window. (you find that in the 
> windows editor when you open the window in VO)
> 
> 
> Op 24-11-2020 om 15:06 schreef aurora baccio:
> > 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
> >

datadialog
aurora baccio

[toc] | [prev] | [next] | [standalone]


#13151

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2020-11-25 07:10 +0100
Message-ID<i26ar3F3trjU1@mid.individual.net>
In reply to#13147
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



-- 

[toc] | [prev] | [next] | [standalone]


#13153

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2020-11-25 07:22 +0100
Message-ID<i26bhkF42k1U1@mid.individual.net>
In reply to#13151
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



-- 

[toc] | [prev] | [next] | [standalone]


#13154

FromJohnMartens <martens@tennishulp.info>
Date2020-11-25 07:42 +0100
Message-ID<rpkucd$p84$1@dont-email.me>
In reply to#13153
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
> 
> 
> 

[toc] | [prev] | [next] | [standalone]


#13156

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2020-11-25 08:19 +0100
Message-ID<i26ersF4ks3U1@mid.individual.net>
In reply to#13154
Hi John

> He has data dialog

sorry, didn't see that.

"Aurora" is a female name - so it's a "she" <g>.

Wolfgang


-- 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web