-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Objects in a FlexPro data
Home > Community > Automation and VBA > Objects in a FlexPro data
- This topic has 5 replies, 2 voices, and was last updated 17 years, 3 months ago by David CHATEL.
-
AuthorPosts
-
September 11, 2007 at 12:19 am #12404David CHATELParticipant
Hello,
I try with VBA to make a list of all the objects that are contained in a FlexPro data. I have already tip the following code, but it doesn’t works, it say that fpObjects a wrong parameter is. Can somedoby help me? Is there a possibility to do this? Thank you for your answer!————————————————
Sub LookForObjects()
Dim appFlex As FlexPro.Application
Dim dbFlex As FlexPro.Database
Dim fpObjs As fpobjects
Dim fpObj As fpObjectSet appFlex = New FlexPro.Application
Set dbFlex = appFlex.Databases.Open(“Path”)‘this fonction doesn’t work
Set fpObjs = dbFlex.RootFolder.ObjectsFor Each fpObj In fpObjs
Debug.Print fpObj.Name
NextappFlex.Quit fpDoNotSaveChanges
End SubSeptember 11, 2007 at 12:19 am #8087David CHATELParticipantHello,
I try with VBA to make a list of all the objects that are contained in a FlexPro data. I have already tip the following code, but it doesn’t works, it say that fpObjects a wrong parameter is. Can somedoby help me? Is there a possibility to do this? Thank you for your answer!————————————————
Sub LookForObjects()
Dim appFlex As FlexPro.Application
Dim dbFlex As FlexPro.Database
Dim fpObjs As fpobjects
Dim fpObj As fpObjectSet appFlex = New FlexPro.Application
Set dbFlex = appFlex.Databases.Open(“Path”)‘this fonction doesn’t work
Set fpObjs = dbFlex.RootFolder.ObjectsFor Each fpObj In fpObjs
Debug.Print fpObj.Name
NextappFlex.Quit fpDoNotSaveChanges
End SubSeptember 11, 2007 at 2:57 am #8651Bernhard KantzParticipantThis code should work. Unfortunately, we cannot reproduce your problem.
Please register FlexPro again in the command line:
flexpro.exe /regserver
If this step doesn’t help update all your Microsoft Office products and reinstall FlexPro.September 11, 2007 at 6:37 pm #8652David CHATELParticipantThank you for your answer! I want to precise few things.
I use this code with VBA Access and I am working with the standard version of FlexPro.With a another function, I can point of some objects (datasets, formulas, diagrams…) if I have before specified the type of this object.
I cann’t manage to point an object if I don’t specify the type.
Another element caught my attention. Then I write “Dim fpObjs as FlexPro.fpObjects”, I see that “fpObjects” is written with a capital on the O (in the selectionlist). See on the code, “fpobjects” is written whitout a capital. It that normal? Do I have to link another dll to get this function? Thank you for your help!September 13, 2007 at 7:53 pm #8653Bernhard KantzParticipantVBA is generally not case sensitive, although it will transform keywords into a standard case configuration and force the case of variable names to conform to the case of the entry within the symbol table entry.
If you use FlexPro7 your code should work.
If you use FlexPro6 please try the code:Set fpObjs = dbFlex.RootFolder.Objects(".*")
September 19, 2007 at 5:30 pm #8654David CHATELParticipantI use FlexPro 6 and your last tip works!
Thank you! -
AuthorPosts
- You must be logged in to reply to this topic.