Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
event_precomp and SRP_PreCompiler
Do you know if event_precomp and SRP_PreCompiler are compatible with each other without any conflicts? IOW, can one use both the following statements in an Event Module without any issues?
This allows Set/Get_Property shorthand in an Event hook. Eg
I haven't seen any problems, but I don't know the full extent of what event_precomp does. Specifically, whether event_precomp assumes RTI's commuter module framework.
Cheers, M@
#pragma precomp event_precomp
#pragma precomp SRP_PreCompiler
#pragma precomp SRP_PreCompiler
This allows Set/Get_Property shorthand in an Event hook. Eg
Event WEBVIEW.WebNavigated( NavID, URI, Redirected, UserInstantiated, StatusInfo, FrameID)
.view_format_label->text = .view_format_label->origtext
End Event
.view_format_label->text = .view_format_label->origtext
End Event
I haven't seen any problems, but I don't know the full extent of what event_precomp does. Specifically, whether event_precomp assumes RTI's commuter module framework.
Cheers, M@
Comments
If you do run into problems, I would be curious if swapping the order of the #pragma precompilers might help. This would allow the SRP PreCompiler to convert its code to normal Basic+ first. This assumes that the precompiled code from one precompiler gets passed into the next precompiler. I haven't tested this so I could be off base.
That would be nice ;). Even if there are no issues at the moment, there's always the risk of an incompatibility in later versions.
I'll consider adding a similar feature, but the SRP way. If I were to do it, I'd actually want a more versatile syntax that allows the setting of multiple properties that are secretly converted into a single Set call.
Interesting! Are you thinking of something like this?
.HTTPserver->( PreserveQueryNameCase, PreserveCookieNameCase, PreserveHeaderNameCase ) = (TRUE$, TRUE$, TRUE$ )
With .HTTPserver PreserveQueryNameCase = TRUE$ PreserveCookieNameCase = TRUE$ PreserveHeaderNameCase = TRUE$ End With