Re: String einer Form-Variablen zuweisen



tach Stephan,

stephan sochor schrieb:
Es scheint jedoch, dass die einzige Möglichkeit, das Problem zu lösen, darin besteht, die nötige Info aus dem String zu extrahieren. Das ist jedoch für die vielen unterschiede, die es da geben kann, viel zu kompliziert. Meine Hoffnung war, dass es so etwas wie in PHP oder Clipper gibt, wo man dem Interpreter mitteilen kann, das der Inhalt des Strings als Variable zu sehen ist.
Ich bin mir ja nicht sicher, ob ich dein Problem verstanden habe, aber folgendes geht:

Dim fn as String
fn = ‘Forms("f1").Controls("RegisterStr1").Pages("Seite1").Controls("F2")’

dim f as form
set f = Forms(Eval(fn & ".Form.Name"))


mfG
--> stefan <--

--
Access-FAQ http://www.donkarl.com/
KnowHow.mdb http://www.freeaccess.de
MSSQL-FAQ http://www.berndjungbluth.de
Newbie-Info http://www.doerbandt.de/Access/Newbie.htm
.



Relevant Pages

  • Search pattern
    ... Dim strfile As String ... Dim bAddressFound As Boolean ... Dim strCurrentChar As String ...
    (comp.databases.ms-access)
  • Auto Write Name and Merge across
    ... Dim Sheetname01 As String ... Dim WeekName01 As String ...
    (microsoft.public.excel.misc)
  • Re: multiplatform (pocketPC & desktopPC) (Daniel !!)
    ... Friend Versione As String ... Public Sub GetMyConnectionPalmare() ... Dim errorMessages As String ... Private Function GetDS_Desktop(ByVal SQL As String) As DataSet ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: multiplatform (pocketPC & desktopPC) (Daniel !!)
    ... Friend Versione As String ... Public Sub GetMyConnectionPalmare() ... Dim errorMessages As String ... Private Function GetDS_Desktop(ByVal SQL As String) As DataSet ...
    (microsoft.public.dotnet.framework.compactframework)
  • Help answer these 70-310 questions
    ... One argument is the string ... Dim output As New StringBuilder ... EmployeeLocations. ... You create a strongly named serviced component. ...
    (microsoft.public.cert.exam.mcad)

Loading