PMS32 Online- Hilfereferenz

MY.APPFORMS.HDMFORMS

HdmForms - Steuerfunktionen der HDM Masken in PMS32


Hilfe: Steuerung alter Masken
Steuerfunktionen der HDM Masken in PMS32


Code: Steuerung alter Masken
*/ Kurzbeispiel für den Zugriff auf diese Struktur
*/ Der Zugriff erfolgt über: My.AppForms.HdmForms
*/ Wird dieses Objekt in einem REPLACE oder einer Schleife SCAN ... ENDSCAN | FOR ... NEXT benötigt
*/ so sollte vor der Schleife die Objektstruktur in eine Variable geholt werden!
*/ Die Ausführungsgeschwindigkeit wird dadurch sehr vergrößert!
*/ Beispiel:
*/ Definieren einer LOKALEN Variablen
LOCAL loHdmForms AS My.AppForms.HdmForms
*/ Setzen der Variablen
loHdmForms = My.AppForms.HdmForms
*/ Jetzt erst die Schleifen durchlaufen... man beachte ALL, dass können ne Menge Sätze sein...
REPLACE ALL Feldname1 WITH loHdmForms.Function1(),Feldname2 WITH loHdmForms.Function1(), ...
*/ Oder in einer Schleife...
SCAN
	lvValue = loHdmForms.Function(Alias.Spalte) + 25
	lvValue = loHdmForms.Function2(m.lvValue)
	REPLACE Feldname WITH m.lvValue,...
ENDSCAN
*/ Es sind auch geschachtelte Aufrufe möglich...

Memberliste von HdmForms


Liste der Methoden von HdmForms


Evaluate() - Ausführen eines Befehls

Mit Setzen dieser Property auf .T. kann die Form zentriert werden.
Hilfeinformation
Ausführen eines VFP-Befehls mit EVALUATE().
Achtung! Eventuell müssen Variablen als PRIVATE deklariert werden!ENDTEXT
*
TEXT TO lcMessage NOSHOW TEXTMERGE
Ausführen eines VFP-Befehls mit EVALUATE().

Aufrufinformation
Variant = My.AppForms.HdmForms.Evaluate(pcExpression AS STRING,pvDefault AS Variant,tvP1 AS Variant,tvP2 AS Variant,tvP3 AS Variant,tvP4 AS Variant, tvP5 AS Variant,tvP6 AS Variant,tvP7 AS Variant,tvP8 AS Variant,tvP9 AS Variant)
Variant = My.AppForms.HdmForms.Evaluate(pcExpression,pvDefault,tvP1,tvP2,tvP3,tvP4,tvP5,tvP6,tvP7,tvP8,tvP9)
Codeinformation
*/ Mit Evaluate kann eine Befehlszeile ausgeführt werden
*/ Eventuell benutzte Variablen sind PRIVATE zu deklarieren
PRIVATE pnVar1 AS Number , pnVar2 AS Number
LOCAL lnVar AS Number
STORE 2 TO pnVar1,pnVar2
lnVar = My.AppForms.HdmForms.Evaluate([m.pnVar1+m.pnVar2])
WAIT WINDOW m.lnVar		&& Ergibt 4...	ENDTEXT

ExecScript() - Ausführen eines VFP-Scripts

Ausführen eines VFP-Scripts incl. der Prüfung, ob ein ALIAS besteht.
Hilfeinformation
Ausführen eines VFP-Scripts incl. der Prüfung, ob ein ALIAS besteht.

Aufrufinformation
Variant = My.AppForms.HdmForms.ExecScript(_es_pcAlias AS STRING,_es_pcScript AS STRING,_es_tlBoolean AS Boolean, _es_tvP1 AS Variant,_es_tvP2 AS Variant,_es_tvP3 AS Variant,_es_tvP4 AS Variant,_es_tvP5 AS Variant,_es_tvP6 AS Variant, _es_tvP7 AS Variant,_es_tvP8 AS Variant,_es_tvP9 AS V)
Variant = My.AppForms.HdmForms.ExecScript(_es_pcAlias,_es_pcScript,_es_tlBoolean,_es_tvP1,_es_tvP2,_es_tvP3,_es_tvP4,_es_tvP5,_es_tvP6,_es_tvP7,_es_tvP8,_es_tvP9)
Codeinformation
*/ Mit EXECSCRIPT kann ein VFP-Script ausgeführt werden
LOCAL lcScript AS String,lnVar1 AS Number,lnVar2 AS Number,lnVar AS Number
TEXT TO lcScript NOSHOW TEXTMERGE
LPARAMETERS tnVar1 AS Number @,tnVar2 AS Number @
tnVar1 = m.tnVar1 + 1
tnVar2 = m.tnVar2 - 2
RETURN m.tnVar1 + m.tnVar2
ENDTEXT
*/ Vorbelegen der Variablen (Parameter)
STORE 2 TO lnVar1,lnVar2
lnVar = My.AppForms.HdmForms.ExecScript("",m.lcScript,0,@lnVar1,@lnVar2)
*/ und das Ergebnis...
WAIT WINDOW m.lnVar
WAIT WINDOW m.lnVar1
WAIT WINDOW m.lnVar2

ExecScriptP() - Ausführen eines VFP-Scripts

