sub

VBA expand/collapse rows with same macro button

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We have a trivial problem regarding how to run a simple macro button. The purpose of this button is two-fold: expanding a row and collapsing a row. 1 on pressing the button this VBA command is initiated: Sub Macro7() Rows(7).ShowDetail = True End Sub This command expands row 7. 2 on pressing the button again (whilst the row is expanded), this VBA is initiated: Sub Macro7() Rows(7).ShowDetail = False End Sub This collapses the row. Is there a way to link a button to two macros? Thanks in advance!!! M 回答1: Sub Macro7() With Rows(7) .ShowDetail

Codeigniter sessions across sub domains

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have multiple subdomains and i'm trying to use the sessions across subdomains. http : //example.com http : //subdomain.example.com I have also set the cookie domain in config.php $config [ 'cookie_domain' ] = ".example.com" ; The session userdata and also flashdata are empty when used in the other domain. Im using the same session table as well for both CI instance 回答1: From the following solution : Sharing sessions Both the cookie_domain and cookie prefix has to be set $config [ 'cookie_domain' ] = ".example.com" ; $config [

awk Program File execution

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: As my last question was getting to long, here is a condensed version with the current code level. Summary: I need to take in a pipe-delimited input file, check to ensure all applicable record types are present, add any that are missing, and verify/correct the number of subfields within each record type. Input records: AA | 1234 | ABCD | EDGFT | TR56BE |~ BB || E5TGE |~ CC | 253641 | 84597 |~ DD | 78HND | ACBE ||| 43 |~ EE | HISBL | 78943 |~ FF | 12345 | SKIP |~ GG ||| TYBGFR AA | 2345 | CDEF | GFHIT | 48UJKK |~ CC || 3FKTI Record

Backgroundworker CancelAsync() won't work

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to cancel my Backgroundworker with WorkerClass.bw.CancelAsync() . But it wont work at all. //edit! I posted the full Code here. May this will help. Okay, i added some Msgboxes to know if the Worker is still busy and the wired thing is, that i get a false while the worker is doing things!?!? Public Class Form1 Private Sub btn_start_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_start.Click Dim WorkerClass As New BGWClass WorkerClass.bw.WorkerSupportsCancellation = True WorkerClass.bw

Marquee ProgressBar unresponsive with BackgroundWorker

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: In my code, when a button is clicked the progress bar is set to marquee and then my BackgroundWorker is called but when the BackgroundWorker is called the progress bar freezes or disappears. I use the BackgroundWorker to seperate the RefreshReport method of the ReportViewer from the UI thread. Any help is appreciated. Thanks! Private Sub btnOtherReport_Click ( ByVal sender As System . Object , ByVal e As System . EventArgs ) Handles btnOtherReport . Click rvReport . ProcessingMode = ProcessingMode . Remote rvReport .

Group, Sort and Count in a single query

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to GROUP , SORT and COUNT in a single query one of my table named 'commodities'. Here is a simplification of my MySql table : family sub_family name detailed_name Agro Grains Wheat Wheat per 1 mt Agro Grains Corn Corn per 1 mt Agro Grains Sugar Sugar per 1 mt Agro Fruits Apple Apple red Agro Fruits Apple Apple green Agro Fruits Apple Apple yellow Agro Fruits Lemon Lemon classic Wood Tree Lemon Lemon in logs Wood Tree Oak Oak in logs Wood Tree Epicea Epicea in logs Wood Packaging Kraftliner Krafliner 3mm I would like to : GROUP by

WPF DataGrid validation/binding mode bug

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I created a new project, very simple, to test only the Microsoft WPF DataGrid behavior. Nothing else involved, I only use the standard DataGrid: <Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <DataGrid ItemsSource="{Binding Employees, Mode=TwoWay}" x

Mongodb find inside sub array

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a document that's setup like this: { _id : ObjectId(), info : [ [ 1399583281000, 20.13 ], [ 1399583282000, 20.13 ], [ 1399583283000, 20.13 ], [ 1399583285000, 20.13 ], [ 1399583286000, 20.13 ] ] } This data could be spread across multiple documents. In general, each document contains data in the info for 59 periods (seconds). What I would like to do is get all of the info data where the timestamp is greater than a specific time. Any ideas how I would go about doing this? Thank you EDIT: So, I've found that this seems to return all of

How do I get Id of a record without submitting and re-querying?

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an ID that is set to auto increment (int obviously). var dc = new DataContext([STRING]); var usersTable = dc.GetTable<Audit_User>(); var user = usersTable.FirstOrDefault(o => o.Username.Equals("NAME")); if (user == null) { user = new Audit_User() { Username = "NAME" }; usersTable.InsertOnSubmit(user); } //HERE - I need access to the user Id dc.SubmitChanges(); For more context, please see the tags. 回答1: //HERE - I need access to the user Id Actually you do not . If you consistently use linq-2-sql you can assign the user entity instead

How do I send a struct from C# to VB6, and from VB6 to C#?

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to send a struct from C# to a VB6 app, modify the data in VB6, and send the result back via windows messaging. How do I do this? I am able to send basic ints back and forth with PostMessage (using DllImport in C# and registering the vb6 app with windows messaging), but need to send more structured data, consisting of strings, ints, and decimal. Looking for the easiest solution to implement passing of structures data back and forth. Basic sample of VB6 type Public Type udtSessionData SessionID As Integer SessionName As String MinVal As