-
FlexPro
- Auf einen Blick
- Features & Optionen
- Einsatzgebiete
- Alle Vorteile
- Neu in FlexPro 2021
- FlexPro gratis testen
- FlexPro View OEM Freeware
- Kaufberatung
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produkte
- News
- Support
- Unternehmen
- Jobs
- Kontakt
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Access to Cells via VBA
Home > Community > Automation and VBA > Access to Cells via VBA
- Dieses Thema hat 6 Antworten sowie 3 Teilnehmer und wurde zuletzt vor vor 19 Jahren von Christian Muschelknautz aktualisiert.
-
AutorBeiträge
-
Oktober 27, 2005 um 9:56 pm Uhr #12429Christian MuschelknautzTeilnehmer
Probably it’s pretty easy to answer my question, nonetheless here it is:
VBA in Excel permits users to access cells via the expression cells(a, b). Is there an equivalent in VBA for FlexPro? In my special case I want to compare variables with the content of cells.
Thanks for support!Oktober 27, 2005 um 9:56 pm Uhr #8110Christian MuschelknautzTeilnehmerProbably it’s pretty easy to answer my question, nonetheless here it is:
VBA in Excel permits users to access cells via the expression cells(a, b). Is there an equivalent in VBA for FlexPro? In my special case I want to compare variables with the content of cells.
Thanks for support!Oktober 27, 2005 um 10:36 pm Uhr #8714Bernhard KantzTeilnehmerUse the Value method of the DataSet object.
Sub Example() Dim oDataSet As DataSet Dim V(2) As Double Set oDataSet = ThisDatabase.RootFolder.Add("data", fpObjectTypeDataSet) V(0) = 1 V(1) = 2 V(2) = 3 oDataSet.Value = V End Sub
See FlexPro Online Help
Automating Tasks
Automation with FlexPro Visual Basic
First Steps with FlexPro Visual Basic
Working with Objects
Working with Data SetsOktober 28, 2005 um 12:48 am Uhr #8715Christian MuschelknautzTeilnehmerFirst of all thanks for the quick answer. Now I know how to handle “writing to cells” but how can I cope with reading them. In the online manual I could found this example:
Dim S As Signal
Set S = SignalDataSet.Value
Dim Delta As Double
Delta = S.X(1) – S.X(0)Could you please imbed it into a stand-alone example? Let’s say for a dataset called “Time” which has been imported.
Thanks again…I’m learning …Oktober 28, 2005 um 1:02 am Uhr #8716Bernhard KantzTeilnehmerHere is an example with a time signal which is in the root folder:
Sub ReadData() Dim oDataset As DataSet Dim fXValues, fYValues, fYFirstValue Set oDataset = ThisDatabase.RootFolder.Object("Time", fpObjectTypeDataSet) fXValues = oDataset.Value(fpDataComponentX) fYValues = oDataset.Value(fpDataComponentY) fYFirstValue = oDataset.Value(fpDataComponentY, 1, 1) End Sub
August 28, 2010 um 3:39 am Uhr #8717Fiette SebastienTeilnehmerHello,
Is it possible to copy the complete Y column of a signal into the X column of another signal, without doing a loop ?
Thanks
August 31, 2010 um 7:47 pm Uhr #8718Bernhard KantzTeilnehmerThis is possible. Create a FPScript formula with the script:
Signal(Signal1.Y, Signal2.Y)
VBA-Example:
Dim oFml As Formula Set oFml = ThisDatabase.RootFolder.Add("Formula", fpObjectTypeFormula) With oFml .Formula = "Signal(Signal1.Y, Signal2.Y)" .Evaluate End With
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.