-
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
CalculateColumns exemple
Home > Community > Automation and VBA > CalculateColumns exemple
- Dieses Thema hat 4 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 18 Jahren, 10 Monaten von Nicolas Beaupré aktualisiert.
-
AutorBeiträge
-
Februar 1, 2006 um 7:12 am Uhr #12421Nicolas BeaupréMitglied
Hi, could you give me a proper exemple of how to use the CalculateColumns function for a dataset ?
I got S as a dataset
I want to add an offset to all y-data of that dataset.. I tried that, based on the helpfile, but it didn’t work…Formule (as string) = "x + " & offset S.CalculateColumns Formule, fpDataComponentY
Also, I want to select just a small part of my entire dataset. I tried that code :
Formule = x[[StartTime, EndTime]] S.CalculateColumns Formule, fpDataComponentAll
Both method are working fine in FScript… I tought CalculateColumns method was the same as FScript.
Februar 1, 2006 um 7:12 am Uhr #8102Nicolas BeaupréMitgliedHi, could you give me a proper exemple of how to use the CalculateColumns function for a dataset ?
I got S as a dataset
I want to add an offset to all y-data of that dataset.. I tried that, based on the helpfile, but it didn’t work…Formule (as string) = "x + " & offset S.CalculateColumns Formule, fpDataComponentY
Also, I want to select just a small part of my entire dataset. I tried that code :
Formule = x[[StartTime, EndTime]] S.CalculateColumns Formule, fpDataComponentAll
Both method are working fine in FScript… I tought CalculateColumns method was the same as FScript.
Februar 1, 2006 um 6:17 pm Uhr #8689Bernhard KantzTeilnehmerExpression.CalculateColumns(Formula, RowFrom, RowTo)
Expression is an expression which returns an object of type DataSet.
Example (in the root folder exists the dataset ‘S’):
[Code]
Dim oDataset As DataSet
Dim str As String
str = “x + 5”
Set oDataset = ThisDatabase.RootFolder.Object(“S”, fpObjectTypeDataSet)
oDataset.CalculateColumns str, fpDataComponentY
[/Code]Februar 1, 2006 um 10:36 pm Uhr #8690Nicolas BeaupréMitgliedThis is exactly what I did! I tried again and it works only when the dataset “S” is in the rootfolder. If I select a dataset in another folder, I can’t make it work. I get the message : “Invalid procedure call or argument”
Here is my code :Dim oDataset As DataSet Dim str As String Set oDataset = ActiveDatabase.ActiveFolder.Object("S", fpObjectTypeDataSet) str = oDataset.FullName 'Here I check if the correct dataset is selected str = "x + 5" oDataset.CalculateColumns str, fpDataComponentY
This code work fine when S is in the rootfolder, but it doesn’t when S is in a folder (but I checked that the dataset is well selected)
I’m confused…
Februar 2, 2006 um 12:53 am Uhr #8691Bernhard KantzTeilnehmerThanks for this information!
That seems to be a bug in the automation interface.
We’ll fix this bug in the next release. -
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.