Ausführen eines VFP-Scripts incl. PARAMETER (Collection)
Hilfeinformation
Ausführen eines VFP-Scripts incl. PARAMETER (Collection)
Als Parameter wird eine Collection mit Informationen übergeben!

Aufrufinformation
Variant = My.AppForms.HdmForms.ExecScriptP(tcScript AS STRING,toPara AS COLLECTION)
Variant = My.AppForms.HdmForms.ExecScriptP(tcScript,toPara)
Codeinformation
*/ Mit EXECSCRIPTP kann ein VFP-Script ausgeführt werden
LOCAL lcScript AS String,lnVar AS Number,loColl AS Collection
loColl = CREATEOBJECT("Collection")
loColl.Add(2,"Var1")
loColl.Add(2,"Var2")
TEXT TO lcScript NOSHOW TEXTMERGE
LPARAMETERS toColl AS Collection
RETURN toColl.Item("Var1") + toColl.Item("Var2")
ENDTEXT
lnVar = My.AppForms.HdmForms.ExecScriptP(m.lcScript,m.loColl)
*/ und das Ergebnis...
WAIT WINDOW m.lnVar

GetParameters() - Parameter to Collection

Wandelt übergebene Parameter in eine Collection um.
Hilfeinformation
Wandelt übergebene Parameter in eine Collection um.
Umkehrfunktion zu SetParameters.

Aufrufinformation
Variant = My.AppForms.HdmForms.GetParameters(tvP1 AS Variant,tvP2 AS Variant,tvP3 AS Variant,tvP4 AS Variant,tvP5 AS Variant,tvP6 AS Variant,tvP7 AS Variant,tvP8 AS Variant,tvP9 AS Variant)
Variant = My.AppForms.HdmForms.GetParameters(tvP1,tvP2,tvP3,tvP4,tvP5,tvP6,tvP7,tvP8,tvP9)
Codeinformation
*/ Hier können mehrere Parameter in eine Collection übertragen werden
LOCAL loCollection AS Collection , lni AS Integer , lcNames AS String
loCollection = My.AppForms.HdmForms.GetParameters(1,DATE(),TIME())
WAIT WINDOW m.loCollection.Count		&& Anzahl der Werte (3)
*/ Die Namen der Parameter bestimmen
lcNames = ""
FOR m.lni = 1 TO m.loCollection.Count
	lcNames = m.lcNames + ";" + m.loCollection.GetKey(m.lni)
NEXT m.lni
WAIT WINDOW SUBSTR(m.lcNames,2)

GetParametersCount() - Parameter to Collection

Wandelt übergebene Parameter in eine Collection um.
Hilfeinformation
Wandelt übergebene Parameter in eine Collection um.
Jedoch wird als 'erster' Parameter die Anzahl der Parameter mitgegeben.

Aufrufinformation
Variant = My.AppForms.HdmForms.GetParametersCount(tnCnt AS Number,tvP1 AS Variant,tvP2 AS Variant,tvP3 AS Variant,tvP4 AS Variant,tvP5 AS Variant,tvP6 AS Variant,tvP7 AS Variant,tvP8 AS Variant,tvP9 AS Variant)
Variant = My.AppForms.HdmForms.GetParametersCount(tnCnt,tvP1,tvP2,tvP3,tvP4,tvP5,tvP6,tvP7,tvP8,tvP9)
Codeinformation
*/ Hier können mehrere Parameter in eine Collection übertragen werden
*/ Als Beispiel kann nur der Aufruf eines Scripts / einer Methode dienen
LPARAMETERS tp1 AS Variant , tp2 AS Variant , tp3 AS Variant 	&& Es könnten mehr sein!
LOCAL loCollection AS Collection , lni AS Integer
lni = PCOUNT()		&& Wieviele Parameter wurden übergeben?
loCollection = My.AppForms.HdmForms.GetParametersCount(m.lni,m.tp1,m.tp2,m.tp3)
WAIT WINDOW m.loCollection.Count		&& Anzahl der Werte (?)

HDMFormSet_Activate() - Im Activate der Form

