Hi,
I get the message "The parameter is incorrect".
I cant see what I am doing wrong.
''''''''''''''''''''
'Display
''''''''''''''''''''
Sub stdTextDisplay
Set objectTable = Server.FindObject("System.xxxx.xxxxx.Tables.StandardText")
rowId = 0
'rowId = 1
'rowIdStr = CSTR(rowId)
stdText = ObjectTable.Interface.GetValue("stdText", rowId) 'This line here causes issue
Mimic.Layers("xxxx").Item("T_xx").Text = "stdText"
End Sub
Thanks,
Solved! Go to Solution.
What does your StandardText DataTable schema look like?
It will need to have a column called stdText, and it will need to have content (at least one record for Row 0 to be valid).
You probably want to match your case just for tidiness also, i.e. if you have
set objectTable = Server......
Then when you call
ObjectTable.Interface....
you should have used a lower case 'o'
If you provide a screen shot of the following then we might be able to narrow this down:
- The database tree showing the table
- The table schema definition
- The table content via a Display Data on the context menu
The Record IDs are indeed zero based (and an integer), and the first parameter is a string of the column name (or an integer for the column index.. but I'd use a string here)
What does your StandardText DataTable schema look like?
It will need to have a column called stdText, and it will need to have content (at least one record for Row 0 to be valid).
You probably want to match your case just for tidiness also, i.e. if you have
set objectTable = Server......
Then when you call
ObjectTable.Interface....
you should have used a lower case 'o'
If you provide a screen shot of the following then we might be able to narrow this down:
- The database tree showing the table
- The table schema definition
- The table content via a Display Data on the context menu
The Record IDs are indeed zero based (and an integer), and the first parameter is a string of the column name (or an integer for the column index.. but I'd use a string here)
Hi
set objectTable = Server......
objectTable.Interface....
Spot on, I didn't pick up on it.
I wasn't completely sure the syntax would work at all, even with out knowing of the typo.
Thanks,
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!