I thought something might be corrupt, so I deleted my preferences file, switched to Indy 7.1.7, tried it on new cards, and even started a new stack. The datagrid on the new stack fails as well. Some of the datagrids with the same code work on my original stack. However, I am attaching the stack with only one datagrid on it that is failing for me (ie. when you click on the button inside the datagrid, it returns empty, instead of giving me the data for that line.)
The script loading the info takes tresult and does this:
Code: Select all
split tresult by RETURN
repeat with x=1 to tnum
set the itemdelimiter to TAB
split tresult[x] by TAB
put tresult[x][1] into theDataB[x]["bizname_facebook2"]
//put tresult[x][2] into theDataB[x]["facebook2"]
end repeat
set the dgData of group "datagrid_facebook" to theDataB
The datagrid's script is:
[code]put pDataArray["bizname_facebook2"] into tuse
answer tuse & " in datagrid"
set the label of button "bizname_facebook" of me to tuse
Code: Select all
put the dgHilitedLines of group "datagrid_facebook" into theLine --grabs hilited line
put the dgDataOfLine[theLine] of group "datagrid_facebook" into theDataA
-- theDataA is now an array variable.
-- then you get the specific column values by using the column names
put theDataA["bizname_facebook2"] into tuse
answer tuse
I have been messing around with this for 10 hours.... and am at a complete loss. Any help out there? I am on Windows 10 with Indy 7.1.7 Thank you
I should also say that earlier, i tried turning my computer off and then on again...and the datagrid worked (meaning that the button returned the information that was requested). But then it quickly went back into failure mode.