Rückgabe:[Boolean], Wird im Activate einer HDM Form durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird im Activate einer HDM Form durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Activate(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Activate(toFormSet)
Codeinformation


HDMFormSet_Deactivate() - Im Deactivate der Form

Rückgabe:[Boolean], Wird im Deactive des Formsets durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird im Deactive des Formsets durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Deactivate(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Deactivate(toFormSet)
Codeinformation


HDMFormSet_GotFocus() - Im GotFocus der Form

Rückgabe:[Boolean], Wird im GotFocus der Form durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird im GotFocus der Form durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_GotFocus(toFormSet AS FORMSET,toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMFormSet_GotFocus(toFormSet,toForm)
Codeinformation


HDMFormSet_Init() - Im Init der Form

Rückgabe:[Boolean], Wird im INIT der HDM Form durchlaufen. Rückgabe=.T.
Hilfeinformation
Rückgabe:[Boolean], Wird im INIT der HDM Form durchlaufen. Rückgabe=.T.

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Init(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Init(toFormSet)
Codeinformation


HDMFormSet_Load() - Im Load der Form

Rückgabe:[Boolean], Wird im LOAD einer HDM Form durchlaufen. Gibt .F. zurück wenn PMS32 beendet wird
Hilfeinformation
Rückgabe:[Boolean], Wird im LOAD einer HDM Form durchlaufen. Gibt .F. zurück wenn PMS32 beendet wird

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Load(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Load(toFormSet)
Codeinformation


HDMFormSet_Modal_Load() - Im Load einer modalen Form

Rückgabe:[Boolean], Wird im LOAD einer modalen HDM Form aufgerufen
Hilfeinformation
Rückgabe:[Boolean], Wird im LOAD einer modalen HDM Form aufgerufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Modal_Load(toFormset AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Modal_Load(toFormset)
Codeinformation


HDMFormSet_Modal_Unload() - Im Unload einer modalen Form

Rückgabe:[Boolean], Wird im UNLOAD des Formsets ausgeführt
Hilfeinformation
Rückgabe:[Boolean], Wird im UNLOAD des Formsets ausgeführt

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Modal_Unload(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Modal_Unload(toFormSet)
Codeinformation


HDMFormSet_Show() - Beim ShowGets eines Formsets

Rückgabe:[Boolean], Wird bei ShowGets ausgeführt...
Hilfeinformation
Rückgabe:[Boolean], Wird bei ShowGets ausgeführt...

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Show(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Show(toFormSet)
Codeinformation


HDMFormSet_Unload() - Im Unload des Formsets

Rückgabe:[Boolean], Wird im UNLOAD des Formsets durchlaufen...
Hilfeinformation
Rückgabe:[Boolean], Wird im UNLOAD des Formsets durchlaufen...

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Unload(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Unload(toFormSet)
Codeinformation


HDMFormSet_Valid() - Im Valid des FormSets

Rückgabe:[Boolean], Wird im Valid der Form durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird im Valid der Form durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_Valid(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_Valid(toFormSet)
Codeinformation


HDMFormSet_When() - Im When des Formsets

Rückgabe:[Boolean], Wird im WHEN des Formsets durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird im WHEN des Formsets durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMFormSet_When(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMFormSet_When(toFormSet)
Codeinformation


HDMForm_Change() - Wenn eine Änderung erfolgt

Rückgabe:[Boolean], Setzt das Änderungsflag an der Form.
Hilfeinformation
Rückgabe:[Boolean], Setzt das Änderungsflag an der Form.

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Change(toForm AS OBJECT,tlChange AS Boolean)
Boolean = My.AppForms.HdmForms.HDMForm_Change(toForm,tlChange)
Codeinformation


HDMForm_Destroy() - Wenn die Form gelöscht wird

Rückgabe:[Boolean], Wird im Destroy der HDM Form durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird im Destroy der HDM Form durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Destroy(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Destroy(toForm)
Codeinformation


HDMForm_GridRefresh() - Refresh aller Grids einer Form

Rückgabe:[Boolean], Refresh aller Grids eines Formsets durchführen...
Hilfeinformation

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_GridRefresh(toFormset AS FORMSET)
Boolean = My.AppForms.HdmForms.HDMForm_GridRefresh(toFormset)
Codeinformation


HDMForm_GridRestore() - Restore der Grids nach Verlassen der Form

Rückgabe:[Boolean], Erzeugt eine neue Bitmap des Grid's falls die Maske umgeklickt wird.
Hilfeinformation
Rückgabe:[Boolean], Erzeugt eine neue Bitmap des Grid's falls die Maske umgeklickt wird.

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_GridRestore(toForm AS FORM, toGrid AS GRID, tlWithTimer AS Boolean)
Boolean = My.AppForms.HdmForms.HDMForm_GridRestore(toForm,toGrid,tlWithTimer)
Codeinformation


HDMForm_Init() - Im Init einer Form

Rückgabe:[Boolean], Wird im INIT der HDM Form ausgeführt
Hilfeinformation
Rückgabe:[Boolean], Wird im INIT der HDM Form ausgeführt

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Init(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Init(toForm)
Codeinformation


HDMForm_Load() - HDM Form Load

Rückgabe:[Boolean], Wird im LOAD der HDM Form ausgeführt
Hilfeinformation
Rückgabe:[Boolean], Wird im LOAD der HDM Form ausgeführt

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Load(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Load(toForm)
Codeinformation


HDMForm_Modal_Activate() - Form Activate

Rückgabe:[Boolean], Wird im ACTIVATE einer modalen Form durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird im ACTIVATE einer modalen Form durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Modal_Activate(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Modal_Activate(toForm)
Codeinformation


HDMForm_Modal_Deactivate() - Form Deactivate

Rückgabe:[Boolean], Wird im Deactivate einer modalen HDM Form ausgeführt
Hilfeinformation
Rückgabe:[Boolean], Wird im Deactivate einer modalen HDM Form ausgeführt

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Modal_Deactivate(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Modal_Deactivate(toForm)
Codeinformation


HDMForm_Modal_GotFocus() - FOrm Gotfocus

Rückgabe:[Boolean], Wird ausgeführt, wenn eine Modale Form den Focus erhält. Hier wird das angegebene Menü der Form aktiviert.
Hilfeinformation
Rückgabe:[Boolean], Wird ausgeführt, wenn eine Modale Form den Focus erhält. Hier wird das angegebene Menü der Form aktiviert.

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Modal_GotFocus(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Modal_GotFocus(toForm)
Codeinformation


HDMForm_Modal_Init() - Form Init

Rückgabe:[Boolean], Wird beim INIT einer modalen Form (HDM) durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird beim INIT einer modalen Form (HDM) durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Modal_Init(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Modal_Init(toForm)
Codeinformation


HDMForm_Modal_Unload() - Form Unload

Rückgabe:[Boolean], Wird beim UNLOAD einer modalen Form durchlaufen. Zurücksetzen des Menüs
Hilfeinformation
Rückgabe:[Boolean], Wird beim UNLOAD einer modalen Form durchlaufen. Zurücksetzen des Menüs

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Modal_Unload(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Modal_Unload(toForm)
Codeinformation


HDMForm_Refresh() - Form Refresh

Rückgabe:[Boolean], Führt einen REFRESH der HDM Form aus.
Hilfeinformation
Rückgabe:[Boolean], Führt einen REFRESH der HDM Form aus.

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Refresh(toForm AS FORM,tnRefresh AS Variant)
Boolean = My.AppForms.HdmForms.HDMForm_Refresh(toForm,tnRefresh)
Codeinformation


HDMForm_RefreshChild() - Form RefreshChild

Rückgabe:[Boolean], Refresh des angegebenen Grids durchführen...
Hilfeinformation

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_RefreshChild(toGrid AS GRID)
Boolean = My.AppForms.HdmForms.HDMForm_RefreshChild(toGrid)
Codeinformation


HDMForm_Release() - FOrm Release

Rückgabe:[Boolean], Wird im Release der HDM Form durchlaufen
Hilfeinformation
Rückgabe:[Boolean], Wird im Release der HDM Form durchlaufen

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Release(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Release(toForm)
Codeinformation


HDMForm_SetAll() - Form SetAll

Rückgabe:[Boolean], Setzt die genannte Property in der Form an allen Objekten der Form.
Hilfeinformation
Rückgabe:[Boolean], Setzt die genannte Property in der Form an allen Objekten der Form.

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_SetAll(toForm AS OBJECT,tcProperty AS STRING,teValue AS Variant)
Boolean = My.AppForms.HdmForms.HDMForm_SetAll(toForm,tcProperty,teValue)
Codeinformation


HDMForm_Unload() - Form Unload

Rückgabe:[Boolean], Wird vom Unload der Form getriggert
Hilfeinformation
Rückgabe:[Boolean], Wird vom Unload der Form getriggert

Aufrufinformation
Boolean = My.AppForms.HdmForms.HDMForm_Unload(toForm AS FORM)
Boolean = My.AppForms.HdmForms.HDMForm_Unload(toForm)
Codeinformation


SetFieldFocus() - Feld SetFocus

Rückgabe:[Boolean], Setzt den Focus des Feldes
Hilfeinformation
Rückgabe:[Boolean], Setzt den Focus des Feldes

Aufrufinformation
Boolean = My.AppForms.HdmForms.SetFieldFocus(toFormSet AS FormSet)
Boolean = My.AppForms.HdmForms.SetFieldFocus(toFormSet)
Codeinformation


SetParameters() - Collection to Parameter

Wandelt eine übergebene Collection in Parameter um.
Hilfeinformation
Wandelt eine übergebene Collection in Parameter um.
Umkehrfunktion zu GetParameters.

Aufrufinformation
Variant = My.AppForms.HdmForms.SetParameters(toPara AS Collection,tvP1 AS Variant @,tvP2 AS Variant @,tvP3 AS Variant @,tvP4 AS Variant @,tvP5 AS Variant @,tvP6 AS Variant @,tvP7 AS Variant @,tvP8 AS Variant @,tvP9 AS Variant @)
Variant = My.AppForms.HdmForms.SetParameters(toPara,@tvP1,@tvP2,@tvP3,@tvP4,@tvP5,@tvP6,@tvP7,@tvP8,@tvP9)
Codeinformation
*/ Umwandeln einer Collection in Parameter
LOCAL loCollection AS Collection,lnVar1 AS Number,lnVar2 AS Number
loCollection = CREATEOBJECT("Collection")
=loCollection.Add(1,"tvp1")
=loCollection.Add(2,"tvp2")
=My.AppForms.HdmForms.SetParameters(m.loCollection,@lnVar1,@lnVar2)
WAIT WINDOW m.lnVar1
WAIT WINDOW m.lnVar2

SetUnloadParameters() - Vor dem Unload

Rückgabe:[Boolean], Setzt diverse Parameter der Form vor dem Unload
Hilfeinformation
Rückgabe:[Boolean], Setzt diverse Parameter der Form vor dem Unload

Aufrufinformation
Boolean = My.AppForms.HdmForms.SetUnloadParameters(toFormSet AS FORMSET)
Boolean = My.AppForms.HdmForms.SetUnloadParameters(toFormSet)
Codeinformation


SprSetup() - Stackinformationen abrufen

Rückgabe:[Boolean], Führt den Stack-Setup für Forms aus. Aufruf VOR RestEnv()
Hilfeinformation
Rückgabe:[Boolean], Führt den Stack-Setup für Forms aus. Aufruf VOR RestEnv()

Aufrufinformation
Boolean = My.AppForms.HdmForms.SprSetup(tcProgram AS STRING,tnDataSession AS NUMBER)
Boolean = My.AppForms.HdmForms.SprSetup(tcProgram,tnDataSession)
Codeinformation


_SqlCount() - Anzahl der Datensätze

Anzahl der Datensätze eines SQL Statements ermitteln.
Hilfeinformation
Anzahl der Datensätze eines SQL Statements ermitteln.
Die Rückgabe ist Number oder .NULL.
Die Datenbankangaben:
      CSYSDIR! => My.Clients.Path.cSysDir
      CDBFDIR! => My.Clients.Path.cDbfDir
      CFRXDIR! => My.Clients.Path.cFrxDir
      CNETDIR! => My.Clients.Path.cNetDir
      CTMPDIR! => My.Clients.Path.cTmpDir
werden unter VFP-Tabellen in den entsprechenden Pfad umgewandelt!
Bei der Verwendung eines SQL-Servers werden diese Informationen gegen den Datenbanknamen im SQL-Server ausgetauscht.

Aufrufinformation
Variant = My.AppForms.HdmForms._SqlCount(tcSql AS String)
Variant = My.AppForms.HdmForms._SqlCount(tcSql)
Codeinformation
LOCAL lcSql AS String
lcSql = [SELECT COUNT(*) FROM CSYSDIR!Y01 WHERE idc26="DE " AND ipy01="SU"]
IF My.AppForms.HdmForms._SqlCount(m.lcSql)>0
	WAIT WINDOW "Es sind Daten vorhanden!"
ENDIF
*/ Bemerkung:
*/ Bei der Angabe der Datenbank, hier CSYSDIR!, wird der Wert gegen den Pfad ausgetauscht!

_SqlExist() - Gibt es Datensätze?

Werden Datensätze durch den SQL ermittelt?
Hilfeinformation
Werden Datensätze im SQL-Statement ermittelt?
Die Rückgabe ist Boolean oder .NULL.
Die Datenbankangaben:
      CSYSDIR! => My.Clients.Path.cSysDir
      CDBFDIR! => My.Clients.Path.cDbfDir
      CFRXDIR! => My.Clients.Path.cFrxDir
      CNETDIR! => My.Clients.Path.cNetDir
      CTMPDIR! => My.Clients.Path.cTmpDir
werden unter VFP-Tabellen in den entsprechenden Pfad umgewandelt!
Bei der Verwendung eines SQL-Servers werden diese Informationen gegen den Datenbanknamen im SQL-Server ausgetauscht.

Aufrufinformation
Variant = My.AppForms.HdmForms._SqlExist(tcSql AS String)
Variant = My.AppForms.HdmForms._SqlExist(tcSql)
Codeinformation
LOCAL lcSql AS String
lcSql = [SELECT ipy01 FROM CSYSDIR!Y01 WHERE idc26="DE " AND ipy01="SU"]
IF My.AppForms.HdmForms._SqlExist(m.lcSql)		&& Gibt Boolean zurück
	WAIT WINDOW "Es sind Daten vorhanden!"
ENDIF
*/ Bemerkung:
*/ Bei der Angabe der Datenbank, hier CSYSDIR!, wird der Wert gegen den Pfad ausgetauscht!

_SqlRead() - Lesen von SQL Daten

Ausführen eines SQL-Statements und Rückgabe des angegebenen Cursors.
Hilfeinformation
Ausführen eines SQL-Statements und Rückgabe des angegebenen Cursors.
Die Rückgabe ist Boolean oder .NULL.
Die Datenbankangaben:
      CSYSDIR! => My.Clients.Path.cSysDir
      CDBFDIR! => My.Clients.Path.cDbfDir
      CFRXDIR! => My.Clients.Path.cFrxDir
      CNETDIR! => My.Clients.Path.cNetDir
      CTMPDIR! => My.Clients.Path.cTmpDir
werden unter VFP-Tabellen in den entsprechenden Pfad umgewandelt!
Bei der Verwendung eines SQL-Servers werden diese Informationen gegen den Datenbanknamen im SQL-Server ausgetauscht.

Aufrufinformation
Variant = My.AppForms.HdmForms._SqlRead(tcSql AS String,tcAlias AS String,tvTable AS Variant,tcIndex AS String)
Variant = My.AppForms.HdmForms._SqlRead(tcSql,tcAlias,tvTable,tcIndex)
Codeinformation
LOCAL lcSql AS String
lcSql = [SELECT * FROM CSYSDIR!Y01 WHERE idc26="DE " AND ipy01="SU"]
IF My.AppForms.HdmForms._SqlRead(m.lcSql,"qY01",2)		&& Gibt Boolean zurück
	ACTIVATE _SCREEN
	BROWSE
ENDIF
*/ Bemerkung:
*/ Bei der Angabe der Datenbank, hier CSYSDIR!, wird der Wert gegen den Pfad ausgetauscht!
*/ Die einzelnen Parameter:
*/	tcSql AS String,tcAlias AS String,tvTable AS Variant,tcIndex AS String
*/	Ein muss sind: tcSql AS String,tcAlias AS String
*/	tvTable kann angegeben werden mit:
*/		.F.		=> Cursor incl. __Changed [L] und __New [L], .T. - Tabelle incl.
*/		Bit-0	=> 1 - Als Tabelle, 0 - Als Cursor
*/		Bit-1	=> 1 - Ohne __Changed und __New, 0 - Mit...
*/	tcIndex kann angegeben werden, wenn Indizes auf dem Cursor / der Tabelle benötigt werden.
*/		"IndexKey1#IndexTag1;IndexKey2#IndexTag2;...."
*/		Wird kein IndexTag angegeben und der IndexKey NICHT aus einer Funktion ermittelt, so hat der IndexKey den Namen des IndexTag!
*/		Wird der IndexKey aus einer Funktion gebildet und es ist kein IndexTag angegeben, so erhält der IndexTag den Namen _Index<Nummer>

_SqlReadArray() - SQL Daten in ein Array

Ausführen eines SQL-Statements in ein Array und Rückgabe der Datensätze.
Hilfeinformation
Ausführen eines SQL-Statements in ein Array und Rückgabe ob Daten ermittelt wurden.
Die Rückgabe ist Boolean oder .NULL.
Die Datenbankangaben:
      CSYSDIR! => My.Clients.Path.cSysDir
      CDBFDIR! => My.Clients.Path.cDbfDir
      CFRXDIR! => My.Clients.Path.cFrxDir
      CNETDIR! => My.Clients.Path.cNetDir
      CTMPDIR! => My.Clients.Path.cTmpDir
werden unter VFP-Tabellen in den entsprechenden Pfad umgewandelt!
Bei der Verwendung eines SQL-Servers werden diese Informationen gegen den Datenbanknamen im SQL-Server ausgetauscht.

Aufrufinformation
Variant = My.AppForms.HdmForms._SqlReadArray(tcSql AS String,toObject AS Object,taArray)
Variant = My.AppForms.HdmForms._SqlReadArray(tcSql,toObject,taArray)
Codeinformation
LOCAL lcSql AS String , laErg[1] , loObject AS Object
lcSql = [SELECT * FROM CSYSDIR!Y01 WHERE idc26="DE " AND ipy01="SU"]
*/ Ausführen in ein lokales Array
IF My.AppForms.HdmForms._SqlReadArray(m.lcSql,.NULL.,@laErg)			&& Es gibt Datensätze...
	*/ FOR i = ... NEXT i
ENDIF
*/ Ausführen in ein Objekt-Array
loObject = CREATEOBJECT("EMPTY")
=ADDPROPERTY(loObject,"aErg[1]")
IF My.AppForms.HdmForms._SqlReadArray(m.lcSql,m.loObject,"aErg")		&& Es gibt Datensätze...
	*/ FOR i = ... NEXT i
ENDIF

_SqlReadCollection() - SQL Daten in eine Collection

Ausführen eines SQL-Statements in eine Collection und Rückgabe der Collection.
Hilfeinformation
Ausführen eines SQL-Statements in eine Collection und Rückgabe der Collection.
Die Rückgabe ist Collection oder .NULL.
Die Datenbankangaben:
      CSYSDIR! => My.Clients.Path.cSysDir
      CDBFDIR! => My.Clients.Path.cDbfDir
      CFRXDIR! => My.Clients.Path.cFrxDir
      CNETDIR! => My.Clients.Path.cNetDir
      CTMPDIR! => My.Clients.Path.cTmpDir
werden unter VFP-Tabellen in den entsprechenden Pfad umgewandelt!
Bei der Verwendung eines SQL-Servers werden diese Informationen gegen den Datenbanknamen im SQL-Server ausgetauscht.

Aufrufinformation
Variant = My.AppForms.HdmForms._SqlReadCollection(tcSql AS String,tcIndex AS String)
Variant = My.AppForms.HdmForms._SqlReadCollection(tcSql,tcIndex)
Codeinformation
LOCAL lcSql AS String , loColl AS Collection
lcSql = [SELECT * FROM CSYSDIR!Y01 WHERE idc26="DE " AND ipy01="SU"]
*/ Normale Ausführung OHNE Indexangabe.
*/ Die Keys der Collection sind fortlaufend nummeriert!
loColl= My.AppForms.HdmForms._SqlReadCollection(m.lcSql)
WAIT WINDOW loColl.GetKey(1)		&& "0000001"
*/ Hat der SQL einen eindeutigen Key so kann dieser benutzt werden!
loColl= My.AppForms.HdmForms._SqlReadCollection(m.lcSql,"ipy01")
WAIT WINDOW loColl.GetKey(1)		&& "SU0"

_SqlReadValue() - SQL Abfrage einer Value

Ausführen eines SQL-Statements und Rückgabe der Value des ERSTEN Feldes.
Hilfeinformation
Ausführen eines SQL-Statements und Rückgabe der Value des ERSTEN Feldes.
Die Rückgabe ist Variant oder .NULL.
Die Datenbankangaben:
      CSYSDIR! => My.Clients.Path.cSysDir
      CDBFDIR! => My.Clients.Path.cDbfDir
      CFRXDIR! => My.Clients.Path.cFrxDir
      CNETDIR! => My.Clients.Path.cNetDir
      CTMPDIR! => My.Clients.Path.cTmpDir
werden unter VFP-Tabellen in den entsprechenden Pfad umgewandelt!
Bei der Verwendung eines SQL-Servers werden diese Informationen gegen den Datenbanknamen im SQL-Server ausgetauscht.

Aufrufinformation
Variant = My.AppForms.HdmForms._SqlReadValue(tcSql AS String,tiValue AS Integer)
Variant = My.AppForms.HdmForms._SqlReadValue(tcSql,tiValue)
Codeinformation
LOCAL lcSql AS String , lvValue AS Variant
*/ Gibt den Inhalt der ERSTEN Spalte zurück
lcSql = [SELECT bezei,kurz,master FROM CSYSDIR!Y01 WHERE idc26="DE " AND ipy01="SU"]
lvValue = My.AppForms.HdmForms._SqlReadValue(m.lcSql)		&& y01.Bezei
*/ Gibt den Inhalt der ZWEITEN Spalte zurück
lcSql = [SELECT bezei,kurz,master FROM CSYSDIR!Y01 WHERE idc26="DE " AND ipy01="SU"]
lvValue = My.AppForms.HdmForms._SqlReadValue(m.lcSql,2)	&& y01.Kurz

_SqlUpdate() - Einen Cursor updaten

UPDATE eines lokalen Cursors gegenüber der angegebenen Tabelle durchführen.
Hilfeinformation
UPDATE eines lokalen Cursors gegenüber der angegebenen Tabelle durchführen.
Die Rückgabe ist Boolean oder .NULL.
Der Cursor MUSS die Spalten __Changed und __New enthalten!
Außerdem MUSS die Zieltabelle die Spalte LastUpd enthalten!

Aufrufinformation
Variant = My.AppForms.HdmForms._SqlUpdate(tcTable AS STRING,tcAlias AS STRING,tcIdName AS STRING,tcFilter AS String)
Variant = My.AppForms.HdmForms._SqlUpdate(tcTable,tcAlias,tcIdName,tcFilter)
Codeinformation
LOCAL lcSql AS String , tlUpdate AS Boolean
lcSql = [SELECT * FROM CDBFDIR!B01 WHERE b01.artnr='SIE.3TH']
*/ Lesen der Daten vom Backend
IF My.AppForms.HdmForms._SqlRead(m.lcSql,"qB01",1)
	*/ Ändern der Daten...
	SELECT qB01
	REPLACE ALL match WITH "LEISTUNGSSCHALTER",__Changed WITH .T.
	tlUpdate = My.AppForms.HdmForms._SqlUpdate("B01",ALIAS(),"IDB01")
	IF NOT m.tlUpdate
		WAIT WINDOW My.AppForms.HdmForms.cLastError
	ENDIF
ENDIF

_SqlUpdateAll() - Eine Cursorliste updaten

UPDATE eines lokalen Cursors gegenüber der angegebenen Tabelle durchführen.
Hilfeinformation
UPDATE mehrerer lokaler Cursor gegenüber den angegebenen Tabellen durchführen.
Die Rückgabe ist Boolean oder .NULL.
Die Cursor MUSS die Spalten __Changed und __New enthalten!
Außerdem MUSS die Zieltabelle die Spalte LastUpd enthalten!

Aufrufinformation
;Filter1 = My.AppForms.HdmForms._SqlUpdateAll(tcList AS STRING)
;Filter1 = My.AppForms.HdmForms._SqlUpdateAll(tcList)
Codeinformation
LOCAL tlUpdate AS Boolean
*/ Lesen der Daten vom Backend
IF My.AppForms.HdmForms._SqlRead([SELECT * FROM CDBFDIR!B01 WHERE b01.artnr='SIE.3TH'],"qB01",1) AND ;
	My.AppForms.HdmForms._SqlRead([SELECT d03.* FROM CDBFDIR!D03 INNER JOIN CDBFDIR!B01 ON d03.idd03=b01.idd03 WHERE b01.artnr='SIE.3TH'],"qD03",1)
	*/ Ändern der Daten...
	UPDATE qB01 SET lang = qD03.bez, __Changed = .T. FROM qD03 WHERE qB01.idd03=qD03.idd03
	UPDATE qD03 SET ekpdatum = My.xDate, __Changed = .T.
	tlUpdate = My.AppForms.HdmForms._SqlUpdateAll("B01;QB01;IDB01#D03;QD03;IDD03")
	IF NOT m.tlUpdate
		WAIT WINDOW My.AppForms.HdmForms.cLastError
	ENDIF
ENDIF
*/ Hinweis:
*/	Der Update der einzel angegebenen Cursor wird mit einer Transaktion durchgeführt!
*/	Läuft einer der Updates auf einen Fehler wird die Änderung rückgängig gemacht!
*/ Der String ist folgendermaßen aufgebaut:
*/	"Tableinfo1#Tableinfo2#Tableinfo3#..."
*/ Tableinfo:
*/	Tabelle;Cursor;ID-Field[;Filter]


Liste der Properties von HdmForms


SetFormMenu - Menü der Form

Wert:[String], Script zum setzen der Form-Menü-Dateien.
Hilfeinformation
Wert:[String], Script zum setzen der Form-Menü-Dateien.

Aufrufinformation
String = My.AppForms.HdmForms.SetFormMenu
Codeinformation


cLastError - Letzter Fehler

Mit dieser Property kann der letzte Fehler im Klartext abgerufen werden.
Hilfeinformation
Mit dieser Property kann der letzte Fehler im Klartext abgerufen werden.

Aufrufinformation
String = My.AppForms.HdmForms.cLastError
Codeinformation
*/ Vorausgesetzt wird, dass My bekannt ist...
LOCAL lcError AS String
lcError = My.AppForms.HdmForms.cLastError

cMethod - Methode des Fehlers

Methode in der der letzte Fehler auftrat.
Hilfeinformation
Methode in der der letzte Fehler auftrat.
Aufbau: [Fehlernummer] [Methode] [Zeilennummer] [Message]

Aufrufinformation
String = My.AppForms.HdmForms.cMethod
Codeinformation
*/ Abruf...
WAIT WINDOW My.AppForms.HdmForms.cMethod

lShowThermos - Thermosanzeige

Thermosanzeige bei der Ausführung
Hilfeinformation
Thermosanzeige bei der Ausführung

Aufrufinformation
Boolean = My.AppForms.HdmForms.lShowThermos
Codeinformation
My.AppForms.HdmForms.lShowThermos = .T.

nError - Fehlernummer d. Fehlers

Fehlernummer des letzten Fehlers.
Hilfeinformation
Fehlernummer des letzten Fehlers.
Ist der Wert kleiner null, so handelt es sich um einen logischen Fehler.

Aufrufinformation
Number = My.AppForms.HdmForms.nError
Codeinformation
WAIT WINDOW My.AppForms.HdmForms.nError

nLine - Zeilennummer d. Fehlers

Zeilennummer, in der der letzte Fehler auftrat
Hilfeinformation
Zeilennummer, in der der letzte Fehler auftrat

Aufrufinformation
Number = My.AppForms.HdmForms.nLine
Codeinformation
WAIT WINDOW My.AppForms.HdmForms.nLine

nRecords - Verarbeitete Datensätze

Verarbeitete Datensätze
Hilfeinformation
Verarbeitete Datensätze

Aufrufinformation
Number = My.AppForms.HdmForms.nRecords
Codeinformation
WAIT WINDOW My.AppForms.HdmForms.nRecords

nSeconds - Ausführungszeit

Ausführungszeit in Sekunden
Hilfeinformation
Ausführungszeit in Sekunden

Aufrufinformation
Number = My.AppForms.HdmForms.nSeconds
Codeinformation
WAIT WINDOW My.AppForms.HdmForms.nSeconds

nStatus - Status der Ausführung

Status der Ausführung
Hilfeinformation
Status der Ausführung

Aufrufinformation
Number = My.AppForms.HdmForms.nStatus
Codeinformation
WAIT WINDOW My.AppForms.HdmForms.nStatus

oSelected - Datenumgebung

Merkt sich die Datenumgebung für eine Verarbeitung.
Hilfeinformation
Merkt sich die Datenumgebung für eine Verarbeitung.
Beim Release der Variable wird die vorherige Datenumgebung wieder hergestellt.

Aufrufinformation
Object = My.AppForms.HdmForms.oSelected
Codeinformation
LOCAL loSelected AS My_Fu_Selected
loSelected = My.AppForms.HdmForms.oSelected
*/ Danach können Tabellen und Cursor geöffnet werden...

*/ Mit dem Nachfolgenden Befehl wird der obige Zustand der Datenumgebung wieder hergestellt
RELEASE loSelected

oThermos - temp. Thermos

Instanziiert einen temporären Thermos
Hilfeinformation
Instanziiert einen temporären Thermos

Aufrufinformation
Object = My.AppForms.HdmForms.oThermos
Codeinformation
LOCAL loThermos AS My_Sy_Thermos
*/ Instanziieren
loThermos = My.AppForms.HdmForms.oThermos

loThermos.AutoCenter = .T.
loThermos.cFaktor(1,1/10,.F.,"Info-1...")
loThermos.cFaktor(1,2/10,.F.,"Info-2...")
*/ ...
*/ Schliesst den Thermos
RELEASE loThermos


Siehe auch : Hauptmenü /  Hauptindex /  Such Index /  Cursor Index /  Programm Module /  Tabellen Index /  Tabellenmodule /  Masken Index /  Programmcode Index /  Servicepacks /  My.Struktur /  Funktionen /  Sonstiges Index

Lokale Benutzerhilfe : Meine eigene Hilfe /  Zurück zur PMS32 - Hilfe


Dateiversion:1.0.04#3648 - H.U.DD#SSFF 02.12.2022  Senden Sie Ihren Kommentar zu diesem Thema an das Entwicklungsteam von PMS32  Weitere Informationen finden Sie unter der aktuellen PMS32 WEB-Hilfe
Die Informationen dieser Mitteilung sind vertraulich und nur für Sie bestimmt. Unbefugtes Weiterleiten,  Veröffentlichen, Kopieren usw. sind untersagt und werden gerichtlich verfolgt.  © PMS Compelec GmbH 2022 ® el-Projekt