in reply to Help with OLE module and MSI files
Try
$newRecord->IntegerData(1, 0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with OLE module and MSI files
by perls_of_joy (Initiate) on May 08, 2007 at 10:51 UTC | |
I have the following code which is not doing anything.
The $newRecord field one is empty even though I have set the StringData value. Any further ideas? It must be something trivial again. Cheers Ant | [reply] [d/l] |
by BrowserUk (Patriarch) on May 08, 2007 at 14:07 UTC | |
Sorry, but I don't think I am going to be much help to you, as I do nothing using Win32::OLE. Your first question was easy to asnwer because of the error message you posted and the context. This one requires an understanding of OLE which I do not have. Unless someone here pops their head up and chimes in, you may have to take this kind of question to the Active State support forums. However, looking at your code from my point of view of no knowledge of what you are doing, there are a couple of things that stand out.
The above part I assume is working.
Then you do this bit
The next thing you try to do is modifythe database.
It is not at all clear to me whether you are trying to modify an existing record, or create a completely new one. If the former, you shouldn't be creating a new record, you should be querying the record you wish to modify, set the fields as required and then modify the database using that. If the latter, your expectation that setting one field will cause the other fields to magically obtain some values is forlorn. Basicaly, you need to find somebody who understands a) what you are trying to do; b) the technology that you are trying to use to do it. I'm afraid that I am neither ofthose people. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |